Method of and apparatus for correcting contour of grayscale image
A grayscale image with corrected contours, which is suitably applicable to the art of recognition of objects, is obtained using a grayscale image and a distance image of a subject. The contour of the grayscale image where a grayscale contour image extracted from the grayscale image and a distance contour image extracted from the distance image agree with each other in contour, is corrected to generate the grayscale image with corrected contours. It is possible to highlight or emphasize the boundary of the subject, and a contour correcting process, which is different from the ordinary contour correcting process, can be carried out on a boundary of the subject.
Latest Fujifilm Corporation Patents:
- MANUFACTURING METHOD OF PRINTED CIRCUIT BOARD
- OPTICAL LAMINATE, OPTICAL LENS, VIRTUAL REALITY DISPLAY APPARATUS, OPTICALLY ANISOTROPIC FILM, MOLDED BODY, REFLECTIVE CIRCULAR POLARIZER, NON-PLANAR REFLECTIVE CIRCULAR POLARIZER, LAMINATED OPTICAL BODY, AND COMPOSITE LENS
- SEMICONDUCTOR FILM, PHOTODETECTION ELEMENT, IMAGE SENSOR, AND MANUFACTURING METHOD FOR SEMICONDUCTOR QUANTUM DOT
- SEMICONDUCTOR FILM, PHOTODETECTION ELEMENT, IMAGE SENSOR, DISPERSION LIQUID, AND MANUFACTURING METHOD FOR SEMICONDUCTOR FILM
- MEDICAL IMAGE PROCESSING APPARATUS AND ENDOSCOPE APPARATUS
1. Field of the Invention
The present invention relates to a method of and an apparatus for correcting the contour of a grayscale image, and more particularly to a method of and an apparatus for correcting the contour of a grayscale image of a subject which is generated by an image capturing device, based on the information of a distance image of the subject.
2. Description of the Related Art
Heretofore, there has generally been known a grayscale image, whose gradation values are represented by pixel values, generated when a subject is imaged by an image capturing device such as a digital camera, a video camera, or the like.
Distance image capturing apparatus have been proposed in recent years for capturing an image of an object space with an image capturing device and generating a distance image whose pixel value is represented by a distance value from the image capturing device to an object (subject) that is present in the object space (see Japanese Laid-Open Patent Publication No. 2006-153773 and Japanese Laid-Open Patent Publication No. 2006-046959).
A grayscale image correcting process has experimentally been carried out by obtaining a grayscale image and a distance image of a subject with an image capturing device and clipping and generating a grayscale image that exists in 2 m from the image capturing device based on the information of the distance image.
The process of correcting (processing) a grayscale image based on the information of a distance image is expected to be applied to a highly advanced security camera, a next-generation entering and leaving system sensor, a robot vision sensor, various FA sensors, etc.
A technology for extracting the contour of a distance image is disclosed in Japanese Laid-Open Patent Publication No. 2006-153773 referred to above. According to the disclosed technology, a moving body as an object and a background thereof are imaged a plurality of times to produce a distance image. In view of an overshooting caused around the distance image of the object, the distance image with the overshooting is smoothed, and a differential image between the smoothed distance image and the distance image with the overshooting is extracted as a contour.
Japanese Laid-Open Patent Publication No. 2006-046959 referred to above discloses an image capturing device comprising a light emission source for irradiating an object space with intensity-modulated light whose intensity changes periodically, a photodetector for capturing an image of the object space, the photodetector including an array of photosensitive elements for generating electric output signals depending on respective detected amounts of light, and an image generator for generating, from the detected amounts of light from the photosensitive elements, a distance image whose pixel values are represented by distance values by converting the phase difference of intensity-modulated light generated when the light radiated from the light emission source into the object space is reflected by an object in the object space and detected by the photosensitive elements, into a distance up to the object, and a grayscale image whose pixel values are represented by grayscale levels which represent the detected amounts of light from the photosensitive elements. The publication also discloses that a contour extractor extracts both a region in a differentiated grayscale image where the grayscale differential value is of a local maximum and a region in a differentiated distance image where the distance differential value is of a local maximum, as a contour of the object.
SUMMARY OF THE INVENTIONIt is an object of the present invention to provide a method of and an apparatus for suitably correcting the contour of a grayscale image of a subject which is generated by an image capturing device, based on the information of a distance image of the subject.
According to the present invention, there is provided a method of correcting the contour of a grayscale image based on an image processing process carried out by a computer, comprising the steps of generating both a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject, determining whether or not there is a contour in regions on the distance contour image whose coordinate positions correspond to those of regions which include a portion of the contour of the grayscale contour image, and correcting the contour of the grayscale image if it is judged that there is the contour.
In the above method, the contour of the grayscale image where the grayscale contour image and the distance contour image agree on the contour with each other is corrected. It is possible to highlight or emphasize a boundary of the subject. A contour correcting process, which is different from the ordinary contour correcting process, can be carried out on the boundary of the subject. The contour correcting method according to the present invention is thus effectively applicable to the art of recognition of objects, for example.
According to the present invention, there is also provided a method of correcting the contour of a grayscale image based on an image processing process carried out by a computer, comprising the steps of capturing a distance image whose pixels include distance values and a grayscale image whose pixels include gradation values, from a subject, generating a grayscale contour image representing a contour extracted from the grayscale image, calculating differential values or distance value differences of regions on the distance image whose coordinate positions correspond to those of regions which include a portion of the contour of the grayscale contour image, and correcting the contour of the grayscale image depending on the calculated differential values or the calculated distance value differences of the regions on the distance image.
In the above method, the contour of the grayscale image is corrected depending on the differential values or the distance values of the regions on the distance image. Accordingly, appropriate information can be added to object boundaries, for example, and continuous information can be given. The contour correcting method according to the present invention is thus effectively applicable to the art of recognition of objects, for example.
The step of calculating the differential values or the distance value differences on the distance image comprises the step of calculating differential values or gradation value differences of regions on the grayscale image whose coordinate positions correspond to those of the regions which include a portion of the contour of the grayscale contour image; and the step of correcting the contour of the grayscale image comprises the step of correcting the contour of the grayscale image based on the calculated differential values or the calculated distance value differences of the regions on the distance image, and the calculated differential values or the calculated gradation value differences of the regions on the grayscale image.
The contour of the grayscale image is corrected based on the grayscale image differential values or the gradation value differences which have been calculated on the grayscale image and the distance image differential values or the distance value differences which have been calculated on the distance image. Consequently, boundary information of the object can be added in a natural fashion to the contour of the grayscale image. Since the information of the grayscale image remains unremoved, a natural three-dimensional effect of the grayscale image is achieved.
The regions used for correcting the contour of the grayscale image may be a single region on the distance contour image and a single region on the grayscale contour image.
The step of correcting the contour of the grayscale image comprises the step of changing the gradation value or color of pixels making up the contour.
The contour of the grayscale image can be corrected depending on the application of the present invention.
The above methods may be available as a program which can be read and executed by a computer.
In addition, the above methods may be available as a recording medium storing such a program.
Moreover, the above methods may be available as an apparatus executing the steps of the methods.
That is, according to the present invention, there is provided an apparatus for correcting the contour of a grayscale image, comprising a contour image generator for generating a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject, a contour existence/nonexistence determining unit for determining whether or not there is a contour in regions on the distance contour image whose coordinate positions correspond to those of regions which include a portion of the contour of the grayscale contour image, and a contour corrector for correcting the contour of the grayscale image if it is judged that there is the contour.
The apparatus of the present invention makes it possible to suitably correct the contour of the grayscale image of a subject captured by an image capturing device based on the contour information of the distance image of the subject.
According to the present invention, there is also provided an apparatus for correcting the contour of a grayscale image, comprising an image reader for capturing a distance image whose pixels include distance values and a grayscale image whose pixels include gradation values, from a subject, a grayscale contour image generator for generating a grayscale contour image representing a contour extracted from the grayscale image, a distance image differential value/distance value difference calculator for calculating differential values or distance value differences of regions on the distance image whose coordinate positions correspond to those of regions which include portions of the contour of the grayscale contour image, and a contour corrector for correcting the contour of the grayscale image depending on the calculated differential values or the calculated distance value differences of the regions on the distance image.
The apparatus further comprises a grayscale image differential value/gradation value difference calculator for calculating differential values or gradation value differences of regions of the grayscale image whose coordinate positions correspond to those of the regions which include a portion of the contour of the grayscale contour image, and the contour corrector corrects the contour of the grayscale image based on the calculated differential values or the calculated distance value differences of the regions on the distance image, and the calculated differential values or the calculated gradation value differences of the regions on the grayscale image.
The above and other objects, features, and advantages of the present invention will become more apparent from the following description when taken in conjunction with the accompanying drawings in which preferred embodiments of the present invention are shown by way of illustrative example.
Preferred embodiments of the present invention will be described below with reference to the drawings.
As shown in
The image generator/processor 15 comprises a microcomputer, for example. The microcomputer comprises a CPU (Central Processing Unit), memories including a ROM (Read Only Memory) which may be an EEPROM and a RAM (Random Access Memory), input/output units including an A/D converter, a D/A converter, etc., and a timer as a timing means. When the CPU reads programs stored in the ROM and executes the programs, the CPU performs the functions of the controller/processor 20, the image processor 18, a distance calculator 44, an image reader/timing generator 40 (see
As shown in
The image generator/processor 15 includes, in addition to the controller/processor 20, the image reader/timing generator 40 which has a CDS (Correlated Double Sampling) circuit and an A/D converter, a frame memory 42 for storing two image frames at a time, and the distance calculator 44 having a timing control and time measuring function and controllable in synchronism with the image reader/timing generator 40. The controller/processor 20 functions as a camera controller and a memory controller in addition to the image processor 18.
The distance image/grayscale image capturing system 10 shown in
When the distance image/grayscale image capturing system 10 shown in
As shown in
The image processor 18 includes a contour image generator 50 which comprises a distance contour image generator 52 for generating and outputting a distance contour image representative of the contour of the distance image read from the distance image generator 46, and a grayscale contour image generator 54 for generating and outputting a grayscale contour image representative of the contour of the grayscale image read from the grayscale image generator 48.
The image processor 18 also includes a contour existence/nonexistence determining unit 56 for performing a process, to be described later, based on the distance contour image and the grayscale contour image which are generated by the contour image generator 50, a distance image differential value calculator 58a for calculating a differential value of the distance image by referring to the grayscale contour image generated by the grayscale contour image generator 54, a distance image differential value calculator 58a for calculating a differential value of the distance image and a distance image distance value difference calculator 58b for calculating a distance value difference of the distance image by referring to the grayscale contour image generated by the grayscale contour image generator 54, and a grayscale image differential value calculator 60a for calculating a differential value of the grayscale image and a grayscale image gradation value difference calculator 60b for calculating a gradation value difference of the grayscale image by referring to the grayscale contour image generated by the grayscale contour image generator 54.
The distance image differential value calculator 58a and the distance image distance value difference calculator 58b jointly make up a distance image differential value/distance value difference calculator 58. The grayscale image differential value calculator 60a and the grayscale image gradation value difference calculator 60b jointly make up a grayscale image differential value/gradation value difference calculator 60.
The image processor 18 further includes a contour corrector 62 for correcting the contour of the grayscale image read from the grayscale image generator 48 based on processed results from the contour existence/nonexistence determining unit 56, the distance image differential value/distance value difference calculator 58, and the grayscale image differential value/gradation value difference calculator 60.
The distance image/grayscale image capturing system 10 is basically constructed as described above. Operation of the image processor 18 will be described below with reference to a flowchart. The CPU of the image processor 18 reads a program representing the flowchart, and executes the read program.
First exemplary embodiment (a process of determining whether a contour correcting process is to be carried out or not based on whether there is a contour of a distance image or not):
In step S1 shown in
The grayscale image refers to an image generally produced by an image capturing unit such as a digital camera or the like and including a color image, a black-and-white image, a luminance image, etc. The pixel values of the grayscale image have respective gradation values. The distance image refers to an image representing a two-dimensional distribution of distances produced by a distance measuring method such as a TOF method. The pixels of the distance image have respective distance values.
As shown
In step S2, the grayscale contour image generator 54 extracts a contour from the grayscale image 100 and generates a grayscale contour image 104 shown in
In step S2, the distance contour image generator 52 extracts a contour from the distance image 102 and generates a distance contour image 106 shown in
In step S3, the contour existence/nonexistence determining unit 56 determines whether or not there is a contour in regions 110a, 110b on the distance contour image 106 whose coordinate positions correspond to those of contour-containing regions (hereinafter referred to as “contour regions”) 108a, 108b which contain portions of the contour of the grayscale contour image 104. As can be seen from
Depending on the determined result of step S3, the contour corrector 62 performs a contour correcting process on the grayscale image 100.
Specifically, with respect to the region 110b on the distance contour image 106 which corresponds to the contour region 108b on the grayscale contour image 104, since there is a contour in the region 110b, the answer to step S3 is affirmative, and the contour corrector 62 performs a process of emphasizing the contour of the grayscale image 100 (hereinafter referred to as “process A”). With respect to the region 110a on the distance contour image 106 which corresponds to the contour region 108a on the grayscale contour image 104, since there is no contour in the region 110a, the answer to step S3 is negative, and the contour corrector 62 performs a process of not correcting the contour of the grayscale image 100 (hereinafter referred to as “process B”).
When there is a contour in the region 110b on the distance contour image 106 which corresponds to the contour region 108b on the grayscale contour image 104, the rectangular contour 114 may be drawn in another color as indicated by a grayscale image 100B corrected according to the process A, as shown in
According to the first exemplary embodiment, as described above, the contour correcting process is performed on the contour 114 (see
Second exemplary embodiment (a process of expressing the degree (extent) of a contour correcting process by using a function of differential values of distance value differences of a distance image):
In step S11, as with step S1 shown in
In step S12, the grayscale contour image generator 54 extracts a contour from the grayscale image 214.
In step S13, the distance image differential value calculator 58a calculates differential values di (di=distance value difference/positional difference=Δd/Δp, e.g., the distance value difference Δd represents the difference between the distance values of adjacent pixels, and the positional difference Δp represents the difference between the pixel position coordinate values of adjacent pixels) of regions on the distance image 218 whose coordinate positions correspond to those of contour regions 226a, 226b, 226c, 226d, etc. which contain portions of the contours of the grayscale contour image 216. The positional difference Δp represents a small value which can freely be selected.
In
Then, distance image differential value calculator 58a calculates distance image differential values di in the regions on the distance image 218 whose coordinate positions correspond to all the contour regions (the contour-containing region) of the grayscale contour image 216.
In step S14, the contour corrector 62 performs a contour correcting process on the grayscale image 214 (see
The contour corrector 62 may perform any one of the following two contour correcting processes, for example.
According to one of the two contour correcting processes, a result is selected depending on the calculated distance image differential value di. For example, a hue selection table for selecting hues A through D depending on the distance image differential value di as shown in
According to the other contour correcting process, the calculated distance image differential value di is put into a function formula, and the result of the calculated function formula is reflected in the grayscale image 214.
Contour of processed grayscale image=contour of grayscale image to be processed+constant×distance image differential value
In the corrected grayscale image 214B shown in
Hue of contour of processed grayscale image=constant×distance image differential value
A contour with a large distance image differential value di (an outermost contour) is colored in red, a contour with a small distance image differential value di (the boundary between the large and small rectangular shapes) is colored in yellow, and a contour (star-shaped) where the distance image differential value di is nil remains in the original color.
This process is capable of presenting information representing a smoothly emphasized boundary to the user. The function equations that can be used are not limited to the above two equations.
In the above example, the contours are corrected depending on the distance image differential value di. However, the contours can similarly be corrected by having the distance image distance value difference calculator 58b calculate distance value differences Δd between regions on the distance image 218 whose coordinate positions correspond to those of contour regions (contour-containing regions) 226a, 226b, 226c, 226d, etc. which contain portions of the contours of the grayscale contour image 216.
According to the second exemplary embodiment, as described above, the distance image differential values di representing differentials of contours in the regions (regions at the same positions as the regions 230a through 230d on the distance differential image 232) on the distance image 218 whose coordinate positions correspond to those of the contour regions (regions containing portions of the contours) 226a through 226d on the grayscale contour image 216, or distance value differences Δd between pixels making up the contours in the regions on the distance image 218, are calculated, and the contours of the grayscale image 214 are corrected depending on the calculated distance image differential values di or distance value differences Δd. Accordingly, appropriate information can be added to object boundaries, for example, and continuous information can be given. The contour correcting process according to the present exemplary embodiment is effectively applicable to the art of recognition of objects, for example.
Third exemplary embodiment (a process of expressing the degree (extent) of a contour correcting process by using a function of differential values of distance and grayscale images or differences therebetween (distance value differences or gradation value differences):
Steps S21, S22, S24 are identical to the above-mentioned steps S11, S12, S13, respectively.
In step S23, the grayscale image differential value calculator 60a calculates grayscale image differential values dj (dj=gradation value difference/positional difference=Δg/Δp, e.g., the gradation value difference Δg represents the difference between the gradation values of adjacent ones of the pixels of the grayscale image 214, and the positional difference Δp represents the difference between the pixel positions of adjacent pixels) of regions on the grayscale image 214 which correspond to the contour regions 226a through 226d, etc. which contain portions of the contours of the grayscale contour image 216 shown in
In step S25, contour corrector 62 performs a contour correcting process on the contours of the grayscale image 214 using the grayscale image differential values dj of the grayscale image 214 and the distance image differential values di of the distance image 218, which are calculated respectively in steps S23, S24.
The contour corrector 62 may perform any one of the following two contour correcting processes, for example.
According to one of the two contour correcting processes, a result is selected depending on the calculated values. This contour correcting process is illustrated in
According to the other contour correcting process, the calculated results are put into a function formula, and the result of the calculated function formula is reflected in the grayscale image 214. Function formulas according to the following examples 1, 2 may be used.
EXAMPLE 1
Contour of processed grayscale image=contour of grayscale image to be processed+constant×(constant×distance image differential value×grayscale image differential value)1/2
Contour of processed grayscale image=contour of grayscale image to be processed+constant×(constant×distance image differential value×grayscale image differential value)/2
According to the function formulas of the examples 1, 2, the contours of the grayscale image 214 are processed by differential values (see
According to the third exemplary embodiment, the contour correcting process is capable of correcting the contours so as to make them look like actually viewed contours while the boundary of the grayscale image 214 is more emphasized than with the second exemplary embodiment.
While the contour correcting process is carried out based on both the differential values dj, di of the grayscale image 214 and the distance image 218 in the above description of the third exemplary embodiment, the contour correcting process may be carried out based on the differences (gradation value differences and distance value differences) between the grayscale image 214 and the distance image 218, or may be carried out based on the differences (gradation value differences or distance value differences) and the differential values (grayscale image differential values dj or the distance image differential values di).
In this case, the grayscale image gradation value difference calculator 60b calculates gradation value differences Δg (e.g., the difference between the gradation values of adjacent pixels) between regions on the grayscale image 214 which correspond to the contour regions (contour-containing regions) 226a, 226b, 226c, 226d, etc. which contain portions of the contours of the grayscale contour image 216 shown
According to the third exemplary embodiment, as described above, the distance image 218 whose pixels include distance values and the grayscale image 214 whose pixels include gradation values are captured from the same subject 12a, and the grayscale contour image 216 representing the contours extracted from the grayscale image 214 is generated. Then, the grayscale image differential values dj or the gradation value differences Δg in the regions (the contour regions 226a through 226d) including portions of the contours of the grayscale image 214 are calculated, and the distance image differential values di or the distance value differences Δd in the regions on the distance image 218 which correspond to the regions including portions of the contours of the grayscale contour image 216 are calculated. The contours of the grayscale image 214 are corrected based on the grayscale image differential values dj or the gradation value differences Δg which have been calculated on the grayscale image 214 and the distance image differential values di or the distance value differences Δd which have been calculated on the distance image 218. Consequently, boundary information of the subject 12a can be added in a natural fashion to the contours of the grayscale image 214. Since the information of the grayscale image 214 remains unremoved, a natural three-dimensional effect of the grayscale image 214 is achieved. The subject referred to above covers a group of subjects. For example, in
According to the first through third exemplary embodiments, the contours of the grayscale images 100, 214 can be corrected depending on the application of the present invention.
The operation sequences shown in the above flowcharts may be available as a program which can be read and executed by a computer.
In addition, the operation sequences may be available as a recording medium storing such program.
Although certain preferred embodiments of the present invention have been shown and described in detail, it should be understood that various changes and modifications may be made therein without departing from the scope of the appended claims.
Claims
1. A method of correcting a contour of a grayscale image based on an image processing process carried out by a computer, said method comprising:
- generating a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject;
- determining whether there is a contour in a region on said distance contour image whose coordinate position corresponds to that of a region which includes a portion of the contour of said grayscale contour image; and
- correcting the contour of said grayscale image if it is judged that there is said contour in said region,
- wherein said correcting the contour of said grayscale image corrects the contour of said grayscale image by placing a calculated distance image differential value into a function formula, and applying a result of the function formula to the grayscale image, and
- wherein said function formula is expressed as: contour of processed grayscale image=contour of grayscale image to be processed+constant×(constant×distance image differential value×grayscale image differential value)1/2.
2. A method according to claim 1, wherein said correcting the contour of said grayscale image comprises using the contour of said grayscale contour image.
3. A method according to claim 1, further comprising:
- calculating a differential value of the distance image by referring to the grayscale contour image; and
- calculating a distance value difference of the distance image by referring to the grayscale contour image.
4. A method according to claim 3, wherein said correcting the contour of said grayscale image comprises using the differential value of the distance image and the distance value difference of the distance image to correct the contour of said grayscale image.
5. A method according to claim 4, further comprising:
- calculating a differential value of the grayscale image; and
- calculating a gradation value difference of the grayscale image by referring to the grayscale contour image.
6. A method according to claim 5, wherein said correcting the contour of said grayscale image further comprises using the differential value of the grayscale image and the gradation value difference of the grayscale image to correct the contour of said grayscale image.
7. A method according to claim 1, wherein said determining whether there is the contour in said region comprises using the distance contour image and the grayscale contour image.
8. An apparatus for correcting a contour of a grayscale image, said apparatus comprising:
- a contour image generator for generating a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject;
- a contour existence/nonexistence determining unit for determining whether there is a contour in a region on said distance contour image whose coordinate position corresponds to that of a region which includes a portion of the contour of said grayscale contour image; and
- a contour corrector for correcting the contour of said grayscale image if it is judged that there is said contour in said region,
- wherein said contour corrector corrects the contour of said grayscale image by placing a calculated distance image differential value into a function formula, and applying a result of the function formula to the grayscale image, and
- wherein said function formula is expressed as: contour of processed grayscale image=contour of grayscale image to be processed+constant×(constant×distance image differential value ×grayscale image differential value)1/2.
9. A method of correcting a contour of a grayscale image based on an image processing process carried out by a computer, said method comprising:
- generating a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject;
- determining whether there is a contour in a region on said distance contour image whose coordinate position corresponds to that of a region which includes a portion of the contour of said grayscale contour image; and
- correcting the contour of said grayscale image if it is judged that there is said contour in said region,
- wherein said correcting the contour of said grayscale image corrects the contour of said grayscale image by placing a calculated distance image differential value into a function formula, and applying a result of the function formula to the grayscale image, and
- wherein said function formula is expressed as: contour of processed grayscale image=contour of grayscale image to be processed+constant×(constant×distance image differential value×grayscale image differential value)/2.
10. A method according to claim 9, wherein said correcting the contour of said grayscale image comprises using the contour of said grayscale contour image.
11. A method according to claim 9, further comprising:
- calculating a differential value of the distance image by referring to the grayscale contour image; and
- calculating a distance value difference of the distance image by referring to the grayscale contour image.
12. A method according to claim 11, wherein said correcting the contour of said grayscale image comprises using the differential value of the distance image and the distance value difference of the distance image to correct the contour of said grayscale image.
13. A method according to claim 12, further comprising:
- calculating a differential value of the grayscale image; and
- calculating a gradation value difference of the grayscale image by referring to the grayscale contour image.
14. A method according to claim 13, wherein said correcting the contour of said grayscale image further comprises using the differential value of the grayscale image and the gradation value difference of the grayscale image to correct the contour of said grayscale image.
15. A method according to claim 9, wherein said determining whether there is the contour in said region comprises using the distance contour image and the grayscale contour image.
16. An apparatus for correcting a contour of a grayscale image, said apparatus comprising:
- a contour image generator for generating a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject;
- a contour existence/nonexistence determining unit for determining whether there is a contour in a region on said distance contour image whose coordinate position corresponds to that of a region which includes a portion of the contour of said grayscale contour image; and
- a contour corrector for correcting the contour of said grayscale image if it is judged that there is said contour in said region,
- wherein said contour corrector corrects the contour of said grayscale image by placing a calculated distance image differential value into a function formula, and applying a result of the function formula to the grayscale image, and
- wherein said function formula is expressed as: contour of processed grayscale image=contour of grayscale image to be processed+constant×(constant×distance image differential value×grayscale image differential value)/2.
17. A method of correcting a contour of a grayscale image based on an image processing process carried out by a computer, said method comprising:
- generating a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject;
- determining whether there is a contour in a region on said distance contour image whose coordinate position corresponds to that of a region which includes a portion of the contour of said grayscale contour image; and
- correcting the contour of said grayscale image if it is judged that there is said contour in said region,
- wherein said correcting the contour of said grayscale image corrects the contour of said grayscale image by placing a calculated distance image differential value into a function formula, and applying a result of the function formula to the grayscale image, and
- said function formula is expressed as: contour of processed grayscale image=contour of grayscale image to be processed+constant×distance image differential value.
18. A method according to claim 17, wherein said correcting the contour of said grayscale image comprises using the contour of said grayscale contour image.
19. A method according to claim 17, further comprising:
- calculating a differential value of the distance image by referring to the grayscale contour image; and
- calculating a distance value difference of the distance image by referring to the grayscale contour image.
20. A method according to claim 19, wherein said correcting the contour of said grayscale image comprises using the differential value of the distance image and the distance value difference of the distance image to correct the contour of said grayscale image.
21. A method according to claim 20, further comprising:
- calculating a differential value of the grayscale image; and
- calculating a gradation value difference of the grayscale image by referring to the grayscale contour image.
22. A method according to claim 21, wherein said correcting the contour of said grayscale image further comprises using the differential value of the grayscale image and the gradation value difference of the grayscale image to correct the contour of said grayscale image.
23. A method according to claim 17, wherein said determining whether there is the contour in said region comprises using the distance contour image and the grayscale contour image.
24. An apparatus for correcting a contour of a grayscale image, said apparatus comprising:
- a contour image generator for generating a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject;
- a contour existence/nonexistence determining unit for determining whether there is a contour in a region on said distance contour image whose coordinate position corresponds to that of a region which includes a portion of the contour of said grayscale contour image; and
- a contour corrector for correcting the contour of said grayscale image if it is judged that there is said contour in said region,
- wherein said contour corrector corrects the contour of said grayscale image by placing a calculated distance image differential value into a function formula, and applying a result of the function formula to the grayscale image, and
- wherein said function formula is expressed as: contour of processed grayscale image=contour of grayscale image to be processed+constant×distance image differential value.
25. A method of correcting a contour of a grayscale image based on an image processing process carried out by a computer, said method comprising:
- generating a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject;
- determining whether there is a contour in a region on said distance contour image whose coordinate position corresponds to that of a region which includes a portion of the contour of said grayscale contour image; and
- correcting the contour of said grayscale image if it is judged that there is said contour in said region,
- wherein said correcting the contour of said grayscale image corrects the contour of said grayscale image by placing a calculated distance image differential value into a function formula, and applying a result of the function formula to the grayscale image, and
- wherein a hue of contour of a processed grayscale image is changed depending on a function formula expressed as: hue of contour of processed grayscale image=constant×distance image differential value.
26. A method according to claim 25, wherein said correcting the contour of said grayscale image comprises using the contour of said grayscale contour image.
27. A method according to claim 25, further comprising:
- calculating a differential value of the distance image by referring to the grayscale contour image; and
- calculating a distance value difference of the distance image by referring to the grayscale contour image.
28. A method according to claim 27, wherein said correcting the contour of said grayscale image comprises using the differential value of the distance image and the distance value difference of the distance image to correct the contour of said grayscale image.
29. A method according to claim 28, further comprising:
- calculating a differential value of the grayscale image; and
- calculating a gradation value difference of the grayscale image by referring to the grayscale contour image.
30. A method according to claim 29, wherein said correcting the contour of said grayscale image further comprises using the differential value of the grayscale image and the gradation value difference of the grayscale image to correct the contour of said grayscale image.
31. A method according to claim 25, wherein said determining whether there is the contour in said region comprises using the distance contour image and the grayscale contour image.
32. An apparatus for correcting a contour of a grayscale image, said apparatus comprising:
- a contour image generator for generating a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject;
- a contour existence/nonexistence determining unit for determining whether there is a contour in a region on said distance contour image whose coordinate position corresponds to that of a region which includes a portion of the contour of said grayscale contour image; and
- a contour corrector for correcting the contour of said grayscale image if it is judged that there is said contour in said region,
- wherein said contour corrector corrects the contour of said grayscale image by placing a calculated distance image differential value into a function formula, and applying a result of the function formula to the grayscale image, and
- wherein a hue of contour of a processed grayscale image is changed depending on a function formula expressed as: hue of contour of processed grayscale image=constant×distance image differential value.
33. A method of correcting a contour of a grayscale image based on an image processing process carried out by a computer, said method comprising:
- generating a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject;
- determining whether there is a contour in a region on said distance contour image whose coordinate position corresponds to that of a region which includes a portion of the contour of said grayscale contour image; and
- correcting the contour of said grayscale image if it is judged that there is said contour in said region,
- wherein said correcting the contour of said grayscale image corrects the contour of said grayscale image by selecting one of hues from a differential hue selection table for contours of the grayscale image depending on a distance image differential value.
34. A method according to claim 33, wherein said correcting the contour of said grayscale image comprises using the contour of said grayscale contour image.
35. A method according to claim 33, further comprising:
- calculating a differential value of the distance image by referring to the grayscale contour image; and
- calculating the distance value difference in the distance image by referring to the grayscale contour image.
36. A method according to claim 35, wherein said correcting the contour of said grayscale image comprises using the differential value of the distance image and the distance value difference of the distance image to correct the contour of said grayscale image.
37. A method according to claim 36, further comprising:
- calculating a differential value of the grayscale image; and
- calculating a gradation value difference of the grayscale image by referring to the grayscale contour image.
38. A method according to claim 37, wherein said correcting the contour of said grayscale image further comprises using the differential value of the grayscale image and the gradation value difference of the grayscale image to correct the contour of said grayscale image.
39. A method according to claim 33, wherein said determining whether there is the contour in said region comprises using the distance contour image and the grayscale contour image.
40. An apparatus for correcting a contour of a grayscale image, said apparatus comprising:
- a contour image generator for generating a distance contour image representing a contour extracted from a distance image whose pixels include distance values and a grayscale contour image representing a contour extracted from a grayscale image whose pixels include gradation values, from a subject;
- a contour existence/nonexistence determining unit for determining whether there is a contour in a region on said distance contour image whose coordinate position corresponds to that of a region which includes a portion of the contour of said grayscale contour image; and
- a contour corrector for correcting the contour of said grayscale image if it is judged that there is said contour in said region,
- wherein said contour corrector corrects the contour of said grayscale image by selecting one of hues from a differential hue selection table for contours of the grayscale image depending on a distance image differential value.
20040190752 | September 30, 2004 | Higaki et al. |
2006-46959 | February 2006 | JP |
2006-153773 | June 2006 | JP |
Type: Grant
Filed: Feb 25, 2008
Date of Patent: Jun 12, 2012
Patent Publication Number: 20080204579
Assignee: Fujifilm Corporation (Tokyo)
Inventor: Tomonori Masuda (Tokyo)
Primary Examiner: Jason Chan
Assistant Examiner: Joel Fosselman
Attorney: McGinn IP Law Group, PLLC
Application Number: 12/071,651
International Classification: H04N 5/202 (20060101); H04N 5/225 (20060101); H04N 5/232 (20060101); H04N 5/208 (20060101);