This application claims priority to Korean Patent Application No. 10-2012-0056549 filed on May 29, 2012, and all the benefits accruing therefrom under 35 U.S.C. § 119, the contents of which is incorporated by reference in its entirety.
1. Technical Field
The present invention relates to an image processing method and apparatus, and more particularly, to an image processing method and apparatus, which perform image processing after dividing a collected image into a plurality of image slices.
2. Description of the Related Art
In general, an image sensor is a semiconductor device which converts an analog signal of light into an electric signal. Currently, cellular phones, smartphones, camera phones, personal digital assistants (PDAs), or the like terminal as well as digital cameras include a camera module, so that a function of capturing an image has become widespread. Such a camera module uses an image sensor such as a charged-coupled device (CCD) or a complementary metal-oxide semiconductor (CMOS) to capture an image of an object.
A typical image sensor has a pixel array of a Bayer pattern. The image sensor using the Bayer pattern includes a plurality of unit pixels that convert an optical signal of an object into an electric signal. Each unit pixel of the Bayer pattern includes information about one among Red/Green/Blue. Values of R, G and B detected by the respective unit pixels are converted into digital signals by an analog digital converter (ADC) included in the image sensor, and input to an image signal processor (ISP).
On the other hand, certain blocks, for example, DPC 106, BNR 110, CI 112, etc. included in the ISP block 104 of
To process an image input by the image sensor 102 of
An aspect of the present invention is to provide an image processing method and apparatus, which performs image processing after dividing an image collected by an image sensor into a plurality of image slices, thereby decreasing the amount of memory used in image processing and the overall size of the image module.
In accordance with one aspect of the present invention, a method of processing an image collected by an image sensor includes: receiving an image; determining image slice size information by taking into account a boundary area between a plurality of image slices to be generated; dividing the image into the plurality of image slices according to the image slice size information; and processing the plurality of image slices in sequence using division information about the image slices.
In accordance with another aspect of the present invention, an apparatus for processing an image collected by an image sensor includes: an input unit which receives an image; an image slice generator which determines image slice size information by taking into account a boundary area between a plurality of image slices to be generated, and divides the image into the plurality of image slices according to the image slice size information; and an image processor which processes the plurality of image slices in sequence using division information about the image slices.
The present invention is not limited to the above aspect, and other aspects, objects, features and advantages of the present invention will be understood from the detailed description of the following embodiments of the present invention. In addition, it will be readily understood that the aspects, objects, features and advantages of the present invention can be achieved by the accompanied claims and equivalents thereof.
The above and other aspects, features, and advantages of the present invention will become apparent from the detailed description of the following embodiments in conjunction with the accompanying drawings, in which:
Exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be understood that the present invention is not limited to the following embodiments and may be embodied in different ways, and that the embodiments are given to provide complete disclosure of the invention and to provide thorough understanding of the invention to those skilled in the art. Descriptions of details apparent to those skilled in the art will be omitted for clarity of description. The like components will be denoted by the like reference numerals throughout the specification.
As described above, digital cameras, cellular phones, smartphones, camera phones, personal digital assistants (PDAs), other terminals, and the like include a camera module. Such a camera module generally employs an image sensor having a Bayer pattern, as shown in
To process an image input by the image sensor 102 of
The present invention is devised to solve such a problem, and thus provides an image processing method and apparatus, in which an image input through the image sensor is divided into a plurality of image slices and processed so as to reduce the amount of memory used in image processing and the overall size of the image module.
Referring to
In this embodiment, the image slice generator 206 divides an image input through the input unit 204 into a plurality of image slices. The image slice generator 206 determines image slice size information in consideration of a boundary area between the plurality of image slices to be generated. In some embodiments, the image slice generator 206 may determine the image slice size information, i.e., information about the size of the image slice based on slice number information (information about the number of image slices to be generated), image size information (information about the size of the input image), and mask information (information about the size of the mask used in the image processor 208)
Then, the image slice generator 206 divides the input image into the plurality of image slices according to the determined image slice size information.
The image processor 208 uses division information about the image slices to thereby sequentially process the plurality of image slices. Here, the division information may include at least one of the slice number information and the image size information.
Although not shown in
Next, configuration and operation of the image processing apparatus according to the embodiment will be described. In this embodiment, one image is divided into two image slices, and the ISP uses a mask filter having a size of 5×5, without being limited thereto. The present invention may be applied without any limitation as to the number of image slices and the size of the mask filter.
First, the input unit 304 receives images collected by the image sensor 302. Further, the image slice generator 306 divides the input image into two image slices.
In more detail, the image slice generator 306 determines the image slice size information based on the slice number information, the image size information, and mask information. In this embodiment, the number of image slices is 2. Further, the image input by the input unit 304 has a size (iWidth, iHeight), and the image processor 308 employs a mask having a size of 5×5. The size (sWidth, sHeight) of one slice is determined by the following expression:
sWidth=(iWidth/2)+(NM>>1); and
sHeight=iHeight.
In this embodiment, since the number of image slices is 2, iWidth is divided by 2 when determining sWidth. Also, ‘NM’ refers to the size of the mask, and ‘>>’ means a binary number shift operation. For example, in this embodiment, ‘NM’ is 5,and ‘>>1’ is ‘10’, i.e., ‘2’ as a result of shifting a binary number ‘101’ rightward by 1 bit.
Here, it should be noted that in this embodiment, sWidth is determined based on a value obtained by adding ‘NM>>1’ to a value obtained by dividing iWidth by the number of image slices since the boundary area between the image slices is taken into account. For example, in a conventional image processing method, the boundary between the images is processed by sharing some pixels of a previous image with those of the next image in the boundary areas 502, 504 between the images, as shown in
On the contrary, according to the present invention, since one image is divided into the plurality of image slices, the boundary area between the image slices is taken into account. That is, if two image slices are generated as shown in
According to such determined image slice size information, the image slice generator 306 divides the input image into two image slices.
Referring to
The image slice generator 306 may include an image writing unit 402, a controller 404, and an image reading unit 406. The image writing unit 402 stores an image input by the input unit 304 in a memory through a bus 408. The image reading unit 406 reads the image stored in the bus 408 in a unit of image slice under control of the controller 404, and sends the same to the image processor 308. The controller 404 determines the image slice size information based on the slice number information, the image size information and the mask information, as described above, and controls the image reading unit 406 in accordance with the determined image slice size information.
Referring again to
The image merging unit 310 may arrange the plurality of image slices by taking into account the boundary area between the image slices.
As described above, the image slice generator 306 determines the size of the image slice by taking into account the boundary area between the image slices. Therefore, the boundary area between the image slices has to be taken into account even when such image slices are merged into one image.
As described above, the width (sWidth) of the image slice generated by the image slice generator 306 is determined by adding a value (NM>>1), which is obtained by taking the mask size into account, to a value obtained by dividing the width (iWidth) of the input image by the number of images. For example, in
In one embodiment, the image merging unit 310 excludes pixels (for example, NM>>1) added when generating the image slice from the corresponding image slice. For example, the image merging unit 310 excludes two pixels 702 of
Next, the input image is divided into the plurality of image slices according to the determined image slice size information (806). Here, the division information may include at least one of the slice number information and the image size information. Then, the plural image slices are sequentially processed using the division information about the image slice (808).
Although not shown in
According to embodiments, an image is processed in a unit of image slice within a limit allowable by a memory bandwidth, thereby reducing the size of the line-buffer of the ISP and the size of the whole image processing module. Also, the image processing method according to the present invention guarantees compatibility with the existing ISP.
As such, the image processing apparatus and method according to the present invention processes each image collected by the image sensor by dividing the collected image into a plurality of image slices, thereby reducing the amount of memory used in image processing and the overall size of the image module.
Although some exemplary embodiments have been described herein, it should be understood by those skilled in the art that these embodiments are given by way of illustration only, and that various modifications, variations and alterations can be made without departing from the spirit and scope of the invention. The scope of the present invention should be defined by the appended claims and equivalents thereof.
Number | Date | Country | Kind |
---|---|---|---|
10-2012-0056549 | May 2012 | KR | national |