This application is based upon and claims the benefit of priority from Japanese patent application No. 2009-186059, filed on Aug. 10, 2009, the disclosure of which is incorporated herein in its entirety by reference.
1. Field of the Invention
The present invention relates to an image processing device, an image processing method which can be used for a check or a test.
2. Description of Related Art
Image processing includes a filtering process for the purpose of sharpness, feathering, embossment, solarization, contour enhancement, and contour detection. When such a filtering process is performed, images before and after the image processing may be compared to test whether or not the image processing has been performed normally.
For example, Japanese patent No. 4215459 (Ebe) discloses a device which compares image data which is a test target generated by an image output device which is under development with reference image data which is generated by an existing image output device in the test process of the image output device such as a printer or a copy-machine.
The image data comparing device disclosed in Ebe compares pixel values of image data which is a test target and is generated by the image output device with pixel values of reference image data which is reference data generated by an existing image output device. The reference image data and the image data to be tested are input into the image data comparing device, and pixel vales of these two image data are compared by one dot, to detect the locations of different dots. In the comparison of the image data, a coordinate of a neighboring dot of the different dot of the reference image data and the image data to be tested is detected and a display unit colors and displays the neighboring dot by different colors depending on the distance from the different dot. The image data comparing device thus visualizes the difference between the reference image and the image to be tested instead of displaying or outputting the difference by numerical numbers.
In the meantime, when a defect analysis is performed in an image processing device, a register stores the pixel value of the specified coordinate of a display image, and a CPU (Central Processing Unit) reads out the pixel value to compare the pixel value with data before processing in some cases. However, if the CPU simply specifies the coordinate and reads out the pixel value, a user cannot know which value of a pixel in the image the specified coordinate detects. Therefore, when the pixel value of an objective position in the display image is read out, the user needs to visually recognize the objective position.
Specifically, along with an increase of the number of bits and advancement of image processing in the field which handles an image such as digital TV, BD (Blu-ray Disc) player, the need for observation of the pixel value after the image processing has been increasing.
According to an embodiment of the present invention, there is provided an image processing device including a pixel value read out unit which reads out a pixel value of a target pixel, a pixel value change unit which changes the pixel value of the target pixel, and a coordinate specify unit which specifies a position of the target pixel in an image. The pixel value of the target pixel is changed.
According to the present invention, by changing the pixel value of the target pixel, a pixel position of the target pixel in the image can be recognized by a user, and then an objective position can be visually searched.
According to another embodiment of the present invention, there is provided an image processing device including a pixel value read out unit which reads out a pixel value of a target pixel, a pixel value change unit which changes a pixel value of a noticeable pixel, the noticeable pixel being at least one pixel of adjacent pixels adjacent to the target pixel, and a coordinate specify unit which specifies a position of the target pixel in an image, the target pixel being adjacent to the noticeable pixel included in the adjacent pixels. The pixel value of the noticeable pixel is changed.
According to the present invention, since the pixel value of the noticeable pixel adjacent to the target pixel is changed, the noticeable pixel whose pixel value has been changed can be visually recognized. This enables to visually search an objective position in the image.
According to an embodiment of the present invention, there is provided an image processing method including reading out a pixel value of a target pixel, changing the pixel value of the target pixel, and specifying a position of the target pixel in an image and checking the position of the target pixel in the image, to acquire the pixel value of the target pixel in an objective position by. The pixel value of the target pixel is changed.
According to another embodiment of the present invention, there is provided an image processing method including reading out a pixel value of a target pixel, changing a pixel value of a noticeable pixel, the noticeable pixel being at least one pixel of adjacent pixels adjacent to the target pixel, and specifying a position of the target pixel in an image and checking a position of the noticeable pixel in the image, to acquire the pixel value of the target pixel in an objective position. The target pixel is adjacent to the noticeable pixel included in the adjacent pixel. The pixel value of the noticeable pixel is changed.
According to the present invention, an image processing device and an image processing method which acquire the pixel value of the pixel of an objective position in an image are provided.
The above and other exemplary aspects, advantages and features will be more apparent from the following description of certain exemplary embodiments taken in conjunction with the accompanying drawings, in which:
Hereinafter, exemplary embodiments of the present invention are described in detail with reference to the accompanying drawings. In these exemplary embodiments, the present invention is applied to an image quality controlling circuit which is mounted on an image display device such as TV, STB (Set-top box), DVD (Digital Versatile Disk) player/recorder or BD player/recorder.
As described above, when a low potential defect problem of a device is analyzed, for example, a pixel value observation function will be sometimes needed. The pixel value observation function means the function to store a pixel value of a specified coordinate of a display image in a register, and to read out the pixel value by a CPU for analysis. One method to achieve this is to determine the coordinate while turning on/off a marker function (displaying a marker having a specified width in a specified coordinate) to allow a user to visually check which of the pixel value of a coordinate is detected, However, the size of the circuit increases to carry out the marker function,
To solve the problem stated above, the inventor has found an image processing device which enables to obtain a pixel value of a pixel in an objective position in an image (screen). That is, to visually recognize the objective position in the image, a color of a noticeable pixel whose pixel value is read out or an adjacent pixel adjacent to the noticeable pixel is changed. Hence, the position on the image of the pixel whose pixel value needs to be read out can be visually recognized, and the image processing result can be quickly checked.
The image filter 1 performs a filtering process for the purpose of sharpness, feathering, embossment, solarization, contour enhancement, and contour detection and so on. The image processing includes extraction of the specific area for specific processing instead of performing equal processing on a whole screen. In this case, a pixel value in such a specific area is obtained and pixel values before and after processing may sometimes be compared and analyzed. In such a case, in the first exemplary embodiment, a pixel value of a target pixel whose pixel value is obtained is changed. That is, since the color of the target pixel is changed an objective position can be searched while allowing a user to visually check the target pixel. In summary, the image processing device of the first exemplary embodiment enables to obtain a pixel value of a pixel in a desired position on an image. For example, by comparing the pixel values before and after processing, it can be tested whether or not the image processing is performed adequately.
When the output image is displayed in a raster scan, pixel value for each row corresponding to a scan line is output from the image filter 1 and displayed. As shown in
Hereinafter, the image processing device of the first exemplary embodiment will be described in detail.
The control signal of the selector 21 is output from the pixel value acquisition unit 5. The pixel value acquisition unit 5 includes a pixel value register 51, an H counter 52, a V counter 53, an X coordinate setting unit 54, a Y coordinate setting unit 55, match detection units 56, 57 and an AND circuit 58.
The pixel value register 51 receives an output of the image filter 1, and stores a desired pixel value based on an output of the AND circuit 58. That is, the pixel value register 51 receives a pixel value at a timing when the output of the AND circuit 58 is active.
The H counter 52 counts a pixel value of the image data in a horizontal direction, and the count value shows a position in a lateral direction of the display image which is being searched. The V counter 53 counts a pixel value of the image data in a vertical direction, and the count value shows a position in a longitudinal direction of the display image. The H counter 52 is cleared by HSYNC signal (Horizontal Synchronizing signal). The V counter 53 is cleared by VSYNC signal (Vertical Synchronizing signal).
The X coordinate setting unit 54 and the Y coordinate setting unit 55 set X coordinate and Y coordinate, respectively, by the CPU 3 through the CPU bus 4. When the count value of the H counter 52 matches to a setting value of the X coordinate setting unit 54, the match detection unit 56 outputs a matching signal into the AND circuit 58. When the count value of the V counter 53 matches to a setting value of the Y coordinate setting unit 55, the match detection unit 57 outputs a matching signal into the AND circuit 58.
When both of outputs of the match detection units 56 and 57 are high (output the matching signals), the AND circuit 58 outputs high level signal. Then, the pixel value register 51 receives the pixel value and the selector 21 selects an inverted signal. That is, after the pixel value register 51 receives the pixel value, the pixel value is inverted.
This changes the color of the pixel in a desired position set by the CPU on the display. A user can visually check if the pixel whose pixel value is obtained is in a desired position or not by seeing the display. For example, when the image processing is performed in a specific area on the display, a pixel value of a pixel in the specific area is sometimes desired to be obtained. In such a case, for example, first, X coordinate and Y coordinate of a target pixel are appropriately set, and then the color of the pixel is changed. If the position of the target pixel is deviated from the specific area which is desired to be obtained, X coordinate and Y coordinate are changed so that the target pixel is positioned in the specific area, and then the color of the target pixel is changed again and the position is checked again. Since the target pixel is visually recognized by changing the color of the target pixel, the target pixel can be moved to the desired position by using the target pixel. Hence, the pixel value of the objective position can be obtained. Note that, when the data of the coordinate of the objective position is desired to be obtained, the setting values of the X coordinate setting unit 54 and the Y coordinate setting unit 55 are read out when the target pixel is in the objective position. Therefore, it is possible to obtain the data of coordinate of the objective position in the display.
Furthermore, in the first exemplary embodiment, the color of the pixel value is changed by inverting the most significant bit MSB of the pixel value; however, the method of changing the color (changing the pixel value) is not limited to this. For example, all bits of the pixel value may be inverted. Assume that the pixel value is ten-bit. In this case, if the signal indicates 255, the resultant signal becomes 768 by inverting all bits.
Furthermore, a predetermined value may be added to the pixel value. For example, assume that the pixel value indicates 256. In this case, if the adding value is 256, the pixel value after adding processing becomes 512. Note that, the adding values can be set and changed by the CPU 3 by instruction of a user, for example. Furthermore, a predetermined value may be subtracted from the pixel value.
Furthermore, the pixel value can be shifted to right or left. For example, if the pixel value is shifted to right by one bit, the pixel value becomes one-half; if the pixel value is shifted two bits, the pixel value becomes one-quarter. If the pixel value is shifted to left by on bit, the pixel value becomes double; if the pixel value is shifted to left by two bits, the pixel value becomes quadruple.
Furthermore, the pixel value can be replaced with another value. In this case, the CPU 3 can set or change the pixel value according to user instruction.
Next, a second exemplary embodiment will be described. In the first exemplary embodiment, the color of the target pixel whose pixel value is obtained is changed. However, in this exemplary embodiment, the color of the pixel adjacent on the right side of the target pixel will be changed.
Since the image is displayed in the raster scan, an adjacent pixel (a noticeable pixel 82) adjacent on the right side of the target pixel which is specified by X coordinate and Y coordinate is output one clock after the pixel value of a target pixel is obtained by the pixel value register 51. Therefore, an output of the AND circuit 58 which instructs the pixel value register 51 to receive the pixel value is delayed by one clock, and the delay signal can be a selecting signal of the selector 21. Therefore, in the image processing device of the present exemplary embodiment, a flip flop (DFF) 59 is provided between the AND circuit 58 and the selector 21 to delay the output of the AND circuit 58 by one clock. This DFF 59 delays a signal which allows the pixel value register 51 to receive the pixel value by one clock, and MSB of the pixel value is inverted in response to the delay signal.
The present exemplary embodiment also achieves the same effect as the first exemplary embodiment. That is, when a user sets an appropriate coordinate, the pixel value of the target pixel is obtained and the color of the noticeable pixel adjacent on the right side of the target pixel is changed. Accordingly, the user can visually recognize which position the target pixel whose pixel value is obtained is located in the display. Therefore, the pixel value of the pixel which is in the objective position on the display can be extracted as the pixel value of the target pixel by using the noticeable pixel whose color is changed.
Next, a third exemplary embodiment will be explained. In the above second exemplary embodiment, the color of the pixel adjacent on the right side of the target pixel whose pixel value is obtained is changed. However, in the third exemplary embodiment, the colors of pixels adjacent on the right side and the left side of the target pixel will be changed.
By the output of the AND circuit 58, the pixel value of the noticeable pixel 83 is changed; by the output of the DFF 59, the pixel value of the target pixel 80 is received by the pixel value register 51; by the output of the DFF 60, the pixel value of the noticeable pixel 82 is changed.
According to the third exemplary embodiment, the colors of the pixels adjacent on the right and the left sides of the target pixel 80 are changed. Hence, it is easier to visually recognize the noticeable pixels and the pixel position of the target pixel can be check more quickly.
Next, a fourth exemplary embodiment will be explained. In the above third exemplary embodiment, the colors of the pixels adjacent on the right side and the left side of the target pixel are changed. In the fourth exemplary embodiment, the colors of four adjacent pixels adjacent to the right side, the left side, the upper side, and the lower side of the target pixel will be changed.
In the fourth exemplary embodiment, the colors of the pixels of the right side, the left side, the upper side, and the lower side of the target pixel 80 are changed. Accordingly, it is easier to visually recognize the target pixel, and it is possible to check the pixel position of the target pixel more quickly.
While the invention has been described in terms of several exemplary embodiments, those skilled in the art will recognize that the invention can be practiced with various modifications within the spirit and scope of the appended claims and the invention is not limited to the examples described above.
Further, the scope of the claims is not limited by the exemplary embodiments described above.
Furthermore, it is noted that, Applicant's intent is to encompass equivalents of all claim elements, even if amended later during prosecution.
Further, the first to fourth exemplary embodiments can be combined as desirable by one of ordinary skill in the art.
Furthermore, for example, in the above exemplary embodiments, the data receiving device is explained as hardware. However, arbitrary processing may be achieved by executing a program by CPU (Central Processing Unit). The program can be stored and provided to a computer using any type of non-transitory computer readable media. Non-transitory computer readable media include any type of tangible storage media. Examples of non-transitory computer readable media include magnetic storage media (such as floppy disks, magnetic tapes, hard disk drives, etc.), optical magnetic storage media (e.g. magneto-optical disks), CD-ROM (compact disc read only memory), CD-R (compact disc recordable), CD-R/W (compact disc rewritable), and semiconductor memories (such as mask ROM, PROM (programmable ROM), EPROM (erasable PROM), flash ROM, RAM (random access memory), etc.). The program may be provided to a computer using any type of transitory computer readable media. Examples of transitory computer readable media include electric signals, optical signals, and electromagnetic waves. Transitory computer readable media can provide the program to a computer via a wired communication line (e.g. electric wires, and optical fibers) or a wireless communication line.
Furthermore, in the above second to fourth exemplary embodiments, a part of pixels among the adjacent pixels 81 adjacent to the target pixel 80 is assumed to be noticeable pixels. However, pixel values of all adjacent pixels may be changed. Further, the pixel value of any pixel which surrounds the target pixel and can specify the target pixel may be changed.
Number | Date | Country | Kind |
---|---|---|---|
2009-186059 | Aug 2009 | JP | national |