Three-dimensional spectrum display system based on vector displacement method
The three-dimensional spectrum display system based on the vector displacement method solves the problems of high CPU computing pressure and high graphics card dependence in the existing technology, realizes efficient and low-memory multi-angle spectrum display, and improves spectrum monitoring efficiency.
Patent Information
- Application Number
- CN202210088965.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-25
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2042-01-25
AI Technical Summary
In the existing technology, the three-dimensional spectrum display system has high CPU computing pressure and is highly dependent on graphics card performance. It is impossible to observe the spectrum from multiple angles, resulting in low spectrum monitoring efficiency.
A three-dimensional spectrum display system based on the vector displacement method is adopted. The initial projection angle and interface layout are set through the initialization module. Combined with the external input spectrum data module, human-computer interaction module, program monitoring and drawing module, single spectrum update drawing module, redrawing module, coordinate mapping projection and direction vector conversion module, external data stack module, spectrum three-dimensional to two-dimensional mapping data generation module and redundancy removal module, efficient conversion and multi-angle display of spectrum data are achieved.
It reduces CPU computing pressure, memory usage, and dependence on graphics card performance, supports multi-angle spectrum observation, and improves spectrum monitoring efficiency.
Smart Images

Figure CN114529669B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of spectrum display systems, and in particular to a three-dimensional spectrum display system based on a vector displacement method. Background Art
[0002] With the continuous development of my country's satellite industry in recent years, the reliability of satellite RF channels has become crucial. Satellite RF channel spectrum monitoring is essential as it serves as a key basis for determining the quality of channel signal transmission. Intuitive and efficient display helps designers quickly understand channel performance and shortens the time it takes to identify and address channel anomalies.
[0003] Patent document CN108573520A discloses a method for displaying a three-dimensional spectrogram, which primarily includes obtaining a compression ratio, obtaining frequency domain data, performing logical operations on the frequency domain data, and performing three-dimensional display. Because the number of frames of compressed frequency domain data is determined by the compression ratio, which can be determined by a preset observation time length for the three-dimensional spectrogram, the compressed spectrum data obtained represents the spectral characteristics within a specific time period. When a single-frame spectrogram corresponding to the compressed spectrum data is displayed in the three-dimensional spectrogram, the three-dimensional spectrogram can be observed over a wider time range without changing the total number of pre-displayed frames of the three-dimensional spectrogram. Furthermore, this time range can be freely determined based on the preset observation time length, allowing technicians to observe the spectral characteristics of the measured signal over a wider time range. However, this patent document suffers from the drawbacks of high CPU computing pressure, inability to observe the spectrum from multiple angles, and high reliance on graphics card performance. Summary of the Invention
[0004] In view of the defects in the prior art, the present invention aims to provide a three-dimensional spectrum display system based on a vector displacement method.
[0005] A three-dimensional spectrum display system based on a vector displacement method provided by the present invention includes the following modules:
[0006] Initialization module: set the initial projection angle and interface layout;
[0007] External input spectrum data module: input spectrum amplitude, frequency value and time;
[0008] Human interaction module: set 3D observation angle, graphic size, image position and display mode;
[0009] Program monitoring and drawing module: regularly responds to changes in the control values of the human-computer interaction module, redraws the thread, updates the thread control, and regularly displays the data in the memory;
[0010] Single spectrum update drawing module: old data displacement update drawing and new data drawing according to the direction set by the program monitoring and drawing module;
[0011] Redrawing module: receiving the redrawing instruction from the program monitoring and drawing module, and redrawing the three-dimensional spectrum projection according to the control value;
[0012] Coordinate mapping projection and direction vector conversion module: connected with the initialization module, the redrawing module and the single spectrum update drawing module;
[0013] External data stack module: connected with the redrawing module and the single spectrum update drawing module;
[0014] Spectrum three-dimensional to two-dimensional mapping data generation module: connected with the single spectrum update drawing module, the de-redundancy module and the to-be-displayed data generation module;
[0015] To-be-displayed data generation module: connected with the program monitoring and drawing module, the redrawing module and the single spectrum update drawing module;
[0016] De-redundancy module: connected with the single spectrum update drawing module.
[0017] Preferably, a coordinate system is established according to XYZ, the X axis is set as a time axis, the Y axis is set as a frequency axis, and the Z axis is set as an amplitude axis, the direction angle is an angle along the positive direction of the X axis to the positive direction of the Y axis, and the pitch angle is an angle between the XOY plane and the positive direction of the Z axis.
[0018] The minimum interval of the 3D graph X before projection is set as deltaX, the minimum interval of the Y is set as deltaY, the spectrum amplitude information is set to the maximum and minimum range on the Z axis coordinate, and the vector displacement method is adopted.
[0019] Preferably, when the initialization module software is started, a two-dimensional vector displacement matrix and a coordinate axis and a grid line are set according to the pre-set azimuth angle, pitch angle and projection magnification, a display mode is obtained, and a program monitoring and drawing module thread and an indirect opening receiving external data thread are started.
[0020] Preferably, the external input spectrum data module is an external interface, and the data content includes a spectrum amplitude array, a frequency value array and a time value, and is only stored in the external data stack module in the data format of the external data stack module through the single spectrum update drawing module;
[0021] The data of the external input spectrum data module is used for the redrawing of the projection graph after the program monitoring and drawing module receives the change application of the human-computer interaction module or for the single spectrum drawing of the latest entered data by the single spectrum update drawing module.
[0022] Preferably, the human-computer interaction module sets three-dimensional observation angle, figure size, position and display mode;
[0023] The human-computer interaction module informs the program monitoring module and the drawing module to set interface and draw spectrum, and informs the redrawing module to redraw spectrum when the control value changes.
[0024] Preferably, the program monitoring and drawing module responds to the application after the human-computer interaction module control value changes, terminates the current single spectrum update drawing module thread, and informs the redrawing module thread and update thread control.
[0025] The redrawing module reestablishes the single spectrum update drawing module thread after the work is completed, and displays the data in the memory according to the standby screen data module preparation completion flag and periodically.
[0026] Preferably, the start and termination of the single spectrum update drawing module are controlled by the program monitoring module.
[0027] According to the direction of the coordinate mapping projection and direction vector conversion module set in the shared data pool by the redrawing module or the initialization module, old data is shifted and updated and new data is drawn;
[0028] The data of the de-redundancy module deleting redundant pixel points is received, and the data of the de-redundancy module is operated to generate the data of the standby screen module.
[0029] When the external data stack module is full, the history data of the spectrum three-dimensional to two-dimensional mapping generation module is used for shifting operation, and the current frame spectrum data is updated at the last updated spectrum frame.
[0030] Preferably, the coordinate mapping projection and direction vector generation module, when the adjacent spectrum frames in the three-dimensional coordinate system are updated in position, only has a time axis displacement vector, and the corresponding projection displacement vector is the projection of the time axis displacement vector in the three-dimensional coordinate system on the two-dimensional plane.
[0031] Preferably, the I spectrum three-dimensional to two-dimensional mapping data generation module, the data generated by each frame of spectrum three-dimensional to two-dimensional mapping includes X / Y coordinate value list, coordinate point color list, and stack position when the current frame is generated.
[0032] When the data interacts with the human-computer interaction module, the X / Y coordinate value list and the coordinate point color list in the above structure are deleted.
[0033] Preferably, the de-redundancy module deletes the redundancy in the same frame generated by the single spectrum update drawing module due to the filling algorithm.
[0034] Compared with the prior art, the present application has the following beneficial effects:
[0035] 1、The data of the present application is efficient: by vector displacement method, the latest spectrum data arriving each time is converted from three-dimensional to two-dimensional color scale projection data, and is connected to a plurality of historical three-dimensional to two-dimensional projection spectrum data generated by previous operation, which greatly reduces the CPU operation pressure;
[0036] 2、The present application has small memory occupation: according to the position of a spectrum data in the whole time spectrum sequence, the redundant information of the spectrum data is removed, and the occupation of system memory is reduced;
[0037] 3、The present application does not depend on the performance of the graphics card: only CPU is used for rendering the latest data at a time, the computer operation pressure is small, and the three-dimensional spectrum is converted to two-dimensional color scale projection data display;
[0038] 4、The present application has multi-angle spectrum presentation: the three-dimensional spectrum can be freely rotated, and the spectrum can be observed from multiple angles. BRIEF DESCRIPTION OF DRAWINGS
[0039] Other features, objects and advantages of the present application will become more apparent from the following detailed description of non-limiting embodiments, made with reference to the accompanying drawings:
[0040] Figure 1 It is a principle block diagram of a three-dimensional spectrum display system based on vector displacement method;
[0041] Figure 2 It is a coordinate mapping projection model of a three-dimensional spectrum display system based on vector displacement method;
[0042] Figure 3 It is a spectrum three-dimensional display effect diagram of a three-dimensional spectrum display system based on vector displacement method. DETAILED DESCRIPTION
[0043] The present application will be described in detail below with specific embodiments. The following embodiments will help those skilled in the art to further understand the present application, but do not limit the present application in any form. It should be pointed out that those skilled in the art can make several changes and improvements without departing from the concept of the present application. These all belong to the protection scope of the present application.
[0044] As Figure 1As shown, the application provides a three-dimensional spectrum display system based on vector displacement method, a coordinate system is established according to XYZ, the X axis is set as the time axis, the Y axis is set as the frequency axis, and the Z axis is set as the amplitude axis, the directional angle is the angle along the positive direction of X to the positive direction of Y, the pitch angle is the angle between the XOY plane and the positive direction of Z, the minimum interval of the 3D graph before projection is set as deltaX, the minimum interval of Y is set as deltaY, the maximum and minimum range of the spectrum amplitude information is set on the Z axis coordinate, and the vector displacement method is adopted.
[0045] The three-dimensional spectrum display system based on vector displacement method comprises the following modules.
[0046] The initialization module sets the initial projection angle and the interface layout; when the software of the initialization module is started, the two-dimensional vector displacement matrix, the coordinate axis and the grid line are set according to the preset azimuth angle, the pitch angle and the projection magnification, the display mode is obtained, and the program monitoring and drawing module thread and the indirect opening receiving external data thread are started;
[0047] The external input spectrum data module inputs the spectrum amplitude, the frequency value and the time; the external input spectrum data module is an external interface, the data content includes the spectrum amplitude array, the frequency value array and the time value, and only one spectrum update drawing module is used to store the data in the external data stack module according to the data format of the external data stack module; the data of the external input spectrum data module is used for the redrawing of the projection graph after the change application of the human-computer interaction module is received by the redrawing module or is used for the single spectrum drawing of the latest incoming data by the single spectrum update drawing module;
[0048] The human-computer interaction module sets the three-dimensional observation angle, the figure size, the image position and the display mode; the human-computer interaction module sets the three-dimensional observation angle, the figure size, the position and the display mode; the human-computer interaction module notifies the program monitoring module and the drawing module to set the interface and draw the spectrum, and notifies the redrawing module to redraw the spectrum when the control value changes;
[0049] The program monitoring and drawing module regularly responds to the change of the control value of the human-computer interaction module, the redrawing thread, the update thread control and the display of the data in the memory; the program monitoring and drawing module regularly responds to the application after the change of the control value of the human-computer interaction module, terminates the current single spectrum update drawing module thread, notifies the redrawing module thread and the update thread control; after the redrawing module is worked, the single spectrum update drawing module thread is re-established, the data in the memory is regularly displayed according to the preparation completion flag of the to-be-projected screen data module, and the data in the memory is regularly displayed;
[0050] Single spectrum update drawing module: according to the direction of the program monitoring and drawing module setting, the old data displacement update drawing and new data drawing; The start and termination of the single spectrum update drawing module is controlled by the program monitoring module, according to the direction of the coordinate mapping projection and direction vector conversion module set in the shared data pool by the redrawing module or the initialization module, the old data displacement update drawing and new data drawing are carried out, the data of the redundant pixel points deleted by the redundancy removal module is received, the data of the to-be-projected screen module is generated by operating the data of the redundancy removal module, when the external data stack module is stacked full, the historical data of the spectrum three-dimensional to two-dimensional mapping generation module is used for displacement operation, and the current frame spectrum data update is carried out at the last updated spectrum frame;
[0051] Redrawing module: receiving the redrawing instruction of the program monitoring and drawing module, redrawing the three-dimensional spectrum projection according to the control value;
[0052] Coordinate mapping projection and direction vector conversion module: connected with the initialization module, the redrawing module and the single spectrum update drawing module; Coordinate mapping projection and direction vector generation module, when the adjacent spectrum frames in the three-dimensional coordinate system are updated in position, there is only a time axis displacement vector, and the corresponding projection displacement vector is the projection of the time axis displacement vector in the three-dimensional coordinate system on the two-dimensional plane;
[0053] External data stack module: connected with the redrawing module and the single spectrum update drawing module;
[0054] Spectrum three-dimensional to two-dimensional mapping data generation module: connected with the single spectrum update drawing module, the redundancy removal module and the to-be-displayed data generation module; I spectrum three-dimensional to two-dimensional mapping data generation module, the data generated after each frame of spectrum three-dimensional to two-dimensional mapping includes X / Y coordinate value list, coordinate point color list, and the stack position when the data is generated this frame, after the data interacts with the human-computer interaction module, the X / Y coordinate value list and the coordinate point color list in the above structure are deleted;
[0055] To-be-displayed data generation module: connected with the program monitoring and drawing module, the redrawing module and the single spectrum update drawing module;
[0056] Redundancy removal module: connected with the single spectrum update drawing module; The redundancy removal module deletes the redundancy in the same frame generated by the single spectrum update drawing module due to the filling algorithm.
[0057] Preferred examples :
[0058] A initialization module, software start according to the pre-set azimuth angle, pitch angle, projection magnification set two-dimensional vector displacement matrix (i.e. in the figure G coordinate mapping projection and direction vector X and Y matrix are total spectrum number * each spectrum frequency point number), coordinate axis and grid line; Obtain display mode (independent point display, spectrum frame within the line, spectrum frame between the line, spectrum frame between the filling); The program monitoring and drawing module thread and indirectly open receiving external data thread (E single spectrum update drawing module).
[0059] The system is based on projection method, according to XYZ establishes coordinate system, X axis setting as time axis, Y axis setting as frequency axis, Z axis setting as amplitude axis, direction angle is along X positive direction to Y positive direction, pitch angle is XOY plane and Z axis positive direction angle. In order to display on the screen, set 3D graph X minimum interval before projection as deltaX, Y minimum interval as deltaY, since Z axis is spectrum amplitude information, its value is random, set the maximum and minimum range on Z axis coordinate mapping, using vector displacement method.
[0060] A initialization module, software start according to the pre-set azimuth angle, pitch angle, projection magnification set two-dimensional vector displacement matrix (i.e. in the figure G coordinate mapping projection and direction vector X and Y matrix are total spectrum number * each spectrum frequency point number), coordinate axis and grid line; Obtain display mode (independent point display, spectrum frame within the line, spectrum frame between the line, spectrum frame between the filling); The program monitoring and drawing module thread and indirectly open receiving external data thread (E single spectrum update drawing module).
[0061] B external input spectrum data module, this part is external interface, data content includes spectrum amplitude array, frequency value array, time value, only via E single spectrum update drawing module according to H external data stack data format stored in external data stack, used for F redraw module receives C interactive interface change application after projection drawing or E single spectrum update drawing module is used for single spectrum drawing to the latest incoming data.
[0062] C man-machine interaction module, set three-dimensional observation angle, figure size, position, display mode (independent point display, spectrum frame within the line, spectrum frame between the line, spectrum frame between the filling); Inform D program monitoring module and drawing module to set interface and spectrum drawing; When the control value changes, inform F redraw module to redraw spectrum.
[0063] D program monitoring and drawing module, periodically respond to the C human-computer interaction module control value change after the application; terminate the current E single spectrum update drawing module thread; notify F redraw thread and update thread control; F re-drawing module after the work is completed to re-establish E single spectrum update drawing module thread; according to the M to be displayed on the screen data module preparation complete flag word regularly in the memory data (i.e. M to be displayed on the screen data module) for display.
[0064] E single spectrum update drawing module, the module start and termination is controlled by D program monitoring module; according to F redraw module or A initialization module set in the shared data pool G coordinate mapping projection and direction vector data direction to old data shift update drawing and new data drawing; receive the data of redundant pixel points deleted by the redundancy removal module, and operate the data removed from redundancy to generate M to be displayed on the screen data; when H external data stack is full, use I every frame spectrum three-dimensional to two-dimensional mapping data history data to perform shift operation, and update the current frame spectrum data at the last updated spectrum frame.
[0065] G coordinate mapping projection and direction vector generation module, the adjacent spectrum frame in the three-dimensional coordinate system only has time axis displacement vector when updating position, and the corresponding projection displacement vector is the projection of the time axis displacement vector in the three-dimensional coordinate system on the two-dimensional plane.
[0066] I spectrum three-dimensional to two-dimensional mapping data generation module, every frame spectrum three-dimensional to two-dimensional mapping data contains X / Y coordinate value list, coordinate point color list, and stack position generated at this frame (used for shift operation); when the data interacts with the human-computer interaction module, the X / Y coordinate value list and coordinate point color list in the above structure are deleted, the number of points used by the next E single spectrum update drawing module is reduced, the memory usage is reduced, and the CPU usage is reduced.
[0067] M to be displayed data generation module, generated by E single spectrum update drawing module or F redraw module, a one-dimensional array with length (pixel points) * width (pixel points) * 3 bytes in the to-be-displayed area, used for D program monitoring and drawing module to draw three-dimensional display regularly.
[0068] N redundancy removal module, the same frame in I generated by E single spectrum update drawing module due to filling algorithm Redundancy is deleted.
[0069] Examples:
[0070] As Figure 1As shown, the three-dimensional spectrum display system based on the vector displacement method comprises an A initialization module, a B external input spectrum data, a C human interaction module, a D program monitoring and drawing module, an E single spectrum update drawing module, an F redrawing module, a G coordinate mapping projection and direction vector conversion module, an H external data stack module, an I spectrum three-dimensional to two-dimensional mapping data generation module, an M to-be-displayed data generation module, and an N redundancy removal module. The system takes the program monitoring and drawing module as the center, regularly responds to the change of the interactive interface control value and controls the redrawing thread and the update thread, and regularly displays the data in the memory.
[0071] The three-dimensional spectrum display system based on the vector displacement method is based on the projection method, establishes a coordinate system according to XYZ, sets the X axis as the time axis, the Y axis as the frequency axis, and the Z axis as the amplitude axis, sets the direction angle as the positive direction along the X axis to the positive direction along the Y axis, and sets the pitch angle as the included angle between the XOY plane and the positive direction of the Z axis. Each time (at equal time intervals), a fixed number of equal-interval frequency data and a same fixed number of corresponding amplitudes of the external data at the same time are sent into the software processing. The system displays the data sent at each time by three-dimensional projection. The Z-axis amplitude information is color-rendered according to the numerical value. The total spectrum number can be set. When the newly added data exceeds the set value, the spectrum first entering the stack is removed, thereby ensuring that the total number of spectrums is fixed. Since the external data is at equal time intervals and the adjacent frequency data is at equal intervals at the same time, the vector displacement method is adopted. In order to display on the screen, the minimum interval of the 3D graph before projection is set as deltaX and the minimum interval of Y is set as deltaY. Since the Z axis is the spectrum amplitude information, its value is random, and the maximum and minimum ranges are set on the Z-axis coordinate for mapping.
[0072] The A initialization module sets the two-dimensional vector displacement matrix (i.e., the coordinate mapping projection and direction vector X and Y matrix in the figure, which is the total number of spectrums * the number of frequency points of each spectrum) according to the pre-set azimuth angle, pitch angle, and projection magnification when the software is started, sets the coordinate axis and grid lines, obtains the display mode (independent point display, spectrum frame connection, spectrum frame connection, and spectrum frame filling), and indirectly starts the program monitoring and drawing module thread and the external data thread (E single spectrum update drawing module) to receive the external data.
[0073] The B external input spectrum data module is an external interface. The data content includes a spectrum amplitude array, a frequency value array, and a time value. The data is stored in the external data stack in the H external data stack data format via the E single spectrum update drawing module, and is used for redrawing the projection graph after the C interactive interface changes are applied or for single spectrum drawing of the latest data by the E single spectrum update drawing module.
[0074] C human-computer interaction module, set three-dimensional observation angle, figure size, location, display mode (independent point display, intra-spectrum frame connection, inter-spectrum frame connection, inter-spectrum frame filling); notify D program monitoring module and drawing module to set interface and draw spectrum; when the control value changes, notify F to redraw the spectrum.
[0075] D program monitoring and drawing module, periodically respond to the change of C human-computer interaction module control value; terminate the current E single spectrum update drawing module thread; notify F to re-draw the thread and update the thread control; after F re-drawing module is completed, E single spectrum update drawing module thread is re-established, and after F re-drawing module sends an end flag, E single spectrum update drawing module function is started again; according to the M ready-to-project screen data module preparation completion flag, the data in the memory (i.e. M ready-to-project screen data module) is periodically displayed.
[0076] E single spectrum update drawing module, the start and termination of this module are controlled by D program monitoring module; according to the direction of the coordinate mapping projection and direction vector data set in the shared data pool G by F re-drawing module or A initialization module, old data (i.e. I every frame spectrum three-dimensional to two-dimensional mapping generated data) is shifted and updated, and new data is drawn; the historical I every frame spectrum three-dimensional to two-dimensional mapping generated data and the latest spectrum projection data generated by E single spectrum update drawing module are sent to the redundancy module for inter-spectrum frame redundancy removal and intra-spectrum redundancy removal; the data of the removed redundant pixel points is received, and the data after removing the redundancy is operated to generate M ready-to-project screen data; when the H external data stack is not full, the historical data of I every frame spectrum three-dimensional to two-dimensional mapping generated data is not shifted, and only new spectrum frame mapping data is generated in the new position; when the H external data stack is full, the historical data of I every frame spectrum three-dimensional to two-dimensional mapping generated data is shifted, and the current frame spectrum data is updated at the last updated spectrum frame.
[0077] F re-drawing module, thread establishment and termination are subject to D program monitoring and drawing module, when C human-computer interaction module control changes, D program monitoring and drawing module terminates the current F re-drawing module thread and then re-establishes it; receives program monitoring and drawing module re-drawing instruction; according to C interactive interface control value, G coordinate mapping projection and direction vector data are generated once; read H external data stack data, and use G coordinate mapping projection and direction vector data value to re-draw three-dimensional spectrum to two-dimensional projection; according to C interactive interface display mode, set multiple spectrum data presentation modes (independent point display, intra-spectrum frame connection, inter-spectrum frame connection, inter-spectrum frame filling).
[0078] G Coordinate mapping projection module and direction vector generation module, only time axis displacement vector exists in adjacent spectrum frame in position updating in three-dimensional coordinate system, corresponding displacement vector after projection is projection of time axis displacement vector in three-dimensional coordinate system on two-dimensional plane.
[0079] H External data stack module, each frame of external spectrum data includes spectrum amplitude array, frequency value array and time; structure processing is performed on each input data in external data stack; when stack exceeds maximum value, E single spectrum update drawing module deletes single spectrum data first entering structure.
[0080] I Data generation module after spectrum three-dimensional to two-dimensional mapping, X / Y coordinate value list and coordinate point color list are generated after spectrum three-dimensional to two-dimensional mapping of each frame, stack position in this frame is generated (used for displacement operation); the above structure is placed in stack, stack increasing and deleting mode is same as H external data stack; after data interacts with human-computer interaction module, X / Y coordinate value list and coordinate point color list in the above structure are deleted, point number used by E single spectrum update drawing module is reduced, memory usage and CPU usage are reduced.
[0081] M To-be-displayed data generation module, one-dimensional array of to-be-displayed data generation module generated by E single spectrum update drawing module or F redrawing module is generated, which is to-be-displayed area length (pixel point) * to-be-displayed area width (pixel point) * 3 byte; used for D program monitoring and drawing module to draw three-dimensional display regularly.
[0082] N Redundancy removal module, redundancy in the same frame in I generated by E single spectrum update drawing module due to filling algorithm is deleted; fixed position is selected for real-time deletion of data stack generated after spectrum three-dimensional to two-dimensional mapping of each frame by E single spectrum update drawing module, that is, repeated part between color band formed in i-th frame and color band generated after i+1~N-th frame is compared, X / Y coordinate value and color value repeated in i-th frame are removed.
[0083] Figure 2 The coordinate mapping projection model is shown, oo' is a unit direction vector, which is perpendicular to XoYoZo plane, three-dimensional figure is displayed on the plane perpendicular to direction vector oo', the ratio of original three-dimensional figure mapped on XoYoZo plane is:
[0084] X 映射后 = X 原始 *sin(∠oo'Xo)* magnification,
[0085] Y 映射后 = X 原始 *sin(∠oo'Yo)* magnification,
[0086] Z映射后 = X 原始 *sin(∠oo'Zo)*amplification factor,
[0087] Wherein the amplification factor is the proportion of the size of the mapping figure display.
[0088] In order to make the o'Zo axis (i.e. the amplitude value after mapping) always perpendicular to the horizontal direction of the display, it is necessary to define the qq' line to be perpendicular to the o'Zo axis, i.e. to take qo'q' as the horizontal axis o' after mapping as the origin, and through vector operation, ∠Zoo'Yo and ∠Zoo'Xo can be obtained. The coordinates in the projected q'o'Zo two-dimensional coordinate system can be obtained by projecting the original three-dimensional coordinate points according to X, Y, Z.
[0089] The present application converts the latest spectrum data arriving each time from three-dimensional to two-dimensional color scale projection data through CPU, generates a spectrum sequence order according to the spectrum along the time axis direction, and connects the three-dimensional to two-dimensional projected spectrum data generated by the latest operation to the historical three-dimensional to two-dimensional projected spectrum data generated by the previous operation one by one, greatly reduces the CPU operation pressure, realizes the efficient use of historical data, removes the redundant information of the spectrum data according to the position of the spectrum data in the whole time spectrum sequence, and reduces the occupation of system memory. Compared with the existing three-dimensional spectrum display, the present application has the advantages of not depending on the performance of the graphics card, using only CPU to render single latest data, small computer operation pressure, and removing data redundancy.
[0090] Those skilled in the art know that, in addition to implementing the system provided by the present application and each device, module and unit thereof in a pure computer readable program code manner, the system provided by the present application and each device, module and unit thereof can also be implemented in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded microcontrollers, etc. by logically programming the method steps to achieve the same function. Therefore, the system provided by the present application and each device, module and unit thereof can be considered as a hardware component, and the devices, modules and units included therein for achieving various functions can also be considered as structures within the hardware component. The devices, modules and units for achieving various functions can also be considered as both software modules for implementing methods and structures within the hardware component.
[0091] The specific embodiments of the present application are described above. It needs to be understood that the present application is not limited to the specific embodiments described above, and various changes or modifications can be made by those skilled in the art within the scope of the claims, which does not affect the essential content of the present application. The embodiments of the present application and the features in the embodiments can be combined with each other at will without conflict.
Claims
1. A three-dimensional spectrum display system based on vector displacement method, characterized in that: Includes the following modules: Initialization module: set the initial projection angle and interface layout; External input spectrum data module: input spectrum amplitude, frequency value and time; Human-computer interaction module: set the 3D observation angle, graphic size, image position and display mode; Program monitoring and drawing module: regularly responds to changes in the control values of the human-computer interaction module, redraws the thread, updates the thread control, and regularly displays the data in the memory; Single spectrum update drawing module: update and draw old data displacement and new data according to the program monitoring and the direction set by the drawing module; Redrawing module: receives redrawing instructions from program monitoring and drawing modules, and redraws the three-dimensional spectrum projection according to the control values; Coordinate mapping projection and direction vector conversion module: connected to the initialization module, the re-drawing module and the single spectrum update drawing module; External data stack module: connected to the re-drawing module and the single spectrum updating drawing module; Module for generating data after 3D spectrum mapping to 2D spectrum: connected to the single spectrum updating and drawing module, the redundancy removal module and the module for generating data to be displayed; A module for generating data to be displayed: connected to the program monitoring and drawing module, the redrawing module and the single spectrum updating drawing module; Redundancy removal module: connected to the single spectrum updating and drawing module; Establish a coordinate system according to XYZ, with the X axis set as the time axis, the Y axis as the frequency axis, and the Z axis as the amplitude axis. The direction angle is from the positive X direction to the positive Y direction, and the pitch angle is the angle between the XOY plane and the positive Z axis. Set the minimum X interval of the 3D image before projection to deltaX and the minimum Y interval to deltaY, set the maximum and minimum ranges of the spectrum amplitude information to be mapped on the Z axis coordinate, and use the vector displacement method; When the initialization module software is started, the two-dimensional vector displacement matrix, coordinate axis and grid line are set according to the preset azimuth angle, pitch angle and projection magnification, the display mode is obtained, the program monitoring and drawing module thread is started, and the external data receiving thread is indirectly started; The external input spectrum data module is an external interface, and the data content includes spectrum amplitude array, frequency value array and time value, which are stored in the external data stack module according to the data format of the external data stack module only through the single spectrum update drawing module; The data of the external input spectrum data module is used by the redrawing module to redraw the projection diagram after receiving the change application from the human-computer interaction module, or is used by the single spectrum update drawing module to draw a single spectrum based on the latest input data; By using the vector displacement method, the latest spectrum data arriving each time is converted from three-dimensional to two-dimensional color scale projection data, and connected to multiple historical three-dimensional to two-dimensional projected spectrum data generated by previous calculations.
2. The three-dimensional spectrum display system based on the vector displacement method according to claim 1, characterized in that: The human-computer interaction module notifies the program control and drawing module and the drawing module to perform interface setting and spectrum drawing, and notifies the redrawing module to redraw the spectrum when the control value changes.
3. The three-dimensional spectrum display system based on the vector displacement method according to claim 1, characterized in that: The program monitoring and drawing module regularly responds to the request after the control value of the human-computer interaction module changes, terminates the current single spectrum update drawing module thread, and notifies the re-drawing module thread and update thread control; After the re-drawing module has finished its work, the single spectrum updating drawing module thread is re-established, and the data in the memory is periodically displayed according to the preparation completion flag word of the screen data module to be projected.
4. The three-dimensional spectrum display system based on the vector displacement method according to claim 1, characterized in that: The activation and termination of the single spectrum updating and drawing module are controlled by the program control and drawing module; Performing old data shift update drawing and new data drawing according to the direction of the coordinate mapping projection and direction vector conversion module set in the shared data pool by the redrawing module or the initialization module; Receiving data of redundant pixels deleted by the redundancy removal module, and performing calculations on the data of the redundancy removal module to generate data for the to-be-displayed data generation module; When the external data stack module is full, the historical data of the spectrum three-dimensional to two-dimensional mapping generation module is used to perform a shift operation, and the spectrum data of the current frame is updated at the last updated spectrum frame.
5. The three-dimensional spectrum display system based on the vector displacement method according to claim 1, characterized in that: The coordinate mapping projection and direction vector conversion module has only a time-axis vector displacement when the positions of adjacent spectrum frames are updated in the three-dimensional coordinate system. The corresponding projected vector displacement is the projection of the time-axis vector displacement in the three-dimensional coordinate system on the two-dimensional plane.
6. The three-dimensional spectrum display system based on the vector displacement method according to claim 1, characterized in that: The data generation module after 3D spectrum mapping to 2D spectrum generates data after 3D spectrum mapping to 2D spectrum for each frame, including a list of X / Y coordinate values, a list of coordinate point colors, and a stack position when generating the frame; After the data interacts with the human-computer interaction module, the X / Y coordinate value list and the coordinate point color list are deleted.
7. The three-dimensional spectrum display system based on the vector displacement method according to claim 1, characterized in that: The redundancy removal module deletes the redundancy in the same frame generated by the filling algorithm of the single spectrum updating and drawing module.
Citation Information
Patent Citations
Display method of three-dimensional spectrogram and digital spectrum analyzer
CN108573520A
Method for reconstructing, displaying and analyzing engine test data three-dimensional waterfall plot
CN106484990A
Method and device for displacement measurement, and ultrasonic diagnostic apparatus
JP2011078744A