IMAGE PROCESSING APPARATUS, METHOD OF PROCESSING IMAGE, AND COMPUTER-READABLE RECORDING MEDIUM
This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2010-155176, filed on Jul. 7, 2010, the entire contents of which are incorporated herein by reference. 1. Field of the Invention The present invention relates to an image processing apparatus, a method of processing an image, and a computer-readable recording medium for detecting an abnormal area from an intraluminal image acquired by imaging the inside of a lumen. 2. Description of the Related Art Conventionally, endoscopes are widely used as one type of medical observation device that is introduced inside a body of an examinee such as a patient so as to observe the inside of a lumen in the body. In addition, recently, an eating-type endoscope (capsule endoscope) is developed which has an imaging device and a communication device that transmits image data imaged by the imaging device outside the body in a wireless manner and the like within a capsule-type casing. Since observation and diagnosis using an image of the inside of the lumen (intraluminal image) that is imaged by such a medical observation device require an abundance of experience, a medical diagnosis supporting function that supports the diagnosis of a doctor is demanded. As one of image recognition technologies realizing such a function, there is suggested a technology for displaying an image to be focused for diagnosis by automatically detecting an abnormal area (lesion area) such as a bleeding site from the intraluminal image. For example, in Japanese Laid-open Patent Publication No. 2005-192880, technology is disclosed in which clustering is performed by mapping pixel values of pixels positioned inside an image or an averaged pixel value into a feature space that is based on color information, and data of which a Euclid distance from the cluster of a normal mucous membrane area is a predetermined value or more is detected as an abnormal area. An image processing apparatus according to an aspect of the present invention includes a reference surface generating unit that generates a reference surface indicating a reference value of each of a plurality of color elements of pixels constituting an intraluminal image at a pixel position of the each color element by performing a morphology process using pixel values of the color elements; and an abnormal area detecting unit that detects an abnormal area from the intraluminal image based on a difference for each of the color elements between the pixel value of each pixel and the reference surface. A method of processing an image for detecting an abnormal area from an intraluminal image according to another aspect of the present invention includes generating a reference surface indicating a reference value of each of a plurality of color elements of pixels constituting an intraluminal image at a pixel position of the each color element by performing a morphology process using pixel values of the color elements; and detecting an abnormal area from the intraluminal image based on a difference for each of the color elements between of the pixel value of each pixel and the reference surface. An image processing program for detecting an abnormal area from an intraluminal image according to the present invention causes a computer to perform generating a reference surface indicating a reference value of each of a plurality of color elements of pixels constituting an intraluminal image at a pixel position of the each color element by performing a morphology process using pixel values of the color elements; and detecting an abnormal area from the intraluminal image based on a difference for each of the color elements between of the pixel value of each pixel and the reference surface. The above and other features, advantages and technical and industrial significance of this invention will be better understood by reading the following detailed description of presently preferred embodiments of the invention, when considered in connection with the accompanying drawings. Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. However, the present invention is not limited thereto. Like reference numerals in the drawings denote like elements. Here, an image processing apparatus according to an embodiment detects an abnormal area such as a bleeding site by processing an image (intraluminal image) that is acquired by imaging the inside of a lumen such as a gastrointestinal tract inside the body of an examinee by using a medical observation device, for example, an endoscope, a capsule endoscope, or the like. In addition, in this embodiment, the intraluminal image that is imaged by the medical observation device, for example, is a color image having pixel levels (pixel values) for the color components R (red), G (green), and B (blue) for each pixel. Hereinafter, in this embodiment, three values of R, G, and B values as the pixel values of each pixel are used as pixel values of a plurality of color elements. First, the configuration of an image processing apparatus according to a first embodiment will be described. The image acquiring unit 11 is used for acquiring image data of an intraluminal image that is imaged by a medical observation device, and the image data acquired by the image acquiring unit 11 is recorded in the recording unit 14, is processed by the calculation unit 15, and then, is displayed on the display unit 13 as is necessary. In a case where a portable recording medium is used for transmitting and receiving the image data to and from the medical observation device, for example, like a case where the medical observation device is a capsule endoscope or the like, the image acquiring unit 11 is configured by a reader device to which the recording medium is detachably attached and reads out the stored image data of the intraluminal image. Further, in a case where a server storing the image data of an intraluminal image that is imaged by the medical observation device is placed at an appropriate site and the image data is acquired from the server, the image acquiring unit 11 is configured by a communication device that is used for a connection to the server and the like. Then, the image processing apparatus 1 acquires the image data of the intraluminal image by performing data communication with the server through the image acquiring unit 11. In addition, alternatively, the image acquiring unit 11 may be configured by an interface device or the like that receives an image signal output from the medical observation device such as an endoscope through a cable. The input unit 12 is realized, for example, by a keyboard, a mouse, a touch panel, or various switches and outputs an input signal to the control unit 30. The display unit 13 is realized by a display device such as an LCD or an EL display and displays various screens including the intraluminal image under the control of the control unit 30. The recording unit 14 is realized by various IC memories such as a ROM configured by a rewritable flash memory or the like and a RAM, a hard disk that is built in or is connected through a data communication terminal, an information recording medium such as a CD-ROM, a reading device thereof, and the like. By operating the image processing apparatus 1, a program used for realizing various functions included in the image processing apparatus 1, data used during execution of the program, and the like are recorded therein. For example, image data of the intraluminal image that is acquired by the image acquiring unit 11 is recorded in the recording unit 14. In addition, an image processing program 141 that is used to detect an abnormal area from the intraluminal image by realizing the process according to the first embodiment is further recorded in the recording unit 14. The calculation unit 15 is realized by hardware such as a CPU and performs various calculation processes for detecting an abnormal area by processing the intraluminal image. This calculation unit 15 includes an area dividing unit 16, a reference surface generating unit 17, and an abnormal area detecting unit 18. The area dividing unit 16 divides the intraluminal image into a plurality of areas (hereinafter, each divided area is referred to as a “divided area”) based on edge information. The reference surface generating unit 17 generates a reference surface for each color element which represents a reference value of the color element at each pixel position located inside the divided area by performing a morphology process for each divided area using the pixel values of pixels positioned inside the divided area for each of the color elements of R, G, and B values. This reference surface generating unit 17 includes a size determining unit 171 that determines the size of a reference figure called a structure element that is used in a morphology process based on the size of the divided area and the pixel values of pixels positioned inside the divided area. This size determining unit 171 includes an area-width calculating unit 172 and a curvature calculating unit 173. The area-width calculating unit 172 calculates an area width in a direction perpendicular to the principal axis of the divided area. The curvature calculating unit 173 calculates the curvature of a profile in the direction perpendicular to the principal axis of the divided area. The abnormal area detecting unit 18 detects an abnormal area for each divided area based on the pixel values of the color elements as the R, G, and B values of each pixel positioned inside the divided area and reference surfaces for each color element. This abnormal area detecting unit 18 includes a candidate pixel detecting unit 19 and an abnormal pixel determining unit 20. The candidate pixel detecting unit 19 is a functional unit that detects an abnormal candidate pixel, and includes a difference calculating unit 191 and a luminance normalizing unit 192. The difference calculating unit 191, for each color element, calculates a difference between a pixel value of the color element of each pixel positioned inside the divided area and the reference surface of the color element. The luminance normalizing unit 192 normalizes the difference for each color element that is calculated by the difference calculating unit 191 based on the luminance value of each pixel positioned inside the divided area. The abnormal pixel determining unit 20 is a functional unit that determines whether or not an abnormal candidate pixel is a pixel belonging to an abnormal area, and includes a color element normalizing unit 201 and a relative ratio determining unit 202. The color element normalizing unit 201 normalizes a difference for each color element that is calculated for an abnormal candidate pixel by the candidate pixel detecting unit 19 based on the magnitude relationship of R, G, and B values in the intraluminal image that is supposed in advance for the pixel values of each color element. The relative ratio determining unit 202 determines a relative ratio of the difference for each color element that is normalized by the color element normalizing unit 201. The control unit 30 is realized by hardware such as a CPU. This control unit 30 controls the overall operation of the image processing apparatus 1 by transmitting instructions, data, or the like to each unit of the image processing apparatus 1 based on image data acquired by the image acquiring unit 11, an input signal input from the input unit 12, a program or data recorded in the recording unit 14, and the like. Next, the detailed processing sequence performed by the image processing apparatus 1 according to the first embodiment will be described. As illustrated in When the intraluminal image as a processing target is read, subsequently, as illustrated in As the detailed processing sequence, for example, first, the edge strength of the intraluminal image as a processing target is calculated. The edge strength is calculated for each pixel by using a known edge extraction technique such as a first-order differential process using a Sobel filter or the like or a second-order differential process using Laplacian or the like. Here, hemoglobin that is a constituent element (a constituent element of blood) of an abnormal area such as a bleeding site reflected on the intraluminal image has a property of absorbing a large amount of light of a short-wavelength band. Since the hemoglobin has the property of absorbing light of a short-wavelength band, the luminance value of a G value or a B value, in which most of the wavelength component has a short wavelength band, decreases due to light absorption of the hemoglobin. On the other hand, since the R value, in which most of the wavelength component has a long wavelength band, is absorbed less and most of the light thereof is reflected, information on which the surface structure of a mucous membrane is reflected the most can be acquired from the R value. Thus, an R-value image acquired by setting the pixel value of each pixel to the R value thereof may be generated to calculate the edge strength of each pixel based on the R-value image. Thereafter, the area of the intraluminal image is divided based on the edge strength of each pixel by using a known active contour method (reference: “Digital Image Processing”, CG-ARTS Society, P196 to P200 When the area of the intraluminal image as a processing target is divided as above, subsequently, the process of a loop A is performed for each divided area (divisional area) in Steps a5 to a13. In this loop A, first, the size determining unit 171 of the reference surface generating unit 17 determines the size of the structure element used in the morphology process performed for the divided area as a processing target in the latter stage of Step a9 by performing the size determining process in Step a7. Subsequently, the curvature calculating unit 173 calculates a curvature C of the line profile in the direction perpendicular to the principal axis used for calculating the area width W in Step b5. Here, the principle of calculating the curvature C of the line profile will be described. Thereafter, the size determining unit 171 determines the size of the structure element by calculating a radius R of the structure element based on the area width W and the curvature C of the divided area, which are calculated in Steps b3 and b5, in Step b7. This process is performed, for example, by preparing a table in advance in which the radius R of the structure element is defined for each combination of the area width W and the curvature C and determining the radius R of the structure element according to the area width W and the curvature C calculated with reference to the table. The method of determining the radius R of the structure element is not limited thereto, and the radius R of the structure element may be determined based on the area width W and the curvature C of the divided area. For example, the radius R of the structure element may be determined by defining a relation equation used for determining the radius R of the structure element based on the area width W and the curvature C in advance and substituting the area width W and the curvature C, which have been calculated, in the relation equation. When the size (radius R) of the structure element is determined as above, the process is returned to Step a7 illustrated in Then, in Step a9, the reference surface generating unit 17 performs a reference surface generating process, thereby generating a reference surface for each color element by performing a known morphology process (reference: Obata Hidefumi, “Morphology”, Corona Publishing Co., Ltd.,) for a divided area as a processing target. Here, the principle of the reference surface generating process will be described together with the principle of the morphology process. As the morphology process, there are an opening process (hereinafter, referred to as a “morphology opening process”) and a closing process (hereinafter, referred to as a “morphology closing process”). The morphology opening process is a process of acquiring the locus of a maximum value of the outer periphery of a structure element F21 illustrated in Described in more detail, in the morphology opening process and the morphology closing process, there is used the structure element of the size determined for the divided area as a processing target by the size determining unit 171 through the size determining process illustrated in The three-dimensional shape of the mucous membrane face that is reflected on the intraluminal image is a convex shape as a whole. Accordingly, when the morphology opening process is performed first, in a case where a concave area due to a groove of the mucous membrane structure is present on a convex-shaped inclined face, there is a problem that the periphery thereof is smoothed as a convex area. At this time, when the morphology opening process is performed first, a convex-shaped portion located on the periphery of the concave area E31 is smoothed, and a reference surface P21 as denoted by a dashed-two dotted line in In addition, practically, the reference surface generating process is performed for each divided area. Then, a reference surface is generated for each color element by performing a morphology process by using the pixel values of each pixel positioned inside the divided area for each color element of R, G, and B values. As illustrated in Thereafter, the above-described process of loop B is performed for all the color elements, and when the process of loop B is completed, the process is returned to Step a9 illustrated in In Step a11, the abnormal area detecting unit 18 detects an abnormal area from the inner side of the divided area as a processing target by performing the abnormal area detecting process. Described in more detail, as illustrated in Subsequently, the luminance normalizing unit 192 normalizes the difference for each color element of each pixel positioned inside the divided area based on luminance information of the intraluminal image as a processing target in Step d3. The difference for each color element that is calculated in Step d1 is larger as the pixel belongs to a brighter portion. In Step d7 of the latter stage, while an abnormal candidate pixel is detected by performing threshold value processing for a difference average value of the differences for each color element, the normalization of Step d3 is a process used for appropriately performing the above-described threshold value processing without being dependent on the magnitude of the value due to the brightness of the pixel. As the detailed processing sequence, for example, the luminance value I(x,y) of each pixel of the intraluminal image as a processing target is calculated in advance, and a maximum (maximum luminance value) I_max of the calculated luminance values I(x,y) of the pixels is acquired. Then, in Step d3, normalization is performed by using the calculated luminance value I(x,y) of each pixel and the maximum luminance value I_max as the luminance information. In other words, while the pixels positioned inside the divided are sequentially set as the processing pixel, first, a ratio I_max/I(x,y) acquired by dividing the maximum luminance value I_max by the luminance value I(x,y) of the processing target is calculated. Thereafter, by multiplying the difference for each color element of the processing pixel by the calculated ratio I_max/I(x,y), the difference for each color element of the processing target is normalized. Thereafter, the candidate pixel detecting unit 19 acquires the difference average value of each pixel by calculating an average value of normalized differences for each color element for each pixel in Step d5. Then, the candidate pixel detecting unit 19 performs threshold value processing for the difference average value of each pixel positioned inside the divided area and detects a pixel of which the difference average value is a threshold value set in advance or more as an abnormal candidate pixel in Step d7. The threshold value used in this threshold value processing may be appropriately set. The threshold value may be a fixed value or, for example, may be set to be changed for each intraluminal image as a processing target. For example, the threshold value may be determined based on the magnitude of the average luminance of the intraluminal image as a processing target. Described in more detail, for example, a value acquired by multiplying the average luminance by an arbitrary coefficient may be calculated so as to be used as the threshold value. In the abnormal candidate pixels detected as above, pixels other than abnormal pixels that actually constitute abnormal areas, for example, pixels detected due to non-uniformity of the image, the unevenness of an imaging target such as a mucous membrane are included. Thus, in the following Steps d9 to d17, an abnormal area is detected by determining whether or not the detected abnormal candidate pixels are abnormal pixels. Described in more detail, the process of loop C is performed for each abnormal candidate pixel in Steps d9 to d17. In this loop C, first, the color element normalizing unit 201 normalizes each difference for each color element that is calculated for the abnormal candidate pixel as a processing target in Step d1 of the former stage based on the magnitude relationship that is supposed in advance for the pixel values of the color elements of the R, G, and B values of the intraluminal image in Step d11. In the intraluminal image, the pixel values of the color elements of the R, G, and B values have the relationship of “R value>G value>B value”, and thus there is magnitude relationship that the G value or the B value is less than the R value. Accordingly, regarding the value of the difference that is calculated for each color element, the difference of the G value or the B value is less than the difference of the R value. In Step d13 of the latter stage, while it is determined whether or not the abnormal candidate pixel as a processing target is an abnormal pixel based on the relative ratios of the differences for the color elements, the normalization process of Step d11 is a process used for appropriately performing the above-described determination without being dependent on the magnitude relationship of the color elements. As a detailed processing sequence, for example, an average value Avg-R of the R values (R average value), an average value Avg_G of the G values (G average value), and an average value Avg_B of the B values (B average value) of the pixels positioned inside the divided area (a divided area to which the abnormal candidate pixel as a processing target belongs) as a processing target are calculated in advance. Then, in Step d11, the difference for each color element of the abnormal candidate pixel as a processing target is normalized by multiplying the difference of the G value of the abnormal candidate pixel as a processing target by Avg_R/Avg_G and multiplying the difference of the B value by Avg_R/Avg_B. Here, the values used for the normalization process are not limited to the R average value Avg_R, the G average value Avg_G, and the B average value Avg_B. For example, the normalization process may be performed by multiplying the difference of the G value by R value/G value and multiplying the difference of the B value by R value/B value by using the R, G, and B values of the abnormal candidate pixel as a processing target. Subsequently, the relative ratio determining unit 202 determines the relative ratios of the normalized differences of the abnormal candidate pixel as a processing target for the color elements in Step d13. Here, an abnormal area such as a bleeding site represents strong redness, and accordingly, the abnormal area is an area in which the ratio of pixel values of the color elements of the R, G, and B values is different from each other, differently from a normal mucous membrane area. Described in more detail, the ratio of the R value to the G value and the B value is different. As illustrated in In addition, as illustrated in In Step d13 illustrated in Thereafter, when the above-described process of loop C is performed for all the abnormal candidate pixels, and the process of loop C is completed, the process is returned to Step a11 illustrated in As described above, according to the first embodiment, by performing the morphology process using pixel values of the color element, which is a processing target, of pixels positioned inside a divided area for each divided area acquired by dividing the area of the intraluminal image, the reference surface for each color element is generated. Accordingly, based on the pixel values of each color element at periphery pixels, the reference surface that represents a reference value of the color element at each pixel position can be generated for each color element. In addition, according to the first embodiment, by detecting abnormal candidate pixels based on a difference between the pixel value of each pixel positioned inside the divided area and the reference surface for each color element and determining whether or not an abnormal candidate pixel is an abnormal pixel based on the relative ratio of the difference for each color element of the abnormal candidate pixel, an abnormal area is detected. Described in more detail, an abnormal candidate pixel having different differences for each color element, for example, an abnormal candidate pixel having the difference in the G value and the difference in the B value to be greater than the difference in the R value is determined as an abnormal pixel based on the relative ratios of the differences for each color element, thereby detecting an abnormal area. Accordingly, a pixel in which the differences for each color element are approximately at the same level such as a pixel of which the pixel value changes with respect to the periphery thereof due to the structure of the mucous membrane can be prevented from being determined as an abnormal pixel. Therefore, an abnormal area can be detected from the intraluminal image with high accuracy. First, the configuration of an image processing apparatus according to a second embodiment will be described. In the recording unit 14 In addition, the calculation unit 15 Next, the processing sequence performed by the image processing apparatus 1 As illustrated in Subsequently, in the similar sequence, a filtering process is performed in which a vertical Sobel filter is applied to each element of the L*a*b*, thereby calculating the vertical color edge strength ΔEcol. Then, the color edge strength ΔE of each pixel positioned inside the divided area is calculated by using the following Equation (2) based on the horizontal color edge strength ΔErowand the vertical color edge strength ΔEcolthat have been acquired. Subsequently, the color edge pixel extracting unit 174 Subsequently, the connection unit 175 Thereafter, the size determining unit 171 The method of determining the radius R of the structure element is not limited thereto, and the radius R of the structure element may be determined based on the maximum value Num of the numbers of connected pixels. Accordingly, for example, a table defining the correspondence relationship between the maximum value Num of the numbers of connected pixels and the radius R of the structure element may be prepared in advance, and the radius R of the structure element corresponding to the maximum value Num of the numbers of connected pixels that has been elected by referring to the table may be determined. When the size (the radius R) of the structure element is determined as above, the process is returned to Step e7 illustrated in As described above, according to the second embodiment, the same advantages as those of the first embodiment can be acquired. In the second embodiment, the color edge pixels are extracted based on the color edge strength of each pixel positioned inside the divided area. Then, the size of the structure element used in the morphology process is determined based on the size of the abnormal area present inside the divided area that is estimated based on the number of connected pixels of the connection component of the color edge pixels (the number of pixels of the linked color edge pixel group). Therefore, a more appropriate reference surface can be generated. In addition, in the above-described first and second embodiments, the intraluminal image is divided into a plurality of areas. Then, the reference surface is generated for each divided area that has been divided, and an abnormal area is detected for each divided area. However, the process of dividing the intraluminal image into a plurality of areas is not essential. Thus, a reference surface may be generated for the entire area of the intraluminal image as one area to detect an abnormal area from the intraluminal image based on a difference for each color element between the pixel value of each pixel and the reference surface. Furthermore, the image processing apparatus 1 according to the first embodiment and the image processing apparatus 1 In addition, the main body unit 410 of this computer system 400, as illustrated in Furthermore, to this computer system 400, a modem 450 that is used for being connected to a public circuit N3 such as the Internet is connected, and a personal computer (PC) 481 as another computer system, a server 482, a printer 483, and the like are connected through the LAN interface 418 and the local area network or the wide area network N1. This computer system 400 realizes the image processing apparatus (for example, the image processing apparatus 1 according to the first embodiment or the image processing apparatus 1 In other words, the image processing program is recorded on a recording medium such as a “portable-type physical medium”, a “fixed-type physical medium”, or a “communication medium” in a computer-readable form, and the image processing apparatus is realized by reading out the image processing program from such a recording medium and executing the image processing program by using the computer system 400. In addition, the image processing program is not limited as being executed by the computer system 400, and the present invention can be similarly applied to a case where the PC 481 as another computer system or the server 482 executes the image processing program or a case where the PC 481 and the server 482 cooperatively execute the image processing program. In addition, the present invention is not limited to the first and second embodiments described above, and various inventions can be made by appropriately combining a plurality of constituent elements disclosed in the embodiments. For example, a configuration may be employed in which several constituent elements are excluded from all the constituent elements illustrated in each embodiment. Alternatively, the constituent elements illustrated in other embodiments may be appropriately combined. According to an aspect of the present invention described above, there is an advantage that an abnormal area can be detected from an intraluminal image with high accuracy. Additional advantages and modifications will readily occur to those skilled in the art. Therefore, the invention in its broader aspects is not limited to the specific details and representative embodiments shown and described herein. Accordingly, various modifications may be made without departing from the spirit or scope of the general inventive concept as defined by the appended claims and their equivalents. An image processing apparatus includes a reference surface generating unit that generates a reference surface indicating a reference value of each of a plurality of color elements of pixels constituting an intraluminal image at a pixel position of the each color element by performing a morphology process using pixel values of the color elements; and an abnormal area detecting unit that detects an abnormal area from the intraluminal image based on a difference for each of the color elements between the pixel value of each pixel and the reference surface. 1. An image processing apparatus comprising:
a reference surface generating unit that generates a reference surface indicating a reference value of each of a plurality of color elements of pixels constituting an intraluminal image at a pixel position of the each color element by performing a morphology process using pixel values of the color elements; and an abnormal area detecting unit that detects an abnormal area from the intraluminal image based on a difference for each of the color elements between the pixel value of each pixel and the reference surface. 2. The image processing apparatus according to wherein the morphology process includes an opening process and a closing process, and wherein the reference surface generating unit performs the closing process and then performs the opening process on a result from the closing process. 3. The image processing apparatus according to wherein the reference surface generating unit generates the reference surface for each of the color elements for each of the areas by performing the morphology process for the each of the areas, and wherein the abnormal area detecting unit detects an abnormal area for each of the areas based on a difference for each of the color elements between the pixel value of each pixel positioned inside the area and the reference surface generated for the area. 4. The image processing apparatus according to 5. The image processing apparatus according to the size determining unit includes
a width calculating unit that calculates an area width of the area in a direction perpendicular to a principal axis of the area; and a curvature calculating unit that calculates curvature of a change curve of pixel values along the direction perpendicular to the principal axis, and the size of the structure element is determined based on the area width and the curvature. 6. The image processing apparatus according to the size determining unit includes
a color edge pixel extracting unit that extracts color edge pixels of which color edge strength is equal to or more than a predetermined threshold value based on the color edge strength of each pixel positioned inside the area; and a connection unit that connects color edge pixels that are linked to one another out of the color edge pixels as one color edge pixel group, and the size of the structure element is determined based on the number of pixels configuring the color edge pixel group. 7. The image processing apparatus according to wherein the abnormal area detecting unit includes: a candidate pixel detecting unit that detects an abnormal candidate pixel based on the difference for each of the color elements; and an abnormal pixel determining unit that determines whether or not the abnormal candidate pixel is an abnormal pixel belonging to the abnormal area based on relative ratios of the difference for each of the color elements. 8. The image processing apparatus according to the candidate pixel detecting unit includes
a difference calculating unit that calculates the difference for each of the color elements; and a luminance normalizing unit that normalizes the difference for each of the color elements based on luminance information of the intraluminal image, and the abnormal candidate pixel is detected based on the difference obtained after normalization for each of the color elements. 9. The image processing apparatus according to a color element normalizing unit that normalizes the difference for each of the color elements based on magnitude relationship of the pixel values of the plurality of the color elements that is set in advance; and a relative ratio determining unit that determines relative ratios of the differences for each of the color elements based on the differences after the normalization for each of the color elements. 10. The image processing apparatus according to 11. The image processing apparatus according to 12. The image processing apparatus according to the abnormal area detecting unit includes
a candidate pixel detecting unit that detects an abnormal candidate pixel of each of the areas based on the difference for each of the color elements in each area; and an abnormal pixel determining unit that determines whether or not the abnormal candidate pixel of each of the areas is an abnormal pixel belonging to the abnormal area base on the relative ratios of the differences for each of the color elements in each area. 13. The image processing apparatus according to the abnormal pixel determining unit includes
a color element normalizing unit that normalizes the difference for each of the color elements in each area based on the magnitude relationship between the pixel values of the plurality of the color elements that is set in advance; and a relative ratio determining unit that determines the relative ratio of the differences for each color element in each area based on the differences after the normalization. 14. The image processing apparatus according to 15. The image processing apparatus according to 16. A method of processing an image for detecting an abnormal area from an intraluminal image, the method comprising:
generating a reference surface indicating a reference value of each of a plurality of color elements of pixels constituting an intraluminal image at a pixel position of the each color element by performing a morphology process using pixel values of the color elements; and detecting an abnormal area from the intraluminal image based on a difference for each of the color elements between of the pixel value of each pixel and the reference surface. 17. A non-transitory computer-readable recording medium with an executable program stored thereon for detecting an abnormal area from an intraluminal image, wherein the program instructs a processor to perform:
generating a reference surface indicating a reference value of each of a plurality of color elements of pixels constituting an intraluminal image at a pixel position of the each color element by performing a morphology process using pixel values of the color elements; and detecting an abnormal area from the intraluminal image based on a difference for each of the color elements between of the pixel value of each pixel and the reference surface.CROSS-REFERENCE TO RELATED APPLICATIONS
BACKGROUND OF THE INVENTION
SUMMARY OF THE INVENTION
BRIEF DESCRIPTION OF THE DRAWINGS
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
First Embodiment
Second Embodiment
Δ
Δ













