This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2012-265106, filed on Dec. 4, 2012; the entire contents of which are incorporated herein by reference.
Embodiments described herein relate generally to an image processing device.
In a CMOS image sensor, there is a method of using a multi-resolution filter to remove noise of an input image. In the method of using the multi-resolution filter, an effective filter diameter in a low pass can be enlarged by generating a reduced image from the input image, thereby reducing a memory capacity.
In general, according to one embodiment, a line memory, a defect correcting circuit, a binning circuit, a frame buffer, a filter, and a mixing circuit are provided. The line memory stores an input image by a plurality of rows. The defect correcting circuit performs defect correction on the input image based on image data stored in the line memory. The binning circuit generates a low pass image having a lower spatial frequency than the input image by binning the input image subjected to the defect correction. The frame buffer stores the low pass image. The filter generates a high pass image having a higher spatial frequency than the low pass image by filtering the input image subjected to the defect correction. The mixing circuit mixes the low pass image with the high pass image.
Hereinafter, an image processing device according to embodiments will be described in detail with reference to the appended drawings. The invention is not limited to the embodiments.
In
The line memory 1 stores the input image GI by a plurality of rows.
In
When the digital binning circuit 3 bins a partial image GE of the input image GI′ subjected to the defect correction by the defect correcting circuit 2, a low pass image GL is generated and stored in the frame buffer 6. When the partial image GE of the input image GI′ is input to the averaging filter 4, a middle pass image GM is generated and output to the edge detecting unit 7 and the low middle pass image mixing circuit 9. When the partial image GE of the input image GI′ is input to the epsilon filter 5, a high pass image GH is generated and output to the edge detecting unit 8 and the low middle high pass image mixing circuit 10.
In the low middle pass image mixing circuit 9, the low pass image GL is selected for a portion in which an edge is not detected by the edge detecting unit 7 and the middle pass image GM is selected for a portion in which the edge is detected by the edge detecting unit 7. Then, the low pass image GL and the middle pass image GM are mixed and a mixed image GLM is output to the low middle high pass image mixing circuit 10.
In the low middle high pass image mixing circuit 10, the mixed image GLM is selected for a portion in which the edge is not detected by the edge detecting unit 8 and the high pass image GH is selected for a portion in which the edge is detected by the edge detecting unit 8. Then, the mixed image GLM and the high pass image GH are mixed, and thus an output image GO is generated.
When the digital binning circuit 3 generates the low pass image GL and stores the low pass image GL in the frame buffer 6, a line memory used to generate the low pass image GL may not be provided, thereby reducing a circuit size. For example, when an image with 4096×3072 pixels is processed, the capacity of the line memory corresponding to 4096×63 pixels is required to generate the low pass image GL. On the other hand, when a compression ratio of the low pass image GL is set to a longitudinal 1/64 and a transverse 1/64 to perform the process, only the capacity of the frame buffer 6 corresponding to 64×48 pixels is necessary.
When the line memory 1 for the defect correction is used to generate the middle pass image GM and the high pass image GH, a line memory used to generate the middle pass image GM and the high pass image GH may not be provided, thereby reducing the circuit size. Further, by performing the defect correction not only on the central pixel but also the peripheral pixels in the periphery of the central pixel in the defect correcting circuit 2, an image quality can be improved.
In the image processing device illustrated in
The synchronization signal S1 indicates an output enable signal of the input image GI. The mask signal S2 indicates whether the input image GI is a stop image. When the mask signal S2 is set to be active, the synchronization signal S1 is masked and the output of the input image GI is stopped. The reset signal S3 indicates a transition instruction signal to a standby state. The image mode information S4 can include binning information on the input image GI, flip information on the input image GI, and width height information on the input image GI.
The sequencer 11 outputs a binning control signal R1 to the digital binning circuit 3 and outputs a buffer control signal R2 to the frame buffer 6. The sequencer 11 determines the correlation between the input images GI based on the synchronization signal S1, the mask signal S2, the reset signal S3, and the image mode information S4. When there is the correlation between the input images GI, a binning ratio of the digital binning circuit 3 is controlled based on the binning control signal R1 according to a compression ratio of the input image GI so that a compression ratio of the low pass image GL is constant. The compression ratio of the input image GI can be determined from the binning information included in the image mode information S4. The frame buffer 6 is controlled based on the buffer control signal R2, the previous low pass image GL stored in the frame buffer 6 is retained without change, and the low pass image GL is output to the low middle pass image mixing circuit 9. When the input image GI is changed over, the low middle pass image mixing circuit 9 mixes the previous low pass image GL stored in the frame buffer 6 with the currently generated middle pass image GM to generate a mixed image GLM.
Here, by controlling the binning ratio of the digital binning circuit 3 so that the compression ratio of the low pass image GL is constant, the previous low pass image GL stored in the frame buffer 6 and the currently generated middle pass image GM are mixed to generate a mixed image GLM, even when the compression ratio of the input image GI is changed.
Conversely, when there is no correlation between the input images GI, the frame buffer 6 is controlled based on the buffer control signal R2 and the previous low pass image GL stored in the frame buffer 6 is discarded. When the input image GI is changed over in the low middle pass image mixing circuit 9, the currently generated middle pass image GM is output as the mixed image GLM to the low middle high pass image mixing circuit 10. Then, the low middle high pass image mixing circuit 10 selects the middle pass image GM for a portion in which the edge is not detected by the edge detecting unit 8, selects the high pass image GH for a portion in which the edge is detected by the edge detecting unit 8, and mixes the middle pass image GM with the high pass image GH to generate an output image GO.
Here, by controlling the digital binning circuit 3 and the frame buffer 6 based on the correlation between the input images GI, noise of the input image GI can be removed while achieving rapid adaptation to a state change of the input image GI even when the state of the input image GI is changed.
In
When the input image GI is changed from the viewfinder image GI2 to the still image GI4, the sequencer 11 determines correlation between the viewfinder image GI2 and the still image GI4. At this time, the binning information included in the image mode information S4 is updated from the binning ratio of the longitudinal ½ and the transverse ½ to the same magnification. When the binning information included in the image mode information S4 is updated, it is determined that there is the correlation between the viewfinder image GI2 and the still image GI4. Therefore, the low pass image GF2 stored in the frame buffer 6 is retained without change.
When the input image GI is changed from the viewfinder image GI2 to the still image GI4 and the stop image GI3 is input as the input image GI, the mask signal S2 is set to be active. At this time, the sequencer 11 performs control such that a low pass image GF3 of the stop image GI3 is not stored in the frame buffer 6, and thus an output image GO3 of the stop image GI3 is considered not to be generated.
When the still image GI4 is input as the input image GI, the averaging filter 4 and the epsilon filter 5 perform the filtering to generate a middle pass image GM and a high pass image GH. Then, the middle pass image GM and the high pass image GH currently generated, and the low pass image GF2 stored in the frame buffer 6 are mixed to generate an output image GO4. Further, the digital binning circuit 3 bins the still image GI4 to generate a low pass image GF4 and stores the low pass image GF4 in the frame buffer 6.
By controlling the binning ratio of the digital binning circuit 3 so that the compression ratio of the low pass images GF1 and GF2 accords with the compression ratio of the low pass image GF4, the low pass image GF2 generated from the viewfinder image GI2 can be mixed with the middle pass image GM and the high pass image GH generated from the still image GI4 even when the compression ratios are different between the viewfinder images GI2 and the still image GI4. Therefore, the noise of the input image GI can be removed while achieving the rapid adaptation to the state change of the input image GI.
By determining the correlation between the viewfinder image GI2 and the still image GI4, the low pass image GF2 generated from the viewfinder image GI2 can be used in the generation of the output image GO4 of the still image GI4.
In
When standby is performed before input of an input image GI14, the reset signal S3 is set to be active and the sequencer 11 determines a standby time. When the standby time is within a predetermined time, it is determined that there is correlation between the input images GI13 and GI14 and the low pass image GF13 stored in the frame buffer 6 is retained without change.
When the input image GI14 is input as the input image GI, the averaging filter 4 and the epsilon filter 5 perform the filtering to generate a middle pass image GM and a high pass image GH. Then, the middle pass image GM and the high pass image GH currently generated are mixed with the low pass image GF13 stored in the frame buffer 6 to generate an output image GO14. The digital binning circuit 3 bins the input image GI14 to generate a low pass image GF14 and stores the low pass image GF14 in the frame buffer 6.
Here, when a standby time before the input of the input image GI14 is within a predetermined time, the low pass image GF13 stored in the frame buffer 6 is retained without change. Then, while preventing reproduction of the output image GO14 of the input image GI14 from being damaged, the low pass image GF13 generated from the input image GI13 can be used in the generation of the output image GO14 of the input image GI14.
In
When standby is performed before input of the input image GI22, the reset signal S3 is set to be active and the sequencer 11 determines a standby time. When the standby time exceeds a predetermined time, it is determined that there is no correlation between the input images G121 and GI22 and the low pass image GF21 stored in the frame buffer 6 is discarded.
When the input image G122 is input as the input image GI, the averaging filter 4 and the epsilon filter 5 perform the filtering to generate the middle pass image GM and the high pass image GH and then a mixed image thereof is output as an output image GO22. The digital binning circuit 3 bins the input image GI22 to generate a low pass image GF22 and stores the low pass image GF22 in the frame buffer 6.
Next, when an input image GI23 is input as the input image GI, the averaging filter 4 and the epsilon filter 5 perform the filtering to generate a middle pass image GM and a high pass image GH. Then, the middle pass image GM and the high pass image GH currently generated are mixed with the low pass image GF22 stored in the frame buffer 6 to generate an output image GO23. The digital binning circuit 3 bins the input image GI23 to generate a low pass image GF23 and stores the low pass image GF23 in the frame buffer 6.
Here, when the standby time before the input of the input image GI22 exceeds the predetermined time, the low pass image GF22 stored in the frame buffer 6 is discarded. Then, since the low pass image GF21 generated from the input image GI21 may not be used in the generation of the output image GO22 of the input image G122, the reproduction of the output image GO22 of the input image GI22 can be prevented from being damaged.
In
When the input image GI is changed from the non-flip image GI32 to the upper and lower flip image GI34, the sequencer 11 determines the correlation between the non-flip image GI32 and the upper and lower flip image GI34. At this time, the flip information included in the image mode information S4 is updated from the non-flip image to the upper and lower flip image. When the flip information included in the image mode information S4 is updated, it is determined that there is no correlation between the non-flip image GI32 and the upper and lower flip image GI34, and thus the low pass image GF32 stored in the frame buffer 6 is discarded.
When the input image GI is changed from the non-flip image GI32 to the upper and lower flip image GI34 and a stop image GI33 is input as the input image GI, the mask signal S2 is set to be active. At this time, the sequencer 11 performs control such that the low pass image GF33 of the stop image GI33 is not stored in the frame buffer 6 and an output image GO33 of the stop image GI33 is considered not to be generated.
When the upper and lower flip image GI34 is input as the input image GI, the averaging filter 4 and the epsilon filter 5 perform the filtering to generate a middle pass image GM and a high pass image GH and then a mixed image thereof is output as an output image GO34. The digital binning circuit 3 bins the upper and lower flip image GI34 to generate a low pass image GF34 and stores the low pass image GF34 in the frame buffer 6.
Next, when the upper and lower flip image GI35 is input as the input image GI, the averaging filter 4 and the epsilon filter 5 perform the filtering to generate a middle pass image GM and a high pass image GH. Then, the middle pass image GM and the high pass image GH currently generated are mixed with the low pass image GF34 stored in the frame buffer 6 to generate an output image GO35. The digital binning circuit 3 bins the input image GI35 to generate a low pass image GF35 and stores the low pass image GF35 in the frame buffer 6.
When the input image GI is changed from the non-flip image GI32 to the upper and lower flip image GI34, the low pass image GF32 stored in the frame buffer 6 is discarded. Then, since the low pass image GF32 generated from the non-flip image GI32 may not be used in the generation of the output image GO34 of the upper and lower flip image GI34, reproduction of the output image GO34 of the upper and lower flip image GI34 can be prevented from being damaged.
In the embodiment of
In
When the input image GI is changed from the input image GI42 to a cutout image GI44, the sequencer 11 determines correlation between the input image GI42 and the cutout image GI44. At this time, width height information included in the image mode information S4 is updated. When the width height information included in the image mode information S4 is updated, it is determined that there is no correlation between the input image GI42 and the cutout image GI44 and the low pass image GF42 stored in the frame buffer 6 is discarded.
When the input image GI is changed from the input image GI42 to the cutout image GI44 and a stop image GI43 is input as the input image GI, the mask signal S2 is set to be active. At this time, the sequencer 11 performs control such that the low pass image GF43 of the stop image GI43 is not stored in the frame buffer 6 and an output image GO43 of the stop image GI43 is considered not to be generated.
When the cutout image GI44 is input as the input image GI, the averaging filter 4 and the epsilon filter 5 perform the filtering to generate a middle pass image GM and a high pass image GH and then a mixed image thereof is output as an output image GO44. The digital binning circuit 3 bins the cutout image GI44 to generate a low pass image GF44 and stores the low pass image GF44 in the frame buffer 6.
Next, when the cutout image GI45 is input as the input image GI, the averaging filter 4 and the epsilon filter 5 perform the filtering to generate a middle pass image GM and a high pass image GH. Then, the middle pass image GM and the high pass image GH currently generated are mixed with the low pass image GF44 stored in the frame buffer 6 to generate an output image GO45. The digital binning circuit 3 bins the input image GI45 to generate a low pass image GF45 and stores the low pass image GF45 in the frame buffer 6.
When the input image GI is changed from the input image GI42 to the cutout image GI44, the low pass image GF42 stored in the frame buffer 6 is discarded. Then, since the low pass image GF42 generated from the input image GI42 may not be used in the generation of the output image GO44 of the cutout image GI44, reproduction of the output image GO44 of the cutout image GI44 can be prevented from being damaged.
In
The sensor control unit 22 may make the CMOS image sensor 23 to perform still image shot of a captured image, perform standby processing of the captured image, perform zooming on the captured image, perform upper and lower reversing on the captured image, and perform cutting on the captured image. Further, the sensor control unit 22 can output the synchronization signal S1, the mask signal S2, the reset signal S3, and the image mode information S4 to the image processing device 25. The CMOS image sensor 23 can output the captured image. The AD converter 24 digitizes the captured image output from the CMOS image sensor 23 to generate an input image GI. The image recording unit 26 can record an output image GO output from the image processing device 25. The viewfinder 27 can display the output image GO output from the image processing device 25.
When a user operates the operation unit 21, the CMOS image sensor 23 performs the still image shot of a captured image, performs the standby processing of the captured image, performs the zooming on the captured image, performs the upper and lower reversing on the captured image, or performs the cutting on the captured image. Then, after the captured image is digitized by the AD converter 24, the digitized image is input as the input image GI to the image processing device 25. The image processing device 25 multiplexes a low pass image GL, a middle pass image GM, and a high pass image GH based on the correlation between the input images GI to generate the output image GO, and then the output image GO is recorded in the image recording unit 26 or is displayed on the viewfinder 27.
In the above-described embodiments, the method of multiplexing the low pass image GL, the middle pass image GM, and the high pass image GH generated from the input image GI has been described. However, the images to be multiplexed may not be limited to three spatial frequency bands. Two low and high spatial frequency bands, or four or more spatial frequency bands may be used.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.
Number | Date | Country | Kind |
---|---|---|---|
2012-265106 | Dec 2012 | JP | national |