CN100508550C - Image-zooming system capable of saving memory - Google Patents
Image-zooming system capable of saving memory Download PDFInfo
- Publication number
- CN100508550C CN100508550C CNB2006100931865A CN200610093186A CN100508550C CN 100508550 C CN100508550 C CN 100508550C CN B2006100931865 A CNB2006100931865 A CN B2006100931865A CN 200610093186 A CN200610093186 A CN 200610093186A CN 100508550 C CN100508550 C CN 100508550C
- Authority
- CN
- China
- Prior art keywords
- image
- horizontal
- output
- partial data
- image line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Image Processing (AREA)
Abstract
The system comprises: a window type memory; a vertical zooming unit, a buffer unit, and a horizontal zooming unit. Said window type memory is used for buffering a part of data of N image lines; said vertical zooming unit is used for making vertically-zooming calculation for said a part of data of N image lines to generate a part of zooming data of one vertical image line; said horizontal zooming unit is used for making horizontally-zooming calculation for a part of data of the vertical image line to generate a part of zooming data of one horizontal image line. When zooming out, both vertical zooming unit and horizontal zooming unit use an window average method to make zoom-out calculation; when zooming in the image, both vertical zooming unit and horizontal unit use a bilinear interpolation method to make zooming-in calculation.
Description
Technical field
The present invention relates to the technology that a kind of image dwindles and amplifies, relate in particular to a kind of image-zooming system of saving internal memory.
Background technology
Interpolation method (interpolation) is usually used in the amplification of traditional two dimension (2D) image and dwindles in the technology.This method need be used a scanning linear buffer unit (scan line buffer).When this method was carried out image and vertically amplified, it was earlier by the data of reading in an image line in the main storage, on duty with each pixel of image line then with behind the zooming parameter (scaling factor), and be temporarily stored in the scanning linear buffer unit.Then read in the data of next bar image line again, and on duty with each pixel with behind the zooming parameter, again with the scanning linear buffer unit in after corresponding pixel value does accumulating operation (accumulator operation), through shift operation (shift operation), the just image output that can vertically be amplified.
Another conventional method then is to use temporary several input image datas of a static RAM (SRAM).This static RAM is in order to replace this scanning linear buffer unit.At this moment,, and these pixel values are multiplied by corresponding zooming parameter, carry out accumulating operation and shift operation again, can obtain the pixel value of image output as long as see through stored corresponding pixel value in the logical circuit acquisition static RAM.This method can reduce the number of times that data read in static RAM, but will increase the size of static RAM, especially when the width of image was very big, the big young pathbreaker of static RAM increased rapidly, thereby increases the hardware cost of many systems.
At U.S. Pat P6,219, in 465 bulletins " High Quality Digital Scaling UsingPixel Window Average And Linear Interpolation ", as described in its specification, when computing is dwindled in the image execution, use window averaging method (window averaging), when image is carried out the amplification computing, use interpolation method (interpolation).The shared scanning linear buffer unit temporal data of the hardware structure of this conventional art, and by change selecting type zooming parameter (seletive scaling factor), thereby but reach the horizontal or vertical amplification of arbitrary proportion and dwindle.Yet this invention in a static RAM, so under one parallel (parallel) pattern, once can only handle the data of a dimension (1D), and is used the operational data of the temporary centre of scanning linear buffer unit with the data storing of an image line.Its dateout need be handled the back through two dimensions (2D) and produce an image output line (out image line).The shortcoming of the method is that image output is a unit with an image line, and the interval of every image line and image line may be long, needing to be not suitable for the system of (real time) output in real time.This is invented under a sequence (serial) pattern, though but the data of two dimensions of single treatment (2D), to reach the requirement of real-time output.But needing when two dimensions are handled to carry out shared scanning linear buffer unit (scan line buffer), and may be because the treatment system of two dimensions has the factor of sequencing and speed in deal with data, make one of them system idle, and reduce the output usefulness of system.Therefore, traditional image-zooming system still has many disappearances and haves much room for improvement.
Summary of the invention
One object of the present invention is to provide a kind of image-zooming system, thereby can save employed internal memory, reduces the hardware cost of system.
Another object of the present invention is to provide a kind of image-zooming system, thereby can reach timely image-zooming computing, can't reach the problem of (real time) image output in real time to avoid conventional art.
According to one aspect of the present invention, the present invention proposes a kind of image-zooming system of saving internal memory, in order to dwindle or to amplify an image, this image is made up of most bar image lines, and this image-zooming system comprises: a Window-type internal memory (Window SRAM), a vertically scale device, a buffer unit and a horizontal scaling device.This Window-type internal memory is in order to the partial data of reception and temporary N bar image line, and N is a positive integer; This vertically scale device is connected to this Window-type internal memory, the partial data of this N bar image line being carried out the computing of vertical direction convergent-divergent, and produces the partial data of a vertical image line; This buffer unit is connected to this vertically scale device, receives and keep in the partial data of this vertical image line; This horizontal scaling device is connected to this buffer unit, with the partial data executive level direction convergent-divergent computing to this vertical image line, and produces the convergent-divergent partial data of a horizontal image line; Wherein, when the execution image dwindles, this vertically scale device and this horizontal scaling device use average (window average) method of window, to dwindle computing, when carrying out the image amplification, this vertically scale device and this horizontal scaling device use bilinear interpolation (bi-linear interpolation average) method, to amplify computing.
According to another aspect of the present invention, the present invention proposes a kind of image-zooming system of saving internal memory, in order to dwindle or to amplify an image, this image is made up of most bar image lines, and this image-zooming system comprises: a Window-type internal memory, a vertically scale device, a buffer unit, a horizontal scaling device and a control device.This Window-type internal memory is in order to the partial data of reception and temporary N bar image line, and N is a positive integer; This vertically scale device is connected to this Window-type internal memory, the partial data of this N bar image line being carried out the computing of vertical direction convergent-divergent, and produces the partial data of a vertical image line; This buffer unit is connected to this vertically scale device, receives and keep in the partial data of this vertical image line; This horizontal scaling device is connected to this buffer unit, with the partial data executive level direction convergent-divergent computing to this vertical image line, and produces the convergent-divergent partial data of a horizontal image line; This control device is connected to this vertically scale device and this horizontal scaling device, this control device is carried out the initialization and the related setting of this vertically scale device and this horizontal scaling device, and calculate N vertical weight of this N bar image line respectively, and this N vertical weight is write this vertically scale device; Wherein, when the execution image dwindled, this vertically scale device and this horizontal scaling device all used the window averaging method, to dwindle computing, when carrying out the image amplification, this vertically scale device and this horizontal scaling device all use bilinear interpolation method, to amplify computing.
Description of drawings
Fig. 1 is a calcspar of saving the image-zooming system of internal memory of the present invention.
Fig. 2 is a circuit diagram of saving the image-zooming system of internal memory of the present invention.
Fig. 3 is the pseudo-code schematic diagram that horizontal weights generator of the present invention produces M horizontal weights when amplifying.
Fig. 4 is the pseudo-code schematic diagram that horizontal weights generator of the present invention produces M horizontal weights when dwindling.
Fig. 5 is that the present invention uses bilinear interpolation method to carry out the schematic diagram that amplifies computing.
Fig. 6 is that the present invention uses the window averaging method to dwindle the schematic diagram of computing with execution.
Fig. 7 is a running schematic diagram of saving the image-zooming system of internal memory of the present invention.
Fig. 8 is the circuit diagram of another embodiment of the present invention.
Fig. 9 is the calcspar of further embodiment of this invention.
[primary clustering symbol description]
Window-type internal memory 110 vertically scale devices 120
The first direct memory access device 160
The second direct memory access device 170
Image-zooming system 100
Temporarily providing room 1103
First input end 1,271 second inputs 1272
First adder 123 inputs 1231
Output 1,232 first shift units 125
First input end 14,531 second inputs 14532
Initial pixel marker generator 143 outputs 14533
M multiplier 1453
Output 14,552 second shift units 1457
The first ping-pong buffers device, 810 second ping-pong buffers devices 820
Embodiment
Fig. 1 is a calcspar of saving the image-zooming system of internal memory of the present invention.Image-zooming system is in order to dwindle or to amplify an image, and wherein this image is made up of most bar image lines.This image-zooming system 100 comprises: a Window-type internal memory (Window SRAM) 110, one vertically scale device 120, a buffer unit 130, a horizontal scaling device 140, an output buffer 150, one first direct memory access device (DMA) 160, and one second direct memory access device (DMA) 170.
This Window-type internal memory 110 is in order to the partial data of reception and temporary N bar image line, and N is a positive integer.In the present embodiment, N is 5.This vertically scale device 120 is connected to this Window-type internal memory 110, the partial data of this N bar image line being carried out the computing of vertical direction convergent-divergent, and produces the partial data of a vertical image line.This buffer unit 130 is connected to this vertically scale device 120, receives and keep in the partial data of this vertical image line.This horizontal scaling device 140 is connected to this buffer unit 130, with the partial data executive level direction convergent-divergent computing to this vertical image line, and produces the convergent-divergent partial data of a horizontal image line.
This output buffer 150 is connected to this horizontal scaling device 140, in order to the convergent-divergent partial data of temporary this horizontal image line.The image that will carry out convergent-divergent is stored to earlier in this main storage 180.This first direct memory access device 160 is connected to a main storage 180, thereby by the partial data of this main storage 180 these N bar image lines of acquisition, and the partial data of this N bar image line is sent to this Window-type internal memory 110.
This second direct memory access device 170 is connected to this main storage 180 and this output buffer 150, thereby convergent-divergent partial data by these output buffer 150 these horizontal image lines of acquisition, and convergent-divergent partial data that will this horizontal image line is sent to this main storage 180, for follow-up use.
When executive level and vertical image dwindled, this vertically scale device 120 and this horizontal scaling device 140 used average (window average) method of windows, to dwindle computing.When executive level and the amplification of vertical image, this vertically scale device 120 and this horizontal scaling device 140 use bilinear interpolation (bi-linear interpolation average) methods, to amplify computing.Vertical image-zooming and horizontal image-zooming are independent mutually, also can carry out vertical image amplification and horizontal image and dwindle, or vertical image dwindles and horizontal image amplifies.
Fig. 2 is a circuit diagram of saving the image-zooming system of internal memory of the present invention.As shown in Figure 2, this buffer unit 130 is first-in first-out (FIFO) type buffer unit.This Window-type internal memory 110 has 5 inputs 1101 and 5 outputs 1102, and has temporarily providing room 1103.This Window-type internal memory 110 can receive the partial data of the image line that these first direct memory access devices 160 are transmitted via its 5 inputs 1101.The part pixel value that this Window-type internal memory 110 stores in the image data line, and all pixel values in image data line of the Window-type memory storage in the conventional art.So technology of the present invention need not increase with the image width, and change the temporarily providing room of this Window-type internal memory 110.
This vertically scale device 120 comprises a vertical weight generator 121, a N multiplier 127, a first adder 123, reaches one first shift unit 125.This vertical weight generator 121 produces N vertical weight (Wv0, Wv1, Wv2, Wv3, Wv4) in order to when the image-zooming.
The first input end 1271 of aforementioned each multiplier 127 is coupled respectively to this Window-type internal memory 110 corresponding N outputs 1102, second input 1272 of each multiplier 127 is coupled respectively to this vertical weight generator 121, with receive respectively N vertical weight (Wv0, Wv1, Wv2, Wv3, Wv4) that this vertical weight generator 121 produces one of them, thereby respectively the partial data of this N bar image line is carried out multiplying.
This first adder 123 has N input 1231, and is coupled respectively to the output 1272 of this N multiplier 127, so that add operation is carried out in the output of this N multiplier 127.This first shift unit 125 is coupled to the output 1232 of this first adder 123, is shifted with the output to this first adder 123.Through after the shift operation, can draw through the pixel value after vertical the processing.Each pixel in this Window-type internal memory 110 is repeated above-mentioned computing, can produce the partial data through the N bar image line of reading after vertical the processing, this partial data is 128 pixels in this embodiment.
This vertical weight generator 121 the N that produces vertical weight (Wv0, Wv1, Wv2, Wv3, Wv4), the sum total that need satisfy Wv0+Wv1+Wv2+Wv3+Wv4 is 2
K, K is a positive integer.So, just can use this first shift unit 125 to carry out shift right operation, thereby replace division arithmetic.
This horizontal scaling device 140 comprises a horizontal weights generator 141, one initial pixel marker generator (starting pixel pointer generator) 143 and one horizontal scaling engine 145.This horizontal weights generator 141 produces M horizontal weights in order to when the image-zooming.In the present embodiment, M is 5, and this M horizontal weights is respectively Wh0, Wh1, Wh2, Wh3 and Wh4.
This initial pixel marker generator 143 is coupled to this buffer unit 130 and produces an index, in order to the position of this buffer unit 130 of indication access.This horizontal scaling engine 145 is coupled to this buffer unit 130 and this horizontal weights generator 141, data by M pixel of acquisition in this buffer unit 130, and by this M of acquisition horizontal weights in this horizontal weights generator 141, so that this M pixel is carried out the horizontal scaling computing.
This horizontal scaling engine 145 comprises M buffer 1451, a M multiplier 1453, a second adder 1455 and one second shift unit 1457.This M buffer 1451 is coupled to this buffer unit 130, in order to temporary data by M pixel of acquisition in this buffer unit 130.The first input end 14531 of aforementioned each multiplier 1453 be coupled respectively to this M buffer 1451 output 14511 one of them, second input 14532 of each multiplier 1453 is coupled respectively to this horizontal weights generator 141, with receive this horizontal weights generator 141 produce M horizontal weights one of them, thereby this M pixel is carried out multiplying.
This second adder 1455 has M input 14551, and is coupled respectively to the output 14533 of this M multiplier 1453, so that add operation is carried out in the output of this M multiplier 1453.This second shift unit 1457 is coupled to the output 14552 of these second addition, 1455 devices, carries out shift operation with the output to this product adder 1455.
Fig. 3 produces pseudo-code (Pseudo Code) schematic diagram of M horizontal weights when being these horizontal weights generator 141 amplifications.Fig. 4 is the pseudo-code schematic diagram that this horizontal weights generator 141 produces M horizontal weights when dwindling.The pseudo-code of Fig. 3 and Fig. 4 can (Hardware Description Language HDL) realizes via the hardware description language of for example Verilog or VHDL.
When carrying out the image amplification, this horizontal scaling device 140 uses bilinear interpolation (bi-linearinterpolation average) methods, to amplify computing.Fig. 5 is that the present invention uses bilinear interpolation method to carry out the schematic diagram that amplifies computing.Its execution enlargement ratio is 2.1 amplification computing.At first set a maximum weighted value (max_weight), in the present embodiment, the maximum weighted value is 256 (2
8).Calculate an amplifying parameters (expand_para) again, this amplifying parameters be maximum weighted on duty with an input ratio again divided by an export ratio.In the present embodiment, the input ratio is 1, and export ratio is 2.1, so this amplifying parameters is 121.
Via the pseudo-code of Fig. 3, can calculate M horizontal weights respectively and be respectively Wh0, Wh1, Wh2, Wh3, Wh4.See also Fig. 3 and Fig. 5, when carrying out circulation time for the first time, the value Acc=0 of one accumulator<256 use P1 pixel and P2 pixel to do linear interpolation, and the weight of P1 pixel is (256-0), the weight of P2 pixel is (0), this loop ends does not need to continue to handle again, and weighted value thereafter is zero, that is next Wh2, Wh3, Wh4 are all 0, so E1 is (P1 * 256+P2 * 0+P3 * 0+P4 * 0+P5 * 0)〉〉 2
8When carrying out circulation time for the second time, the value Acc=0+121 of this accumulator<256, use P1 pixel and P2 pixel to do linear interpolation, the weight of P1 pixel is (256-121), and the weight of P2 pixel is (121), this loop ends, do not need to continue again to handle, thereafter weighted value is zero, that is next Wh2, Wh3, Wh4 are all 0, so E2 is (P1 * 135+P2 * 121+P3 * 0+P4 * 0+P * 0)〉〉 2
8When carrying out circulation time for the third time, the value Acc=121+121 of this accumulator<256, use P1 pixel and P2 pixel to do linear interpolation, the weight of P1 pixel is (256-242), the weight of P2 pixel is (242), and this loop ends does not need to continue to handle, weighted value thereafter is zero again, that is next Wh2, Wh3, Wh4 are all 0, so E3 is (P1 * 14+P2 * 242+P3 * 0+P4 * 0+P5 * 0)〉〉 2
8When carrying out the 4th circulation time, the value Acc=242+121 of this accumulator〉256, Acc=363-256=107 uses P2 pixel and P3 pixel to do linear interpolation, and the weight of P2 pixel is (256-107), the weight of P3 pixel is (107), this loop ends does not need to continue to handle again, and weighted value thereafter is zero, that is next Wh2, Wh3, Wh4 are all 0, so E4 is (P2 * 149+P3 * 107+P4 * 0+P5 * 0+P6 * 0)〉〉 2
8The treatment step of other pixel is same as described above, will not give unnecessary details.
When the execution image dwindled, this horizontal scaling device 149 used average (windowaverage) method of windows, to dwindle computing.Fig. 6 is that the present invention uses average (windowaverage) method of window to dwindle the schematic diagram of computing with execution.Its execution reduction magnification is 2.6 the computing of dwindling.At first set a maximum weighted value (max_weight), in the present embodiment, the maximum weighted value is 256 (2
8).Calculate one again and dwindle parameter (shrink_nom), this dwindle parameter be maximum weighted on duty with an export ratio again divided by an input ratio.In the present embodiment, the input ratio is 2.6, and export ratio is 1, is 98 so this dwindles parameter.
Via the pseudo-code of Fig. 4, can calculate M horizontal weights respectively and be respectively Wh0, Wh1, Wh2, Wh3, Wh4.As shown in Figure 4, when carrying out circulation time for the first time, the value Acc=256-98 of accumulator〉0, the weight of P1 pixel is 98, needs to continue to handle the weight of next pixel, Acc=158-98〉0, the P2 pixel weight is 98, needs to continue to handle the weight of next pixel, Acc=60-98<=0, the P3 pixel weight is 60, this loop ends does not need to continue to handle again, and weighted value thereafter is zero, that is next Wh3, Wh4 are all 0, so S1 is (P1 * 98+P2 * 98+P3 * 60+P4 * 0+P5 * 0)〉〉 2
8When carrying out circulation time for the second time, the value Acc=256-of accumulator (98-60)〉0, the weight of P3 pixel is 38, need to continue to handle the weight of next pixel, Acc=218-98〉0, the weight of P4 pixel is 98, need to continue to handle the weight of next pixel, the value Acc=120-98 of accumulator〉0, the weight of P5 pixel is 98, needs to continue to handle the weight of next pixel; The value Acc=22-98 of accumulator<0, the weight of P5 pixel are 22, and this loop ends does not need to continue to handle again, and weighted value thereafter is zero, that is next Wh4 is 0, so S2 is [P3 * (98-60)+P4 * 98+P5 * 98+P6 * 22+P7 * 0]〉〉 2
8The treatment step of other pixel is same as described above, will not give unnecessary details.
This vertically scale device 120 uses average (window average) method of window to dwindle computing to carry out image, and uses bilinear interpolation method to amplify computing to carry out image.120 usings method of this vertically scale device are identical with this horizontal scaling device 149, and being familiar with this operator can be exchanged into the hardware circuit of this vertically scale device 120 by the pseudo-code of Fig. 3 and Fig. 4.
Because in carrying out the computing of an image line convergent-divergent, the vertical weight (Wv0, Wv1, Wv2, Wv3, Wv4) of this N bar image line need not to change, so can earlier this vertical weight (Wv0, Wv1, Wv2, Wv3, Wv4) be calculated, and write in the vertical weight buffer, to replace this vertical weight generator 121.
Fig. 7 is a running schematic diagram of saving the image-zooming system 100 of internal memory of the present invention.When executive level and vertical image dwindle, this image-zooming system 100 utilizes the acquisition of the first direct memory access device (DMA) 160 to be stored in the partial data (In_line_1~In_line_5) of 5 image lines in this main storage 180, after the execution vertical direction is dwindled computing, the executive level direction is dwindled computing again, dwindles partial data (Out_line_1) with what obtain horizontal image line.Afterwards, this image-zooming system 100 utilizes the second direct memory access device (DMA) 170 that the partial data (Out_line_1) that dwindles of horizontal image line is stored in this main storage 180.
When executive level and the amplification of vertical image, this image-zooming system 100 utilizes the acquisition of the first direct memory access device (DMA) 160 to be stored in the partial data (In_1ine_1~In_1ine_2) of 2 image lines in this main storage 180, after carrying out vertical direction amplification computing, the executive level direction is amplified computing again, to obtain the amplifier section data (Out_line_1) of horizontal image line.Afterwards, this image-zooming system 100 utilizes the second direct memory access device (DMA) 170 that the amplifier section data (Out_line_1) of horizontal image line are stored in this main storage 180.
Fig. 8 is the circuit diagram of another embodiment of the present invention.It mainly uses a control device 710 calculating the vertical weight (Wv0, Wv1, Wv2, Wv3, Wv4) of this N bar image line, and replaces these these vertically scale devices 120 with a vertical weight buffer 721.This control device 710 is carried out this vertically scale device 120, this horizontal scaling device 140, this first direct memory access device (DMA) 160, is reached the initialization and the related setting of this second direct memory access device (DMA) 170, and the vertical weight (Wv0, Wv1, Wv2, Wv3, Wv4) of this this N bar image line is write in this vertical weight buffer 721.
Fig. 9 is the calcspar of further embodiment of this invention.Wherein this Window-type internal memory 110 is table tennis Window-type internal memory (ping-pong window SRAM).This output buffer 150 also is ping-pong buffers device (ping-pong buffer).This Window-type internal memory 110 comprises one first ping-pong buffers device 810 and one second ping-pong buffers device 820.When the first ping-pong buffers device 810 is filled with data, with this vertically scale device 120 of export orientation of this first ping-pong buffers device 810.When the first ping-pong buffers device, 810 data exhaustion and the second ping-pong buffers device 820 are filled with data, with this vertically scale device 120 of export orientation of this second ping-pong buffers device 820.Whereby to improve the output variable (throughput) of system.
The preferred embodiments of the present invention can be demonstrated and disclosed by above-mentioned explanation.Its unrestricted the present invention is to aforesaid exposure.The distortion of many preferred embodiments or be modified to skilled person and can finish easily based on above-mentioned explanation, scope definition of the present invention is in the claim scope, and equivalence in one's power.
As shown in the above description, the present invention uses Window-type internal memory (window SRAM) to handle the image amplification and dwindle, and can take into account the requirement that reduces the image processing time and reduce memory size.The present invention does not use line buffer (line buffer) to store image data for reducing the use of internal memory, and with Window-type memory storage image data.And the memory size of Window-type internal memory is for to do the optimization adjustment according to direct memory access (DMA) frequency range, the use of Window-type internal memory dropped to minimum, reduces hardware cost.
Simultaneously, see through the position of control direct memory access (DMA) data read, the input image of a window size can be write in the Window-type internal memory (window SRAM) 110.Again with the image data of this window size through vertically amplifying or dwindling processor, after amplifying through level or dwindling processor, (real time) outputs to the image processing (for example image compression) of rear end in real time.
In addition, vertically scale device 120 of the present invention amplifies when dwindling computing carrying out image, and all shared this Window-type internal memory (window SRAM) 110 can further reduce the use amount of internal memory.Just output after the image data of two dimension (2D) is handled, do not needed whole piece image line to handle, but, can see through 170 outputs of the second direct memory access device with after handling several image datas, reach system's requirement of (Real time) output in real time.
The foregoing description is only given an example for convenience of description, and the interest field that the present invention advocated should be as the criterion so that claim is described certainly, but not only limits to the foregoing description.
Claims (12)
1. the image-zooming system that can save internal memory, in order to dwindle or to amplify an image, this image is made up of most bar image lines, and this image-zooming system comprises:
One Window-type internal memory, in order to the partial data of reception and temporary N bar image line, N is a positive integer;
One vertically scale device is connected to this Window-type internal memory, the partial data of this N bar image line being carried out the computing of vertical direction convergent-divergent, and produces the partial data of a vertical image line;
One buffer unit is connected to this vertically scale device, receives and keep in the partial data of this vertical image line; And
One horizontal scaling device is connected to this buffer unit, with the partial data executive level direction convergent-divergent computing to this vertical image line, and produces the convergent-divergent partial data of a horizontal image line;
Wherein, when the execution image dwindled, this vertically scale device and this horizontal scaling device used the window averaging method, to dwindle computing, when carrying out the image amplification, this vertically scale device and this horizontal scaling device use bilinear interpolation method, to amplify computing.
2. image-zooming system as claimed in claim 1, it also comprises:
One output buffer is connected to this horizontal scaling device, in order to the convergent-divergent partial data of temporary this horizontal image line;
One first direct memory access device is connected to a main storage and this Window-type internal memory, thereby captures the partial data of this N bar image line by this main storage, and the partial data of this N bar image line is sent to this Window-type internal memory; And
One second direct memory access device is connected to this main storage and this output buffer, thereby captures the convergent-divergent partial data of this horizontal image line by this output buffer, and convergent-divergent partial data that will this horizontal image line is sent to this main storage.
3. image-zooming system as claimed in claim 2, wherein, this Window-type internal memory has N output.
4. image-zooming system as claimed in claim 3, wherein, this vertically scale device comprises:
One vertical weight generator in order to when the image-zooming, produces N vertical weight;
N multiplier, the first input end of each multiplier be coupled respectively to this Window-type internal memory N output one of them, second input of each multiplier is coupled to this vertical weight generator, with receive respectively this vertical weight generator produce N vertical weight one of them, thereby the partial data of this N bar image line is carried out multiplying;
One first adder, it has N input, and is coupled respectively to the output of this N multiplier, carries out add operation with the output that this is produced this N multiplier; And
One first shift unit is coupled to the output of this first adder, is shifted with the output to this first adder, thereby produces the partial data of this vertical image line.
5. image-zooming system as claimed in claim 4, wherein, this horizontal scaling device comprises:
One horizontal weights generator in order to when the image-zooming, produces M horizontal weights, and M is a positive integer;
One initial pixel marker generator, it is coupled to this buffer unit and produces an index, and this index is in order to the position of this buffer unit of indication access; And
One horizontal scaling engine, it is coupled to this buffer unit and this horizontal weights generator, by the data of M pixel of acquisition in this buffer unit, and by this M of acquisition horizontal weights in this horizontal weights generator, so that this M pixel is carried out the horizontal scaling computing.
6. image-zooming system as claimed in claim 5, wherein, this horizontal scaling engine comprises:
M buffer, it is coupled to this buffer unit, in order to temporary data by M pixel of acquisition in this buffer unit;
M multiplier, the first input end of each multiplier be coupled respectively to this M buffer output one of them, second input of each multiplier is coupled to this horizontal weights generator, with receive respectively this horizontal weights generator produce M horizontal weights one of them, thereby this M pixel is carried out multiplying;
One second adder, it has M input, and is coupled respectively to the output of this M multiplier, carries out add operation with the output that this is produced this M multiplier; And
One second shift unit is coupled to the output of this second adder, carries out shift operation with the output to this product adder.
7. the image-zooming system that can save internal memory, in order to dwindle or to amplify an image, this image is made up of most bar image lines, and this image-zooming system comprises:
One Window-type internal memory, in order to the partial data of reception and temporary N bar image line, N is a positive integer;
One vertically scale device is connected to this Window-type internal memory, the partial data of this N bar image line being carried out the computing of vertical direction convergent-divergent, and produces the partial data of a vertical image line;
One buffer unit is connected to this vertically scale device, receives and keep in the partial data of this vertical image line;
One horizontal scaling device is connected to this buffer unit, with the partial data executive level direction convergent-divergent computing to this vertical image line, and produces the convergent-divergent partial data of a horizontal image line; And
One control device, it is connected to this vertically scale device and this horizontal scaling device, this control device is carried out the initialization and the related setting of this vertically scale device and this horizontal scaling device, and calculate N vertical weight of this N bar image line respectively, again this N vertical weight is write this vertically scale device;
Wherein, when the execution image dwindled, this vertically scale device and this horizontal scaling device used the window averaging method, to dwindle computing, when carrying out the image amplification, this vertically scale device and this horizontal scaling device use bilinear interpolation method, to amplify computing.
8. image-zooming system as claimed in claim 7, it also comprises:
One output buffer is connected to this horizontal scaling device, in order to the convergent-divergent partial data of temporary this horizontal image line;
One first direct memory access device is connected to a main storage and this Window-type internal memory, thereby captures the partial data of this N bar image line by this main storage, and the partial data of this N bar image line is sent to this Window-type internal memory; And
One second direct memory access device is connected to this main storage and this output buffer, thereby captures the convergent-divergent partial data of this horizontal image line by this output buffer, and convergent-divergent partial data that will this horizontal image line is sent to this main storage.
9. image-zooming system as claimed in claim 8, wherein, this Window-type internal memory has N output.
10. image-zooming system as claimed in claim 9, wherein, this vertically scale device comprises:
One vertical weight buffer is connected to this control device, in order to when the image-zooming, and temporary N that this control device produces vertical weight;
N multiplier, the first input end of each multiplier be coupled respectively to this Window-type internal memory N output one of them, second input of each multiplier is coupled to this vertical weight buffer, with receive respectively the stored N of this a vertical weight buffer vertical weight one of them, carry out multiplying in order to do partial data to this N bar image line;
One first adder, it has N input, and is coupled respectively to the output of this N multiplier, carries out add operation with the output that this is produced this N multiplier; And
One first shift unit is coupled to the output of this first adder, is shifted with the output to this first adder, thereby produces the partial data of this vertical image line.
11. image-zooming system as claimed in claim 10, wherein, this horizontal scaling device comprises:
One horizontal weights generator in order to when the image-zooming, produces M horizontal weights, and M is a positive integer;
One initial pixel marker generator, it is coupled to this buffer unit and produces an index, and this index is in order to the position of this buffer unit of indication access; And
One horizontal scaling engine, it is coupled to this buffer unit and this horizontal weights generator, by the data of M pixel of acquisition in this buffer unit, and by this M of acquisition horizontal weights in this horizontal weights generator, so that this M pixel is carried out the horizontal scaling computing.
12. image-zooming system as claimed in claim 11, wherein, this horizontal scaling engine comprises:
M buffer, it is coupled to this buffer unit, in order to temporary data by M pixel of acquisition in this buffer unit;
M multiplier, the first input end of each multiplier be coupled to this M buffer output one of them, second input of each multiplier is coupled to this horizontal weights generator, with receive this horizontal weights generator produce M horizontal weights one of them, thereby this M pixel is carried out multiplying;
One second adder, it has M input, and is coupled respectively to the output of this M multiplier, carries out add operation with the output that this is produced this M multiplier; And
One second shift unit is coupled to the output of this second adder, carries out shift operation with the output to this product adder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100931865A CN100508550C (en) | 2006-06-23 | 2006-06-23 | Image-zooming system capable of saving memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100931865A CN100508550C (en) | 2006-06-23 | 2006-06-23 | Image-zooming system capable of saving memory |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101094304A CN101094304A (en) | 2007-12-26 |
CN100508550C true CN100508550C (en) | 2009-07-01 |
Family
ID=38992316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100931865A Expired - Fee Related CN100508550C (en) | 2006-06-23 | 2006-06-23 | Image-zooming system capable of saving memory |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100508550C (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102186044A (en) * | 2010-06-22 | 2011-09-14 | 上海盈方微电子有限公司 | Edge correlation image stepless scaling algorithm and hardware realization device thereof |
CN102333212B (en) * | 2010-07-14 | 2013-07-17 | 北京大学 | Bilinear two-fold upsampling method and system thereof |
CN105589820B (en) * | 2015-12-22 | 2019-01-15 | 中国科学院微电子研究所 | Data transmission buffer device |
-
2006
- 2006-06-23 CN CNB2006100931865A patent/CN100508550C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101094304A (en) | 2007-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7920150B2 (en) | Image scaling system capable of saving memory | |
CN100356405C (en) | Method and apparatus for changing digital image size | |
CN103366342B (en) | Be applied to the subsection linearity inser value method that video image amplifies | |
CN102186044A (en) | Edge correlation image stepless scaling algorithm and hardware realization device thereof | |
CN101894362B (en) | Image amplifying device and method | |
CN106910162A (en) | Image zoom processing method and device based on FPGA | |
CN100389435C (en) | Image processing device | |
CN102222317A (en) | Image scaling method and system | |
CN106780336B (en) | Image reduction method and device | |
CN100508550C (en) | Image-zooming system capable of saving memory | |
CN104935831A (en) | Parallel multiphase image interpolation device and method | |
CN101950523A (en) | Adjustable rectangular window image scaling method and device | |
CN101789234A (en) | Digital image scaling method and integrated system | |
CN107094241B (en) | A kind of the real time imagery display methods and system of carried SAR | |
CN103678359B (en) | A kind of integrated circuit waveforms image fast display method | |
TW202005353A (en) | Method and device for removing video jitter | |
CN107085827B (en) | Super-resolution image restoration method based on hardware platform | |
CN102110431B (en) | Method and device for zooming digital images | |
CN111107295B (en) | Video scaling method based on FPGA and nonlinear interpolation | |
CN101662598B (en) | Scaling system for continuous video data stream | |
CN101778200B (en) | Nonuniform sampling-based image correction system and method | |
US20120050820A1 (en) | Image processing apparatus, control method of the same, and program | |
CN115908132A (en) | Image scaling processing method and device based on cubic convolution interpolation method | |
WO2016197393A1 (en) | Parallel multiphase image interpolation device and method | |
CN114119372A (en) | High-precision image scaling method based on FPGA |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090701 Termination date: 20150623 |
|
EXPY | Termination of patent right or utility model |