DEVICE FOR PROCESSING IMAGE OF ENDOSCOPE AND METHOD THEREOF

Abstract: A group of vectors for converting the signals of an image of an endoscope, which is resolved into plural color signals, into plural new color signals according to the statistical features of the image is set. The color signals of the image of the endoscope are converted into the plural new color signals by the matrix operation using the group of vectors, and filterings are applied to them. The plural new color signals after applying the filtering to them are converted into the plural original color signals by a matrix operation using the inverse matrix of the one used in the afore-mentioned matrix operation.

Description: FIELD OF THE INVENTION The present invention relates to an endoscopic image processor for filtering endoscopic image data resolved into a plurality of color signals properly, and to its image processing method. BACKGROUND OF THE INVENTION Endoscopes have come to be widely adopted in recent years. Using an endoscope, a lesion in a body cavity can be observed or, if necessary, treated using a treatment tool merely by inserting the elongated insertion tube into the body cavity without requiring an incision. Among the aforesaid endoscopes, an optical endoscope (for example, a fiberscope) using an image guide as image transfer means as well as an electronic endoscope (thereafter, electronic scope or scope) using a solid state imaging device, such as a CCD has been put to practical use. In other fiberscope, an imaging camera using a solid state imaging device, such as a CCD is connected to the eyepiece part of the fiberscope so that images can be displayed in color on the monitor. Moreover, attempts are being made recently to process video signals obtained from this kind of endoscopes in various ways, and thus assist human beings in recognizing things eventually improving the diagnostic capability of the endoscopes. For example, according to US-A-4819077, an apparatus is disclosed. In the apparatus, red, green and blue (R, G and B) video signals which indicate three primary colors are converted into signals of the hue, saturation and intensity (H,S and I) relatively close to human color perception by performing relatively simple coordinate transformation. Then, the H, S and I signals are enhanced appropriately, then returned to R, G and B signals by performing inverse transformation. Finally, the results are displayed. Moreover, according to JP-A-01 138 877 (138877/1989), an apparatus is disclosed. In the apparatus, image signals are converted into a Lu* v* color space which is further close to human color perception, then subjected to a variety of enhancement. Then, inverse transformation is carried out. In JP-A-63 026 783 (26783/1988), this applicant disclosed an apparatus which converts video signals into signals in the La* b* or Lu* v* color space and enhances intensity L. In these endoscopes of prior art, high-frequency components of intensity are enhanced to intensify the contour of a color image or fine patterns. This is because when intensity is disconnected from hue or saturation, enhancement can be done without varying color tone. On the contrary, when each plane of R, G and B signals is enhanced independently, color tone varies to result in unnatural images. In endoscopic observation of living bodies, depending on the object to be observed, the endoscope may not provide sufficient observation capability of resolution, brightness and contrast because of the mechanical restrictions. In particular, even if an endoscope offering highest resolution available at present is used to observe a fine pattern on the mucosal surface (formed by a glandular cavity of the gastric gland or intestinal gland, an innominate fossa, a capillary, or stein) or an important finding for differentiating a malignant lesion from benign lesions, images having satisfactory quality for diagnosis cannot be sometimes obtained. Therefore, the debut of an endoscope offering higher resolution is greatly awaited. Also, awaited are an image processing procedure which compensates for insufficient contrast or resolution and helps simplify clinical evaluation and an apparatus in which the procedure is implemented. For example, in ordinary endoscopic images (obtained without using stain), a fine pattern in a mucosal surface is visualized by detecting the variations of G and B signals as variation information forming the pattern. This, presumably, reflects the light absorbing property of hemoglobin in blood. Images obtained using stain are subject to not only reflection or absorption intrinsic to living bodies but also absorption by stain. These properties determine data variations forming an image. Conventional high-frequency enhancement in a color space cannot enhance these images successfully. The underlying reason may be as mentioned below. Data distribution derived from data variations forming a fine pattern is inconsistent with the variation of any one of intensity, hue and saturation in human color perception. An observer acquires overall information from an image first. Next, he/she observes a fine pattern meticulously in an attempt of acquiring more detailed information. In this stage, the observer concentrates on some information attributable to the living body contained in the image. It has no significant meaning to the observer whether the information is expressed by intensity, saturation or hue. A well accepted enhancement procedure, which assists an observer, would amplify data variations noted in a region of interest but suppress the other data variations. Enhancement in a color space cannot always satisfy this condition. Therefore, enhancement in a color space does not always provide an observer of a fine pattern with optimal results. In addition, data variations in an entire endoscopic image are prone to general variations resulting from lighting or the shape of an object. Intensity enhancement tends to highlight a contour formed by the general variations more clearly. This makes it difficult to observe fine patterns. Furthermore, the document Optics Communications Netherlands, 15.09.85, Ohyama et al; "Digital Processing of Endoscopic Color Images" discloses a method of processing endoscopic color images. A set of vectors defining color image plane is defined taking into account the response of the human eyes to the R, G, B or in response to characteristics of the color images. The R, G, B color components are transformed into a new color coordinate system. In the new color coordinate system, the color signals are subjected to color enhancement or filtered. Then, the color enhanced signals are transformed into the R, G, B color coordinate system. According to a further aspect the image data is subjected to a Karhunen-Loeve transformation before it is subjected to the color enhancement processing. However, such a Karhunen-Loeve transformation includes a lot of complex operations of matrices and takes a long time for calculation. OBJECTS OF THE INVENTION The principal object of the present invention is to provide an endoscopic image processor permitting accurate observation of fine patterns in the mucosal surface of a living body and requiring reduced processing time, and its image processing method. Other object of the invention is to provide an endoscopic image processor setting an appropriate filter function according to the structural pattern of a raw endoscopic image to suppress noise and enhance a required structure to display it clearly, and its image processing method. Other object of the invention is to provide an endoscopic image processor transforming the coordinates of R, G and B endoscopic image data, setting a filter function supressing noise and having an enhancing effect on each axis, then filtering each image transformed into each axis data, and its image processing method. Other object of the invention is to provide an endoscopic image processor capable of enhancing a normal endoscopic image without being stained and a stained endoscopic image properly, and its image processing method. DISCLOSURE OF THE INVENTION The invention is defined in claims 1 and 10, respectively. Particular embodiments of the invention are set out in the dependent claims 2 to 9, and 11 to 20, respectively. BRIEF DESCRIPTION OF THE DRAWINGS Figs. 1 to 5 show an endoscopic image processor and its image processing method according to the first embodiment of the present invention; Fig. 1 is a block diagram showing the structure of an endoscope system; Fig. 2 is a block diagram showing the structure of an image processor; Fig. 3 is an explanatory diagram showing the entire endoscope system; Fig. 4 is a flowchart helping explain a processing method using the image processor; Fig. 5 is an explanatory diagram showing a weighting function used for filtering; Fig. 6 is a flowchart helping explain an image processing method according to the second embodiment of the invention; Figs. 7 to 16 show an image processing method according to the third embodiment of the invention; Figs. 7 and 8 are flowcharts showing the image processing method; Fig.9 is a flowchart showing a characteristic area setting step of Figure 8; Fig. 10 is a flowchart showing a band-pass filtering step of Fig. 8; Fig. 11 is an explanatory diagram showing correlational distribution of R and G data values on a picture plane; Fig. 12 is an explanatory diagram showing an example of correlational distribution of the R and G data values of Fig. 11 after band-pass filtering; Fig. 13 is an explanatory diagram showing weighting using a cos function; Figs. 14 and 15 are explanatory diagrams showing band-pass filtering; Fig. 16 is an explanatory diagram showing an example of setting a characteristic area automatically; and Figs. 17 and 18 are flowcharts showing variations using a mask operation processing method by a convolution in place of a Fourier function and a process using a weighting function. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Figs. 1 to 5 show an endoscopic image processor according to the first embodiment of the invention. An endoscope system according to the embodiment has an electronic endoscope 1 as shown in Fig. 3. The electronic endoscope 1 includes an elongated and, for example, flexible insertion tube 2. An operation unit 3 is connected to the end of the insertion tube 2. A flexible universal cord 4 is extending laterally from the end of the operation unit 3. A connector 5 is attached to the tip of the universal cord 4. The electronic endoscope 1 is connected to a video processor 6 incorporating a light source and a signal processing circuit via the connector 5. A monitor 7 is connected to the video processor 6. The insertion tube 2 includes a rigid distal end 9 at the tip and a bending section 10 which is adjoining to the distal end 9 and capable of bending backward. By turning a bending operation knob 11 installed at the operation unit 3, the bending section 10 can be bent laterally or vertically. The operation unit 3 has an inlet 12 leading to a treatment adapter channel installed inside the insertion tube 2. As shown in Fig. 1, a light guide 14 for transmitting light is traveling inside the insertion tube 2 of the electronic endoscope 1. The tip surface of the light guide 14 is aligned with the distal end 9 of the insertion tube 2, so that light can be emitted from the distal end 9. The incident end of the light guide 14 is connected to the connector 5 by passing through the universal cord 4. In the distal end 9, an object lens 15 is installed and a solid state imaging device 16 is arranged at the image forming position of the object lens 15. The solid state imaging device 16 is sensitive in a wide range of wave lengths including a visible region and extending from an ultraviolet region to an infrared region. To the solid state imaging device 16, signal lines 26 and 27 are connected. The signal lines 26 and 27 are connected to the connector 5 by passing through the insertion tube 2 and universal cord 4. On the other hand, the video processor 6 incorporates a lamp 21 emitting a wide band light from ultraviolet light to infrared light. An ordinary xenon lamp or strobe light can be employed as the lamp 21. The xenon lamp or strobe light emits a large amount of visible light as well as ultraviolet and infrared light. The lamp 21 is supplied power by a power supply 22. A rotation filter 50 driven by the rotation of a motor 23 is installed in the front of the lamp 21. In the rotation filter 50, filters for transmitting light of red(R), green(G) and blue(B) wavelength regions are arranged in the circumferential direction of the filter 50. The rotation of the motor 23 is controlled and driven by a motor driver 25. Light separated time-sequentially into light of R, G and B wavelength regions is transmitted to the incident end of the light guide 14, led to the distal end 9 via the light guide 14, then emitted from the distal end 9 to illuminate a region to be observed. Light returning from the observation region forms an image on the solid state imaging device 16 and is converted into electric signals. The solid state imaging device 16 receives drive pulses sent from a drive circuit 31 in the video processor 6 over the signal line 26. With a drive pulse, a signal is read out or transferred. A video signal read out from the solid state imaging device 16 is input to a preamplifier 32 installed in the video processor 6 or electronic endoscope 1 over the signal line 27. The video signal amplified by the preamplifier 32 is input to a process circuit 33, subjected to gamma correction or white balancing, then converted into a digital signal by an A/D converter 34. The digital video signal is stored selectively in, for example, a memory (1) 36a, memory (2) 36b and memory (3) 36c corresponding to red(R), green(G) and blue(B) light by a select circuit 35. The memory (1) 36a, memory (2) 36b and memory (3) 36c are read simultaneously. Then, the data is converted into analog signals by a D/A converter 37, input as R, G and B signals to a color monitor 7 via an input-output interface 38. Then, the observation region is displayed in color on the color monitor 7. The video processor 6 incorporates a timing generator 42 for producing timing for the entire system. The timing generator 42 synchronizes the motor driver 25, drive circuit 31 and select circuit 35. In this embodiment, the outputs of the memories (1) 36a to (3) 36c are connected to an image processor 104. The image processor 104 is connected to a monitor 106 via an input-output interface 105. The results of arithmetic operation by the image processor 104 are displayed on the monitor 106. The image processor 104 has a configuration shown in Fig. 2. The image processor 104 comprises a CPU 121, an information input unit 122, a main storage 123 consisting of RAM, an image input interface 125 and a display interface 128. These devices are mutually connected over a bus. The information input unit 122 is a keyboard or the like for entering a type of the electronic endoscope 1 and other data. The image input interface 125 is connected to the memory (1) 36a, memory (2) 36b and memory (3) 36c, and receives image data from the memories. The display interface 128 is connected to the input-output interface 105, and transmits image data to the monitor 106. The CPU 121 comprises a ROM 121a containing a series of image processing programs which is described later, a Fourier transformation division 121b for applying two-dimensional Fourier transformation to endoscopic image signals decomposed into a plurality of color signals, for example, R, G and B signals in order to generate a real term and an imaginary term, a filtering division 121c for weighting the generated real and imaginary terms using a weighting function and a Fourier inverse transformation division 121d for applying two-dimensional Fourier inverse transformation to the weighted real and imaginary terms in order to generate weighted color signals. The main storage (RAM) can be connected to hard disk regenerating/recording unit (not illustrated) or other external recorder. In the main storage, a variety of weighting functions supplied from the external recorder are sorted and used for weighting in the filtering division 121b of the CPU 121. In this embodiment, an image of an object region acquired by an electronic endoscope 1 is processed by an image processor 104, then the processed results are output to a monitor 106. The operations of the image processor 104 are explained below. In the first embodiment, the image processor 104 carries out the operation shown in Fig. 4. A raw image is decomposed into R, G and B color signals at a step S0 or a step prior to inputting into the image processor 104. The R, G and B color signals are stored in memories (1) 36a to (3) 36c. For the R, G and B image signals, two-dimensional discrete Fourier transformation is performed to generate a real term ar (t) and an imaginary term ai (t) at a step S1. Next, at a step S2, filtering (process) is performed to multiply the real term ar (t) and imaginary term ai (t) or data generated by two-dimensional discrete Fourier transformation at the step S1 by a weighting function w (t). As a result, the real term br (t) and imaginary term bi (t) of a filtered function are generated. The weighting function w (t) optimizes the R, G and B image signals respectively. Specifically, for an ordinary endoscopic image acquired without using stain, the R image signal is subjected to noise suppression filtering for performing noise suppression. However, the G and B image signals are processed with a weighting function for performing enhancement filtering. After filtering is completed, two-dimensional discrete Fourier inverse transformation is performed at a step S3. As a result, an enhanced R, G or B image signal is generated. Then, at a step S4, it is checked if processing of all R, G and B image signals is completed. If not completed, the steps S0 to S3 are repeated until all R, G and B image signals have been processed. When enhanced R, G and B image signals are generated, they are transferred to a monitor 106 via an input-output interface 105. Then, the resultant image is displayed on the monitor 106. Thus, the image processing terminates. The digital R, G and B image signals are converted into analog signals by a D/A converter if necessary. A weighting function used for the aforesaid filtering is generated as mentioned below. In so-called optical Fourier transformation, DC components which determine an overall density of an image are positioned in the center of a spatial-frequency plane. Low-frequency components relative to spatial frequencies reside in the vicinity of the DC components. A filter to be created shall give the greatest weight to a point at a distance from the center and reduce the weighting level for low-frequency and high-frequency components gradually from a boundary of the point. The weighting function having this property is conceivable in various types. The filter described below is an example of the weighting function. When the coordinates of the center O in a spatial-frequency plane is (u0, v0), and those of a point P on the same plane, (u,v), the distance t of OP is expressed as t = ((u - u0) 2 + (v - v0) 2 ) 1/2 . When a weighting value w is expressed as a function w (t) of t, the w(t) value is equal to or greater than 0, and equal to or smaller than α, wherein α denotes a maximum weighting value. When the center of a circle formed by a set of points yielding a maximum w(t) value is 0 and the diameter is p, the filter to be created consists of two different functions for use under the conditions of 0 ≦ t < p/2 and p/2 ≦ t respectively. A cos function is used in 0 ≦ t < p/2 , while a normal distribution function is used in p/2 ≦ t . In the cos function division of the filter to be created, A is specified as the amplitude. The cos function division shall be continuous at t = p/2 for the normal distribution function, and shall meet w (p/2) = α . The w(t) must yield a minimum value with t = 0. A formula (a) is obtained as a function meeting these conditions below. w(t) = α - A - A x cos (t x π /(p/2)) (0 ≦ t < p/2) The function of the formula (a) provides a maximum α with t = p/2 and a minimum α - 2A with t = 0 (center in a spatial-frequency domain). On the other hand, the normal distribution function division yields the maximum α and is continuous at t = p/2 for the cos function division. Assuming that a standard deviation in this kind of function is σ, a formula (b) is obtained below: w(t) = α x exp (- 0.5 ((t - (p/2))/σ) 2 ) (p/2 ≦ t) In the formula (b), σ is given as σ = (CTR - (p/2))/r (where, CTR represents an x-coordinate value of the center, and r, a real number). When p is 0, only the formula (b) is adopted. In the formulas (a) and (b), when α, A, p and r are specified as parameters, filters with different enhancement levels can be obtained. Fig. 5 shows a slope of a filter created under the foregoing conditions, wherein α = 4, A = 1.5, p = 60 and r = 4. To realize filtering permitting a noise suppression effect, high-frequency components which are thought to contain many noise components must be suppressed. For example, 1 should be specified as α, 0 as A, 0 as p and 3 as r. To realize filtering permitting an image enhancement effect, a frequency band which is thought to contain a large amount of structural pattern information of raw image must be enhanced, and frequency components which are higher than the band, be suppressed. For example, 3 should be specified as α, 1 as A, 50 as p and 4 to 7 as r. According to the first embodiment, R, G and B image signals are decomposed into spatial-frequency components, then a filter function having a function for suppressing spatial-frequency noise or an enhancement function is set to filter image signals decomposed into spatial-frequency components. Therefore, when a filter function is set appropriately according to a structure pattern of raw image data, noise is suppressed successfully to visualize an intended structure clearly. This improves the clinical value of endoscopic images. Next, the second embodiment of the invention is explained. The configuration of an endoscope system according to the second embodiment is identical to that according to the first embodiment. The configuration of an image processor 104 of the second embodiment is substantially identical to that of the first embodiment. The processing contents, however, differ from those shown in Fig. 4. Fig. 6 shows the processing flow. In this embodiment, a CPU 121 incorporated the image processor 104 has a coordinate (axis) transformation division 121e and a coordinate (axis) inverse transformation division 121f, which are indicated with an alternate long and short dash line in Fig. 2, in addition to the components of the first embodiment. The coordinate (axis) transformation division 121e performs coordinate (axis) transformation to convert endoscopic image signals decomposed into a plurality of R, G and B color signals into the axial data of three axes (for example, axis 1, axis 2 and axis 3, or x-axis, y-axis and z-axis). Also, each of the aforesaid axes is, for example, selected to set through the CPU 121 by the data retrieved from an information input unit 122. Then, the data setting these axes can be stored in, for example, a main storage 123 from the outside. The coordinate (axis) inverse transformation division 121f performs inverse transformation to return the axial data into R, G and B color signals. As shown in Fig. 2, R, G and B image data stored in memories (1) 36a to (3) 36c are subjected to coordinate transformation at a step S11 as shown in Fig. 6. At the step S11, the R, G and B image data are processed to generate data of axes 1, 2 and 3. Then, at a step S12, the axial data is fetched. At a step S13, two-dimensional discrete Fourier transformation is performed on the fetched data to generate a real term ar(t) and an imaginary term ai(t). The real term ar(t) and imaginary term ai(t) are filtered according to a weighting function w(t) in the same manner as described for the first embodiment at a step S14. As a result, a real term br(t) and an imaginary term bi(t) for a filtered function are generated. Then, the real term br(t) and imaginary term bi(t) undergo two-dimensional discrete Fourier inverse transformation at a step S15. At a step S16, it is checked if processing of all axial data is completed. When all axial data completes the steps S12 to S15, coordinate inverse transformation is performed at a step 17. Then, the resultant image is displayed on a monitor 106. An example of coordinate transformation performed at the step S11 is represented as a formula (c) or (c'). M1 x M2 = M3 that is: 0 0 1 1 1 0 1 -1 0 r g b = 1 2 3 where, M1 denotes a coordinate transformation matrix, M2, a matrix of R, G and B image signals, and M3, a matrix of axes 1 ○, 2 ○ and 3 ○ which is generated by coordinate transformation. Then, the aforesaid filter is applied to coordinate axes newly generated according to the coordinate transformation matrix M1. Specifically, filtering for enhancing only the axis 1 is applied. For the axes 2 ○ and 3 ○, filtering performing a noise suppression effect is employed. Alternatively, filtering performing an enhancement effect is applied to the axes 1 ○ and 2 ○. For the axis 3 ○, filtering having a noise suppression effect is employed. Coordinate inverse transformation is implemented by applying an inverse matrix M4 of the matrix M1 according to a formula (d) or (d'). M4 x M5 = M6 that is: 0 1/2 1/2 0 1/2 -1/2 1 0 0 1' 2' 3' = r' g' b' where, M4 denotes an inverse matrix for the coordinate transformation matrix M1, M5, a matrix of enhanced data, and M6, a matrix of enhanced R, G and B image signals. The coordinate transformation matrix M1 is employed for normal endoscopic image. For enhancement of an image acquired using stain, a different coordinate transformation matrix may be applied. Further, the coordinate transformation matrix may differ with the type of image data. The second embodiment offers almost the same effects as the first embodiment. Coordinate transformation may permit filtered images capable of visualizing an intended structure more clearly. The parameter values of a weighting function w(t) used for filtering may be varied sequentially, so that the processed image can be displayed or recorded sequentially. This allows the operator to select any processed data or processed image data capable of visualizing an intended region most clearly. Figs. 7 to 17 show an image processing method according to the third embodiment. The image processor explained for the second embodiment is employed. The image processor 104 inputs R, G and B image signals from memories 36a, 36b and 36c at a step S21 in Fig. 7 and comprises processing divisions for applying coordinate transformation to the R, G and B images at a step S22., and for performing two-dimensional discrete Fourier transformation at a step S24, filtering at a step S25, two-dimensional discrete Fourier inverse transformation at a step S27, and coordinate inverse transformation at a step S29. The image processor 104 also includes, as shown in Fig. 6, processing division for setting a 3 x 3 matrix for coordinate transformation at a step S31 and the inverse matrix at a step S36. The image processor 104 handles R, G and B image signals retrieved from the memories (1) 36a to (3) 36c. For the two-dimensional discrete Fourier transformation or inverse transformation of this embodiment, the coefficient shall be arranged in the same manner as those for optical Fourier transformation. That is, DC components are always arranged in the center of image data. In general, variation in density information forming an endoscopic image acquired without using stain is great in the R image or mainly in low-frequency components. Actual information concerning a fine characteristic on the mucosal surface of an organ tends to be more dependent on the G and B images. Density information shows different distribution depending on each image. For example, when indigo carmine is used as stain, a great deal of characteristic information is sometimes contained in the R image. Fig. 11 shows the concept of correlational distribution of R and G data in pixels of an 256-level gradation image. Herein, a density is treated as two-dimensional data for accurate explanation. The two-dimensional data has a similarity with actual (not illustrated) B or G data. The distribution of density information shown in Fig. 11 includes all low and high-frequency components of an image. Information showing a characteristic on the mucosal surface of an organ (hereafter, characteristic component) resides in high-frequency components of a certain band. This embodiment focuses on this fact and applies band-pass filtering to extract the band likely to contain the characteristic component. Fig. 12 shows the concept of correlational distribution observed after the band-pass filter is applied to the R and G data of Fig. 11. In a normal endoscopic image, many frequency components forming the characteristic are contained mainly in G (and B) images. Therefore, after the band-pass filtering is applied, the correlational distribution depends more greatly on the variation of G data than R data. The correlational distribution varies depending on image data. In image data acquired using stain (for example, indigo carmine), since the stain has a nature of being absorbed in red, an R image contains more characteristic components than G and B images. To enhance characteristic components of raw image effectively to be processed, the statistical distribution of the selected characteristic components is obtained and three axes substituted for the R, G and B images are set, then the results of converting raw image data relative to these coordinate axes are enhanced. An example of specific processing is described below. In R, G and B raw images, the most characteristic region or a region required to be enhanced is included in the center, for example, an area of 256 x 256 in size (hereafter, characteristic area) is set at a step S31 in Fig. 8. The center point of an image of 256 x 256 in size shall be a pixel corresponding to (128, 128). The characteristic area can not only be selected based on the operator's subject but also be set automatically. The flowchart shown in Fig. 9 is an example of setting a characteristic area automatically. Using the property that the greatest number of characteristic components of a normal endoscopic image is contained in the G image (hereafter, G image also refers to B image), a characteristic area bringing about a coordinate transformation matrix enabling effective enhancement is set. First of all, the G image of a raw image is divided into blocks of, for example, 64 x 64 in size at a step S41 as shown in Fig. 9. A certain block is extracted as the center of the characteristic area from the blocks. That is to say, blocks containing halation exceeding a certain percentage are excluded from the center candidates of the characteristic area at a step S42. Then, at a step S43, the densities of the blocks which have not been excluded at the step S42 are averaged. At this time, halation components are removed from the blocks. At a step S44, blocks which have a smaller density average than a certain value, cause a shadow in an image, and are considered unsuitable for use in the characteristic area and are excluded from the center candidates. In the example of Fig. 16, a block D indicated with a bold-faced line causes a shadow. After the series of operations is completed, the density averages of each block which is not excluded are calculated at a step S45. A block having a density average closest to the calculated value is defined as the center of the characteristic area. Then, the 256 x 256 characteristic area including the block as the center is extracted at a step S46. If a selected block cannot provide the data satisfying the area of 256 x 256 in size, a block which has a density average close to the calculated value and can extract the characteristic area is adopted as the center. R, G and B data of each pixel in the characteristic area is acquired at a step S32 in Fig. 8, then multiplied by a cos function or a weighting function according to the following formula (1). In the function, 1 is set at the center of an image at a step S33, and when a distance from the center (corresponding to the number of pixels) n is 128, 0 is set. wc(n) = 0.5 x cos (nπ /128) + 0.5 Fig. 13(a) shows the change in the weighting value that varies depending on the pixel on a segment passing through the center of a characteristic area image. For an area indicating n > 128 in the shaded part of Fig. 13(b), all the pixels are given a weighting value 0. That is, the weighting function wc(n) of the formula (1) provides the same value as the pixels along a concentric circle with respect to the center of an image. The circle shown in Fig. 13(b) represents a point at n = 128, and the shaded part, a region of n > 128. According to the formula (1), weights are placed in an area of n ≦ 128. Any point beyond n ≦ 128 is multiplied by 0 unconditionally. This operation minimizes the occurrence of distortion in an image due to the discontinuity in the data of the peripheral area resulting from band-pass filtering mentioned later. The image data of the characteristic area weighted by the cos function at the step S33 in Fig. 8 is processed by band-pass filtering at a step S34. Fig. 10 is a flowchart showing a specific example of the operation of the band-pass filtering. Each of R, G and B image is processed by two-dimensional discrete Fourier transformation at a step S51 in Fig. 10. Then, filtering having, for example, the band-pass characteristic shown in Fig. 15 is applied. A frequency band which is thought to contain a greatest number of characteristic components of endoscopic image is set as a band to be passed. Next, two-dimensional discrete Fourier inverse transformation is performed at a step S53 in Fig. 10. The image of 128 x 128 area (hereafter, characteristic image) including the center of the image, which is obtained by the operation described previously, is used to draw out a coordinate transformation matrix. The obtained image contains only the characteristic components extracted from a raw image. The concept of correlational distribution of R, G and B data is subject to, for example, that in Fig. 12. At a step S35 of Fig. 8, it is checked whether processing of all the R, G and B images of the characteristic area are completed or not. If completed, the processing advances to the next step. At a step S36 in Fig. 8, coordinate transformation/inverse transformation matrix determination using KL transformation is applied to the characteristic image obtained as described previously in order to obtain the statistical distribution of R, & and B data in the characteristic components. KL transformation is used to mechanically draw out a new system of orthogonal functions based on the statistical distribution of input image data. KL transformation is detailed in a reference entitled Digital Image Processing Engineering , pp. 38-43, written by Kei Tezuka, Tadahiro Kitahashi and Hideo Ogawa, published by The Nikkan Kogyo Shimbun Ltd. The description, therefore, is omitted here. When the step S36 is completed, three three-dimensional vectors used for coordinate transformation are obtained. The eigen values of the vectors are compared to define X, Y and Z axes to be used as transformed coordinate axes. That is to say, the vector having the largest eigen value is defined as the X axis, and that having the smallest eigen value, as the Z axis. If the vectors defining the X, Y and Z axes are a vector ax (a11, a12, a13), a vector ay (a21, a22, a23), and a vector az (a31, a32, a33), respectively, coordinate transformation from the R, G and B data space to the space configured by the new three axes X, Y and Z is achieved by performing a matrix operation according to the following formula (2): a11 a21 a31 a12 a22 a32 a13 a23 a33 r g b = x y z Herein, assuming that the 3 x 3 vector matrix in the formula (2) is a matrix M1, coordinate inverse transformation is performed by multiplying X, Y and Z-axial data by an inverse matrix for the matrix M1. At a step S21 in Fig. 7, the coordinate transformation matrix generated at the step S36 in Fig. 8 is used to perform the operation of the formula (2), thus, the data of each pixel (r, g and b) in R, G and B raw images is converted into (x, y, z) data. At a step S24 in Fig. 7, each of X, Y and Z-axial pixels is subjected to two-dimensional discrete Fourier transformation. The filtering generated at the step S25 is applied by multiplying the real term ar(t) and imaginary term ai(t) of the data generated by two-dimensional discrete Fourier transformation at the step S24 by the weighting function generated at a step S26 mentioned later. The weighting function provides X, Y and Z-axial pixels with appropriate weights. To be more specific, filtering having an enhancement effect is applied to, for example, the X image containing a great number of characteristic components, and a weighting function which performs filtering having a noise suppression effect, to the Y and Z image. After filtering is completed at the step S25, two-dimensional discrete Fourier inverse transformation is performed at a step S27. Finally, X, Y and Z-axial pixels enhanced are obtained. The weighting function used in the filtering at the step S26 is processed below. In so-called optical Fourier transformation, DC components determining an overall density of an image are positioned in the center of a spatial-frequency plane, and low-frequency components relative to spatial frequencies reside in the vicinity of the DC components. A filter to be produced shall enhance a point at a distance from the center most intensively and lighten weights for low and high-frequency components gradually from a boundary of the point. Various kinds of weighting functions are thought to have this property. The filter shown below is one of the weighting functions. Assuming that the coordinates of the center O on a spatial-frequency plane is (u0, v0), and the point of interest P on the same plane, (u,v), the distance x of OP is given by x = {(u - u0) 2 + (v - v0) 2 } 1/2 . When a weighting value is w, w is expressed as a function w(x) of x. The w(x) value must be equal to or lager than 0, and equal to or smaller than α. α is a maximum weighting value. If the center of a circle formed by a set of points yielding the maximum w(x) value is 0 and the diameter of the circle is p, the filter to be created here consists of two different functions for use under the conditions of 0 ≦ x < p/2 and p/2 ≦ x respectively. A cos function is used in 0 ≦ x < p/2 , while a normal distribution function, in p/2 ≦ x . In the cos function of a filter to be created, A is specified as the amplitude. The cos function division shall be continuous at x = p/2 and at the normal distribution function division and represented as w (p/2) = α . The cos function must yield a minimum value at x = 0. A formula (3) below is generated as a function meeting these conditions: w(x) = α - A - A x cos {X x π/(p/2)} (0 ≦ x < p/2) The function of the formula (3) provides a maximum value α at x = p/2 and a minimum value α - 2A at x = 0 (center of a spatial-frequency domain). When σ is specified as a standard deviation in this kind of function, the following formula (4) is obtained: w(x) = α x exp [-0.5 {(x - (p/2))/σ} 2 ] (p/2 ≦ x) In the formula (4), σ is given according to σ = (CTR - (p/2))/r (where, CTR represents the x coordinate value of the center, and r, a real number). For p = 0, only the formula (3) can be adopted. In either the formula (3) or (4), when α , A, p and r are specified as parameters, filters permitting different levels of enhancement can be obtained by changing the parameter values. Fig. 15 shows an example of a filter characteristic generated under the aforesaid conditions. For example, α = 4, A = 1.5, p = 60 and r = 4 are specified. To realize filtering permitting a noise suppression effect, high-frequency components considered to contain a great number of noise components must be suppressed. Therefore, for example, α = 1, A = 0, p = 0 and r = 3 can be set. To realize filtering permitting an image enhancement effect, a frequency band presumably containing a great deal of structural pattern information of raw image data must be enhanced and the band must be suppressed. Therefore, for example, α = 3, A = 1, p = 50 and r = 4-7 can be set. At a step S28 in Fig. 7, it is checked if all processing steps by the step S27 for X, Y and Z-axial pixels are completed. After the completion, coordinate inverse transformation is performed at a step S29. As a result, enhanced R, G and B images are obtained. Specifically, according to the inverse matrix M2 of the matrix M1, the processing steps can be applied to (X', Y', Z') data of the above processed pixels by the formula (5) below. b11 b21 b31 b12 b22 b32 b13 b23 b33 x' y' z' = r' g' b' Again, after the flowchart returns to R, G and B images, (r', g', b') data of each pixel can be obtained by the aforesaid operation at a step S30 in Fig. 7. Then, the result of R, G and B operation is displayed as an image on the monitor 106 shown in Fig. 1. In this embodiment, a fine pattern on the mucosal surface is enhanced for R, G and B raw images in the image processor 104 and at the same time, a clear image in which noise is suppressed can be obtained. For the aforesaid operation, a noise elimination process (for example, using a median filter having a 3 x 3 mask size) can be applied as the previous process for the raw images. An automatic setting method of characteristic areas is not restricted to the example in this embodiment and various methods can be considered. A method of determining a coordinate transformation matrix at a step S36 in Fig. 8 is not restricted to KL transformation. If the method draws out a coordinate transformation matrix adapted to the processed subject image, the method is usable appropriately. The operation in the embodiments can be realized as parallel operation. The matrices in the embodiment are not obtained in accordance with the images one by one. For example, a matrix previously drawn out can be applied depending on the difference on the distribution of an R image. In the aforesaid embodiments, enhancement or noise suppression operation using two-dimensional discrete Fourier transformation or weighting functions shown in S1-S3 in Fig. 4, S13-S15 in Fig. 6 and S24-S27 in Fig. 7, or the band-pass filtering shown at the step S34 in Fig. 8 can be realized as mask operation. Also, the weighting according to the cos function at the step S33 in Fig. 8 is not needed. For example, the operation of Fig. 7 can be replaced with that of Fig. 17, and that of Fig. 8 can be replaced with that of Fig. 18. The mask operation used for convolution may be applied. The band passing characteristic of the mask operation is similar to the filtering operation in the aforesaid embodiments. Setting the mask operation is described, for example, in a reference entitled "A Computer Program for Designing Optimum FIR Linear Phase Digital Filters" written by James H. McClellan, IEEE Transaction on Audio and Electoacoustics , Vol. AU-21, No. 6, pp.506-626, December 1978 or a reference entitled "Designing of Two-Dimensional FIR Fan Filters by Fourier Reconstruction" in The Transactions of the IECE of Japan , Vol. B63, No. 12, pp. 849-854, December 1980.

Claims: An endoscopic image processor comprising: characteristic area setting means for setting a characteristic area containing one of the characteristic region or a region desired to be enhanced from an endoscopic image resolved into a plurality of color signals; band-pass filtering means for applying band-pass filtering for passing only a predetermined frequency band for a characteristic area image being set in each of said color signals; acquiring means for acquiring a group of vectors by obtaining a statistical distribution of each color data of said characteristic area image passed through said band-pass filtering means color signal transforming means for transforming the color signals of said endoscopic image into a plurality of new color signals by a matrix operation using said group of vectors; filtering means for filtering said plurality of new color signals produced by said color signal transforming means; and transforming means for transforming said plurality of new color signals after said filtering means applied filtering to the new color signals into a plurality of original color signals by a matrix operation using an inverse matrix of a matrix used for said matrix operation. An endoscopic image processor according to claim 1, wherein said characteristic area setting means comprises: dividing means for dividing one of the G and B images in the endoscopic image into a plurality of blocks; eliminating means for eliminating blocks containing more than a certain percentage of halation in the image of said divided plurality of blocks; calculating means-for calculating a density average in each block other than said eliminated blocks; removing means for removing remaining blocks whose density average is smaller than a certain value; and extracting means for calculating a density average in said blocks except said removed blocks and extracting a characteristic area containing a block as a center of the characteristic area, the block having a density average closest to the calculated density average. An endoscopic image processor according to claim 1 or 2, wherein said filtering means uses at least one of an enhancement filter preferably enhancing a frequency band containing a large amount of information of a structural pattern of a raw image and a noise suppression filter preferably suppressing frequency components being capable of containing many noise components. An endoscopic image processor according to any of the preceding claims, wherein said filtering means determines a filter to be used based on information contained in each color signal. An endoscopic image processor according to any of the preceding claims, wherein said filtering means performs filtering with a noise suppression effect for an R image in a case of ordinary R, G and B endoscopic images without using stain and applies weighting functions performing filtering with an enhancement effect to G and B images. An endoscopic image processor according to any of claims 1 to 4, wherein said filtering-means performs filtering with an enhancement effect for an axis and performs filtering with a noise suppression effect for another axis. An endoscopic image processor according to any of the preceding claims, wherein said characteristic area setting means is performed manually. An endoscopic image processor according to any of the preceding claims, wherein the group of vectors in said acquiring means is acquired by KL transformation. An endoscopic image processor according to any of the preceding claims, wherein the group of vectors in said acquiring means is selected from a plurality of groups of vectors previously prepared. A method of processing an endoscopic image comprising: a characteristic area setting step of setting a characteristic area containing one of the characteristic region or a region desired to be enhanced from an endoscopic image resolved into a plurality of color signals; a band-pass filtering step of applying band-pass filtering for passing only a predetermined frequency band for a characteristic area image being set in each of said color signals; an acquiring step of acquiring a group of vectors by obtaining a statistical distribution of each color data of said characteristic area image passed and being band-pass filtered a color signal transforming step of filtering the color signals of said endoscopic image into a plurality of new color signals by a matrix operation using said group of vectors; a filtering step of transforming said plurality of new color signals produced by said color signal transforming step; and a transforming step of transforming said plurality of new color signals after said filtering step applied filtering to the new color signals into a plurality of original color signals by a matrix operation using an inverse matrix of a matrix used for said matrix operation. A method of processing an endoscopic image according to claim 10, wherein said characteristic area setting step comprises: a dividing step of dividing one of the G and B images in the endoscopic image into a plurality of blocks; an eliminating step of eliminating blocks containing more than a certain percentage of halation in the image of said divided plurality of blocks; a calculating step of calculating a density average in each block other than said eliminated blocks; a removing step of removing remaining blocks whose density average is smaller than a certain value; and an extracting step of calculating a density average in said blocks except said removed blocks and extracting a characteristic area containing a block as a center of the characteristic area, the block having a density average closest to the calculated density average. A method of processing an endoseopic image according to claim 10 or 11, wherein said filtering step uses at least one of an enhancement filter preferably enhancing a frequency band containing a large amount of information of a structural pattern of a raw image and a noise suppression filter preferably suppressing frequency components being capable of containing many noise components. A method of processing an endoscopic image according to any o f claims 10 to 12, wherein said filtering step determines a filter to be used based on information contained in each color signal. A method of processing an endoscopic image according to any of claims 10 to 13, wherein said filtering step performs filtering with a noise suppression effect for an R image in a case of ordinary R, G and B endoscopic images without using stain and applies weighting functions performing filtering with an enhancement effect to G and B images. A method of processing an endoscopic image according to any of claims 10 to 14, wherein said filtering step performs filtering with an enhacement effect for an axis and performs filtering with a noise suppression effect for another axis. A method of processing an endoscopic image according to any of claims 10 to 15, wherein the group of vectors of said acquiring step is acquired based on frequency components forming a structural pattern in a raw image. A method of processing an endoscopic image according to any of claims 10 to 16, wherein said characteristic area setting step is performed manually. A method of processing an endoscopic image according to any of claims 10 to 17, wherein the endoscopic image is one of an ordinary endoscopic image without using stain and an endoscopic image using stain. A method of processing an endoscopic image according to any of claims 10 to 18, wherein KL transformation is used as a drawing out procedure of the group of vectors in said acquiring step. A method of processing an endoscopic image according to any of claims 10 to 19, wherein the group of vectors in said acquiring step is selected from a plurality of groups of vectors previously prepared.

Inventors: NAKAMURA MASAKAZU, NISHIMURA HIROKAZU, NONAMI TETSUO, NAKAMURA, MASAKAZU, NISHIMURA, HIROKAZU, NONAMI, TETSUO
Applicants: OLYMPUS OPTICAL CO, OLYMPUS OPTICAL CO., LTD.
Application year: 1991
Main classification: A61B5
IPC codes: H04N9, H04N5, A61B1