Summary of the invention
The object of the invention provides a kind of high-resolution three-dimension interference type imaging spectrum image space two dimension fast display method, and it has solved the technical matters that conventional images two dimension display packing memory consumption is big, processing speed is slow.
Technical solution of the present invention:
A kind of high-resolution three-dimension interference type imaging spectrum image space two dimension fast display method, its special character is that it may further comprise the steps:
1] select S frame space interference image, image size be A capable * B is listed as; Wherein S is the columns of two dimensional image size requirements;
2] establish n=1;
3] read n frame interference image;
4] find out the data of the 1st row absolute value maximum of this frame interference image, this data column is designated as the L row;
5] the n column data of calculating two dimensional image, its concrete steps are:
Extract the A line data of L row, the n row as two dimensional image are designated as { Data
n;
6]n=n+1;
7] repeating step 3] to step 6], until n=S;
8] with { Data
1, Data
2Data
SBe shown as A capable * the BMP image of S row.
A kind of high-resolution three-dimension interference type imaging spectrum image space two dimension fast display method, it may further comprise the steps:
1] select S frame space interference image, image size be A capable * B is listed as; Wherein S is the columns of two dimensional image size requirements;
2] establish n=1;
3] read n frame interference image;
4] find out the data of the 1st row absolute value maximum of this frame interference image, this data column is designated as the L row;
5] the n column data of calculating two dimensional image, its concrete steps are:
51] extract (L-1) row of this row, the data that L is listed as, (L+1) is listed as, above-mentioned three data are asked quadratic sum, ask arithmetic square root again, be designated as Data
11
52] read the next line data, repeating step 51], finish until the calculating of the A of this frame interference image line data; Corresponding data is designated as Data
1mM=2,3,4 ... A;
53] with the Data that obtains
11To Data
1AFrom top to bottom be arranged in order, the n row as two dimensional image are designated as { Data
n;
6]n=n+1;
7] repeating step 3] to step 6], until n=S;
8] with { Data
1, Data
2Data
SBe shown as A capable * the BMP image of S row.
Technique effect of the present invention:
1, little, the display space image fast of the inventive method consumes memory.The present invention has made full use of the interference type spectral data characteristic, promptly interference type imaging spectrum data owner maximum value and for the first time the energy of maximum value account for 91% of whole energy.Therefore, utilize above-mentioned principle, can with principal maximum and adjacent two for the first time maximum value 3 energy replace the energy of impact point data, utilize interference type imaging spectrometer principle again, can show captured landforms by fast two-dimensional.Because the minimizing of data volume, the inventive method can corresponding reduction memory consumption.
2, because the principal maximum of interference type imaging spectrum data accounts for 83.78% of whole gross energies, the present invention is in order further to improve the fast two-dimensional display speed, can only extract the single-row view data at principal maximum place, directly as the n column data in the fast two-dimensional displayed map.Can obviously improve the fast two-dimensional display speed like this, and little to the picture quality image of fast two-dimensional demonstration, and memory consumption further reduces.
Embodiment
The inventive method can be carried out the demonstration of two-dimensional space image with magnanimity interference fringe data, specifically may further comprise the steps:
1] select spatial image size and initiating terminal, this initiating terminal is mapped as the interference image frame number.The selection of frame number determines according to the columns of two dimensional image size requirements how many row frame space interference images how many row of two dimensional image size requirements just select;
2] read the 1st frame interference image;
3] determine the position of the maximum data (absolute value maximum) in first line data of this frame interference image, and extract these row of all row and two row view data on every side;
4] three column data of above-mentioned every row are asked quadratic sum, ask arithmetic square root again, be designated as { Data
n;
5] directly seek next frame data in the hard disk, repeating step 3 by program] and step 4], finish until all Flame Image Process;
6] with { Data
1, Data
2Data
nBe shown as the BMP image.
For quicker demonstration two dimensional image, also can be in step 3] in only select the position of the maximum data (absolute value maximum) in first line data of this frame interference image, and extract these column data of all row, be designated as { Data
n.