Abstract:
Provided is an analysis target region setting apparatus that can accurately set an analysis target region, based on an observation image of a sample obtained with an optical microscope and the like irrespective of texture on the sample surface when the analysis target region is set therein. The analysis target region setting apparatus according to the present invention divides the observation image into a plurality of sub-regions based on pixel information on each pixel constituting the observation image. Subsequently, consolidation information on each sub-region is calculated, and two adjacent sub-regions themselves are consolidated based on the consolidation information. According to this, it is possible to divide the observation image into sub-regions having similar pixel information with a disregard of noise attributed to the shape of a surface and the like. A user designates one sub-region from among the sub-regions finally obtained, as the analysis target region.

Description:
TECHNICAL FIELD 
       [0001]    The present invention relates to an analysis target region setting apparatus which sets an analysis target region within an observed image of a sample obtained with an observation optical system, such as an optical microscope. 
       BACKGROUND ART 
       [0002]    A microspectroscope is an apparatus that includes an observation optical system for microscopically observing a sample surface and an analyzing system for performing a spectroscopic analysis on a part or the whole of an observed area. For example, a microscopic infrared spectroscopic analyzer that performs an analysis with infrared light includes, as the analyzing system, an illumination optical system for emitting infrared light, an aperture for casting the infrared light only on a specific small area of a sample surface, and an infrared detector for detecting light reflected by or transmitted through the sample and passed through the aperture. Hereinafter, the microscopic infrared spectroscopic analyzer is merely referred to as “infrared microscope”. The infrared microscope obtains the observation image of visible light on the sample surface by means of the observation optical system, and the position, size, and orientation (angle) of the aperture are set based on the observation image of visible light. 
         [0003]    In the infrared microscope, normally a user visually examines the observation image of visible light, and sets the position, size and orientation of the aperture one by one by means of a pointing device such as a mouse. However, when the spectroscopic analysis must be done on a large amount of samples, such as analysis of impurities in the course of product quality management, it is labor and time consuming for a user to manually set the position etc. of the aperture. Accordingly, there has been provided an infrared microscope in which a characteristic image region is extracted from an observation image, and the position etc. of the aperture are automatically set for the region. 
         [0004]    For example, Patent Literature 1 discloses an infrared microscope in which an image processing such as edge extraction or binarization is performed based on the hue or illuminance of the observation image of a sample, so as to extract the characteristic image region. Another kind of infrared microscope is known in which when a user designates an appropriate position in the observation image with a pointing device or the like, a region having an illuminance value, for example, in a predetermined range centering on the illuminance value of the designated position is extracted as a characteristic image region. 
       CITATION LIST 
     Patent Literature 
       [0005]    Patent Literature 1: JP 2010-276371 A 
       SUMMARY OF INVENTION 
     Technical Problem 
       [0006]    When a sample surface has a rough part, or depressions/projections or the like exist on the sample surface (i.e. when the sample surface has a texture), the reflection or refraction of light on that part is different from that of other part, and the difference develops as difference in hue or illuminance When a region having the texture is included in a region to be analyzed, these regions are treated as an irregular region (which is referred to as “pseudo irregular region”) that should not be included in the characteristic image region in the automatic processing. When many such pseudo irregular regions exist in the region to be analyzed, the characteristic image region is designated excluding the pseudo irregular regions. In that case, the aperture is set not to include the pseudo irregular regions, and the size of the aperture becomes very small, compared with the size of the region to be analyzed. Accordingly, signal intensity obtained with the aperture is reduced to a low level, and the S/N ratio of analytical data deteriorates. 
         [0007]    The development of the pseudo irregular regions can be avoided by tuning the settings of a threshold value (for example, “predetermined range”). However, when a large number of different samples are sequentially analyzed, the tuning of the threshold value is required frequently because an optimal threshold value is different depending on the sample, which gives the user a lot of burden. 
         [0008]    The aforementioned problem is not limited to the infrared microscope, but generally occurs in an analyzer with which the user sets a region to be analyzed (hereinafter referred to as “analysis target region”) based on the observation image of the sample, so as to make an analysis on the analysis target region. 
         [0009]    In order to solve the problem, it is an object of the present invention to provide an analysis target region setting apparatus that can accurately set an analysis target region, based on an observation image of a sample obtained with an optical microscope or the like without being affected by the texture on the sample surface when an analysis target region is set. 
       Solution to Problem 
       [0010]    According to the present invention, which is provided in order to solve the problem, an analysis target region setting apparatus is configured to set an analysis target region that is a region analyzed by an analyzer in an observation region of a sample, the analysis target region setting apparatus including: 
         [0011]    a pixel information acquisition means configured to acquire pixel information on each pixel constituting the observation region; 
         [0012]    a sub-region forming means configured to classify each pixel in accordance with the pixel information and form one sub-region or plural sub-regions composed of pixels that belong to a same classification and are adjacent to each other; 
         [0013]    a consolidation information calculating means configured to obtain a characteristic value regarding a part or whole of pixels in each sub-region as consolidation information; and 
         [0014]    a region consolidating means configured to consolidate the sub-region with one sub-region adjacent to the sub-region based on the consolidation information. 
         [0015]    The region consolidating means may consolidate two adjacent sub-regions based on the number of pixels in each sub-region and a difference between a statistic of the pixel information on entire pixels in each sub-region and a statistic of the pixel information on entire pixels in a sub-region adjacent to the sub-region. 
         [0016]    Also, the region consolidating means may consolidate two adjacent sub-regions based on the number of pixels positioned on a boundary with the adjacent sub-regions and a statistic of a difference of the pixel information on adjacent pixels on the boundary, in each sub-region. 
         [0017]    Furthermore, the region consolidating means may consolidate adjacent sub-regions based on the degree of circularity calculated from the number of pixels in each sub-region and the number of pixels on the boundary between the sub-region and neighboring sub-regions. 
         [0018]    The number of pixels in each sub-region corresponds to the area of the sub-region. Also, the number of pixels positioned on the boundary with the adjacent sub-region in each sub-region corresponds to the length of the boundary on which the two sub-regions abut. Furthermore, the number of pixels on the boundary between each sub-region and the surrounding sub-regions corresponds to the length of the circumference (circumferential length) of each sub-region. For example, illuminance, hue, and saturation can be used for the pixel information, and for example, an average value, a median value, and standard deviation can be used for the statistic. 
         [0019]    In the analysis target region setting apparatus according to the present invention, first, the image information acquisition means acquires the pixel information based on each pixel in the observation region. The sub-region forming means forms the sub-region made of one pixel or plural adjacent pixels in the observation region based on the pixel information based on each pixel acquired in this way. According to this, in many cases, the observation region is divided into a number of sub-regions. In the present invention, the consolidation information calculating means obtains the characteristic value regarding a part or the whole of pixels in each sub-region as the consolidation information, and the region consolidating means consolidates the adjacent sub-regions themselves based on the consolidation information. The number of pixels, the statistic of the pixel information, and the like are included in “the characteristic value regarding the pixels”. For example, “based on the consolidation information” means based on whether or not the consolidation information satisfies a predetermined condition, whether or not the area (the number of pixels) of a certain sub-region is equal to or less than a standard value, whether or not a certain sub-region abuts its adjacent sub-region on almost all the circumference thereof, whether or not the difference between the statistics of the pixel information of the two adjacent sub-regions is equal to or less than a standard value, or the like. As the consolidation information, one characteristic value may be used, or plural characteristic values combined may be employed. With this processing, in the sample in which various pseudo irregular regions such as texture exist, it is possible to eliminate the pseudo irregular regions and consolidate the original region. 
         [0020]    It is desirable that the analysis target region setting apparatus according to the present invention include a control means configured to employ the consolidation information calculating means and the region consolidating means plural times. This enables the processing of further consolidating the adjacent sub-regions based on the consolidation information of the sub-regions after the consolidation. It is desirable that the control means can also change the conditions of the consolidation information provided for the region consolidating means to consolidate two adjacent sub-regions. This enables the processing of consolidating the sub-regions while the conditions are being changed. 
         [0021]    Subsequently, the user only needs to select the analysis target region to be analyzed by the analyzer from among the plurality of sub-regions finally obtained. In this case, for example, it may be such that the position, size, and orientation of the aperture are automatically set based on the calculation such as optimization for each sub-region to cause the user to select the aperture from among them. 
       Advantageous Effects of the Invention 
       [0022]    In the analysis target region setting apparatus according to the present invention, the sub-region is formed in the observation region based on the pixel information on each pixel in the observation region, and the consolidation information is obtained for each sub-region, and the adjacent sub-regions are consolidated based on the consolidation information. Accordingly, it is possible to divide the observation region into sub-regions having similar pixel information without being affected by noise attributed to the shape, texture or the like of the surface of the sample. 
     
    
     
       BRIEF DESCRIPTION OF DRAWINGS 
         [0023]      FIG. 1  is a configuration diagram of an essential part of an infrared microscope in an embodiment of the present invention. 
           [0024]      FIG. 2  is a flowchart illustrating a procedure of setting an analysis target region in the infrared microscope in the present embodiment. 
           [0025]      FIG. 3  is a flowchart illustrating a procedure of small region consolidating processing in the infrared microscope in the present embodiment. 
           [0026]      FIG. 4  is a flowchart illustrating a procedure of linear region consolidating processing in the infrared microscope in the present embodiment. 
           [0027]      FIG. 5  is a flowchart illustrating a procedure of illuminance unevenness consolidating processing in the infrared microscope in the present embodiment. 
           [0028]      FIG. 6  is a diagram illustrating one example of an observation image displayed on a screen of a display unit. 
           [0029]      FIG. 7  is a diagram of regions obtained by the sub-region forming processing and classified by color, and displayed. 
           [0030]      FIG. 8  is a diagram of each region obtained without performing the small region consolidating processing, classified by color, and displayed. 
           [0031]      FIG. 9  is a diagram of each region obtained without performing the linear region consolidating processing, classified by color, and displayed. 
           [0032]      FIG. 10  is a diagram of each region obtained without performing the illuminance unevenness consolidating processing, classified by color, and displayed. 
           [0033]      FIG. 11  is a diagram of each region obtained by performing the entire region consolidating processing, classified by color, and displayed. 
           [0034]      FIG. 12  is a diagram illustrating an aperture candidate set in each region. 
           [0035]      FIG. 13  is a flowchart illustrating another procedure of setting the analysis target region of the infrared microscope in the present embodiment. 
           [0036]      FIG. 14  is a diagram illustrating an aperture candidate set to each maximum point. 
           [0037]      FIG. 15A  is a diagram illustrating the aperture candidates set to another observation image after the region consolidating processing, and  FIG. 15B  is a diagram illustrating the aperture candidates set to another observation image after the maximum point extraction. 
           [0038]      FIG. 16A  is a diagram illustrating the aperture candidates set to still another observation image after the region consolidating processing, and  FIG. 16B  is a diagram illustrating the aperture candidates set to still another observation image after the maximum point extraction. 
       
    
    
     DESCRIPTION OF EMBODIMENTS 
       [0039]    An infrared microscope of an embodiment of the present invention will be described referring to drawings. 
       Embodiments 
       [0040]      FIG. 1  is a configuration diagram of an essential part of the infrared microscope of the present embodiment. In the infrared microscope in the diagram, an infrared interferometer  1  includes an infrared source, a fixed mirror, a moving mirror, a beam splitter, and the like, and emits infrared interference light, for which infrared light having a plurality of different wavelengths is interfered. The infrared interference light is reflected by a half mirror  4  and cast to a sample  3  placed on a movable stage  2  with an illumination range limited by an aperture  5 . The infrared light reflected by the sample  3  passes the aperture  5  and half mirror  4 , and enters an infrared detector  7  through a reflective mirror  6 , and is detected by the infrared detector  7 . When the infrared interference light is reflected on the surface of the sample  3 , the infrared interference light is subjected to absorption at wavelengths (generally, multiple wavelengths) unique to a substance existing in its portion. This means that the infrared light reached at the infrared detector  7  is one on which the infrared absorption is reflected in a specific region of the sample  3  to which the infrared interference light is cast. 
         [0041]    A detection signal from the infrared detector  7  is transmitted to a data processor  10 , and a Fourier transformation calculator  100  executes Fourier transformation processing to the detection signal in the data processor  10 , so as to obtain an infrared absorption spectrum indicating absorbance in a predetermined range of wavelengths. The obtained spectrum data is transmitted to a controller  11  and displayed on a screen of a display unit  13  connected to the controller  11 . Then, visible light emitted from a visible light source  8  is brought into a wide range on the sample  3 , and visible reflective light from the sample  3  is introduced to a CCD camera  9 . In the CCD camera  9 , an observation image of the surface of the sample  3  is generated, and data on the observation image is transmitted to the controller  11 . As is the same with the spectrum data, the data on the observation image transmitted to the controller  11  is displayed on the screen of the display unit  13 . The controller  11  appropriately controls the movable stage  2  and the aperture  5  to change the region on which the infrared interference light is cast. The controller  11  also controls the operations of respective units such as an infrared interferometer  1  and the visible light source  8 . 
         [0042]    The data processor  10  and the controller  11  can achieve various functions described later by executing, on a personal computer, dedicated control and data processing software and installed in advance in the personal computer. 
         [0043]    The constitution in  FIG. 1  is provided to perform a reflective infrared measurement and a reflective visible observation, but may be changed to constitution in which a transmissive infrared measurement is performed, or constitution in which a transmissive visual observation is performed. Also, a mechanism may be incorporated wherein a user directly makes visual observations for the sample surface with an eyepiece. 
         [0044]    Next, a procedure that the controller  11  sets the analysis target region based on observation image data in the infrared microscope in the present embodiment will be described referring to flowchart in  FIG. 2 . 
         [0045]    When the sample  3  to be measured is placed on the movable stage  2 , first, a visible image of the sample  3  is taken by the CCD camera  9 , and data on the image is transmitted to the controller  11 , and an observation image as illustrated in  FIG. 6  is displayed on the screen of the display unit  13  (Step S 1 ). The controller  11  obtains illuminance information on each pixel constituting the observation image as pixel information (Step S 2 ). It is noted that hue, saturation, and the like other than the illuminance can be appropriately used for the pixel information. 
         [0046]    The sub-region forming processing is performed in steps S 3  and S 4 . In the sub-region forming processing, each pixel constituting the observation image is classified in accordance with the illuminance information thereof, and one pixel or plural pixels that belong to the same classification, and that are adjacent to each other are consolidated into one sub-region. According to the processing, a plurality of sub-regions are formed in the observation image. 
         [0047]    When the number of sub-regions obtained in the sub-region forming processing is large, subsequent computation is enormously complicated. In this case, the number of classifications of the pixels in Step S 3  is reduced. This reduces the number of sub-regions obtained in Step S 4 , so that the computation can be simplified. 
         [0048]    The processing in Steps S 3  and S 4  can be easily performed, for example, by low-gradation processing. When the number of sub-regions obtained in Step S 4  increases to the extent that a problem occurs in terms of a subsequent processing time, the number of gradations is reduced, and the same processing is repeated. 
         [0049]    In steps S 5  to S 7 , the processing of consolidating a sub-region that should be naturally included in an adjacent sub-region (this sub-region to be included may be referred to as “pseudo irregular region”), among the plurality of sub-regions formed in Steps S 3  and S 4 , into the adjacent sub-region is performed. 
         [0050]    In Step S 5 , small region consolidating processing is performed in which a small pseudo irregular region generated by rough part, depressions/projections, or the like existed on the sample surface is consolidated with the sub-region adjacent to it. The small region consolidating processing will be described in detail referring to a flowchart in  FIG. 3 . 
         [0051]    In the small region consolidating processing, first, consolidation information on each sub-region formed in the observation image is calculated (Step A 1 ). In the present embodiment, the number of pixels (area) in the sub-region, the sum of illuminance in the sub-region, the sum of the squared values of the illuminance, the length of the boundary with one sub-region adjacently disposed, and the sum of illuminance difference on its boundary are used as the consolidation information. Regarding the consolidation information, when two sub-regions are consolidated, the consolidation information of the sub-regions after the consolidation can be calculated only by adding respective pieces of consolidation information, and therefore high-speed calculation is enabled. Also, average illuminance in the sub-region, standard deviation, an average illuminance difference on the boundary with one sub-region adjacently disposed, the entire length of the boundary (the length of circumference), and a degree of circularity (a value obtained by dividing the area by the length of circumference) are indirectly calculated based on the consolidation information. The length of the boundary with one sub-region adjacently disposed or the entire length of the boundary can be calculated based on the number of pixels positioned at the boundary. 
         [0052]    Subsequently, all the small regions in which the area obtained in Step A 1  is equal to or smaller than a threshold value C 1  is searched (Step A 2 ). For all small regions, the combination of a small region i and one sub-region j adjacent to it, for which a degree of deviation f ij  is equal to or lower than a threshold value C 2  are searched in Step A 2  (Step A 3 ). 
         [0000]        f   ij =|( R   i   −R   j )× B   ij |
 
         [0000]    R i  and R j  respectively represent the average illuminance of the sub-regions i and j, and B ij  represents the average illuminance difference on the boundary between the sub-regions i and j. Then, the combination of the two sub-regions having the minimum degree of deviation f ij  is consolidated from among all the combinations obtained in Step A 3  (Step A 4 ). When the sub-regions are consolidated, the consolidation information on the sub-region after the consolidation is changed, and therefore the consolidation information on the sub-region after the consolidation is recalculated (Step A 5 ), and the processing in Steps A 2  to A 4  is performed again. The processing above is repeated until the combination of the two sub-regions to be consolidated in Step A 4  is no longer searched in Steps A 2  and A 3 . 
         [0053]    It is noted that Step A 2  may apply the processing of searching a combination that the length of the boundary between the small region i and the sub-region j adjacent to the small region i is equal to or higher than a certain standard value. This means that, when the small region surrounded by its adjacent sub-regions exists, the consolidation can be made, even when a difference in average illuminance or a difference in average illuminance difference therebetween is large. This processing may be added between Step A 2  and Step A 3 . 
         [0054]    In Step S 6 , linear region consolidating processing of consolidating linear illuminance unevenness is performed. When a plurality of substances exist in the sample, the pseudo irregular region having the linear illuminance unevenness often emerges due to a difference in level or the like on the boundary between the substances, and therefore a plurality of linear sub-regions often emerge contiguously. For this reason, the aim of the linear region consolidating processing is the consolidation of these. Hereinafter, the linear region consolidating processing will be described in detail referring to a flowchart in  FIG. 4 . 
         [0055]    In the linear region consolidating processing, first, all the linear sub-regions, in which the degree of circularity obtained based on the consolidation information is equal to or lower than a threshold value C 3 , are searched (Step B 1 ). Subsequently, the combinations of two linear regions that are adjacent to each other and have the degree of deviation fij being equal to or lower than a threshold value C 4  are searched from among the linear regions searched in Step B 1  (Step B 2 ). A combination having the minimum degree of deviation fij is consolidation target, from among all the combinations obtained in Step B 2  (Step B 3 ). After the two linear regions are consolidated, as is the same with the small region consolidating processing, the consolidation information on the consolidated linear region (sub-region) is recalculated (Step B 4 ), and the processing in Steps B 1  to B 3  is performed again. The processing above is repeated until the combination of the linear regions is no longer searched in Steps B 1  and B 2 . 
         [0056]    It is noted that, in Step B 1 , the linear region may be extracted by use of a degree of linearity calculated based on Hesse matrix. Also, Step B 2  may employ the processing of searching a combination of the linear regions i and j of which the length of the boundary between the two adjacent linear regions is equal to or higher than a certain standard value. Also, the processing may be performed after the search of the combination of the two linear regions being equal to or lower than the threshold value C 4 . 
         [0057]    In Step S 7 , illuminance unevenness consolidating processing is performed. When the pseudo irregular region caused by unevenness such as illuminance unevenness and color unevenness emerges on the sample surface, the sub-regions excessively emerge. For this reason, in Step S 7 , the sub-regions divided by the unevenness are consolidated. The illuminance unevenness consolidating processing will be described in detail referring to  FIG. 5 . 
         [0058]    In the illuminance unevenness consolidating processing, first, a combination of two adjacent sub-regions having the relatively long length of the boundaries adjacent to each other and the degree of deviation f ij  being equal to or lower than a threshold value C 5  is searched (Step C 1 ). Subsequently, a combination of the two sub-regions i and j that satisfy the condition below is searched by use of the average illuminance and the standard deviation obtained based on each piece of consolidation information, among the combinations searched in Step C 1  (Step C 2 ). 
         [0000]      | R   i   −R   j |≦α×min( D   i   , D   j )
 
         [0000]    Herein, α represents a positive integer, and D i , and D j  respectively represent the standard deviation of the sub-regions i and j. The two sub-regions having the minimum degree of deviation f ij  are consolidated, from among the combinations obtained in Step C 2  (Step C 3 ). As described above, after the two sub-regions are consolidated, the consolidation information on the post-consolidation sub-region is recalculated (Step C 4 ), and the processing in Steps C 1  to C 3  is performed again. The processing above is repeated until the combination of the two sub-regions is no longer searched in Steps C 1  and C 2 . 
         [0059]    As described above, in the analysis target region setting apparatus in the present embodiment, the controller  11  can consolidate the pseudo irregular region having various patterns into the sub-regions in its periphery by changing the consolidation condition at a predetermined timing. It is noted that various conditions may be added to the consolidation condition in accordance with the types of the pseudo irregular region as long as the consolidation information on each sub-region is used. Also, any information may be added to the consolidation information as long as information obtained based on each sub-region is used. 
         [0060]    Hereinafter, effect given by the processing at each step relative to the observation image in  FIG. 6  is described. The image in  FIG. 6  shows a resin piece under transmissive observation. Also,  FIGS. 7 to 11  show images of which sub-regions obtained by each processing described later and classified by color are displayed. 
         [0061]      FIG. 7  is a diagram illustrating the result after the sub-region forming processing in Step S 4  is performed for the observation image in  FIG. 6 . As illustrated in the diagram, large amount of noises due to texture occur in only the processing in Step S 4 . 
         [0062]      FIG. 8  shows the result when the small region consolidating processing in Step S 5  is not performed (Steps S 6  and S 7  are performed). As illustrated in the diagram, when the small region consolidating processing is not performed, a large number of minute pseudo irregular regions remain. Also, the boundary line at a boundary section is unclear, which leads to a side effect such as the oversight of a streak on the horizontal line around the center. 
         [0063]      FIG. 9  shows the result when the linear region consolidating processing in Step S 6  is not performed (Steps S 5  and S 7  are performed). In  FIG. 9 , the linear regions are not consolidated, and therefore fine sub-regions that are not fully consolidated remain on the boundary or linear texture portions. 
         [0064]      FIG. 10  shows the result when the illuminance unevenness consolidating processing in Step S 7  is not performed (Steps S 5  and S 6  are performed). 
         [0065]      FIG. 11  shows the result when the entire processing in Steps S 1  to S 7  is performed. In view of the result in  FIG. 11 , it is noticeable that minute texture is consolidated into the surrounding sub-region, and a large number of sub-regions are not formed on the boundary or linear texture portions. 
         [0066]      FIG. 12  is a diagram illustrating aperture candidates, which are set by the controller  11  with respect to each sub-region obtained in  FIG. 11 , when analysis is made with the infrared microscope. In the infrared microscope in the present embodiment, a plurality of aperture sizes and inclinations that may be actually set are prepared, and these apertures are fitted for each sub-region for selection of an optimal aperture. 
         [0067]    It is noted that, in the present embodiment, when two apertures can be set based on the identical aperture size and angle in each region to determine whether or not each sub-region is appropriately divided, the two apertures can be set accordingly so as to compare the analytic results of the two apertures. Also, when the settings cannot be made in this way, only one aperture is set in each region. In the present embodiment, the apertures have been fitted with an aperture set in which squares or rectangles having an appropriate size are tilted in  16  directions. 
         [0068]      FIG. 13  is a flowchart illustrating another procedure of setting the analysis target region in the infrared microscope in the present embodiment. In the processing, maximum point extraction processing (Steps S 9  and S 10 ) is parallelly performed along with the region forming and consolidating processing (Steps S 2  to S 7 ), and the user selects which aperture to be used (Step S 12 ), from among the aperture candidates (Steps S 8  and S 11 ) obtained through the two processing described above. 
         [0069]    In Step S 9 , average and standard deviation calculating processing is performed. In this processing, the average value of local characteristics (the illuminance value in the present embodiment) and the standard deviation of the observation image are calculated, so as to calculate an a value. In the present embodiment, first, an image in which only an abnormal point is bright (or dark) is generated by cutting a low-frequency component to enhance the speed of the processing. 
         [0070]    Subsequently, “robust average and standard deviation calculating processing” is performed against an abnormal value (a value at the abnormal point). A general technique may be employed for “robust average and standard deviation calculating processing”, but, in the present embodiment, a normal average value and a standard deviation value inclusive of an abnormal value are calculated, and the processing of calculating the average value and the standard deviation value exclusive of the abnormal value is repeated in a range of ±1α from the average value thereafter. 
         [0071]    In Step S 10 , maximum point searching processing is performed. In this processing, a point, at which the α value obtained in Step S 9  is equal to or greater than a threshold value C 6  and reaches maximum when locally viewed, is searched. 
         [0072]    In the present embodiment, the threshold value C 6  is dynamically determined so as to search the maximum points in accordance with only the number of required apertures (that is, the threshold value C 6  is changed in a way that the number of maximum points searched in the maximum point searching processing reaches a predetermined number). 
         [0073]      FIG. 14  is a diagram illustrating that the aperture is set to each maximum point searched in Step S 10 . As illustrated in the diagram, a minute point that is likely to be removed as noise in the region forming and consolidating processing in Steps S 2  to S 7  is extracted in the maximum point extraction processing in Steps S 9  and S 10 . For this reason, the processing in Steps S 9  and S 10  can be performed as complementary processing for the region forming and consolidating processing in Steps S 2  to S 7 . 
         [0074]      FIG. 15A  is a diagram illustrating the aperture candidates set in Step S 8  after the region forming and consolidating processing in Steps S 2  to S 7 , and  FIG. 15B  is a diagram illustrating the aperture candidates set in Step S 11  after the maximum point extraction processing in Steps S 9  and S 10 . In the used observation image, the sub-region emerges in striped patterns, and the apertures can be appropriately set for the each of sub-regions by use of the region forming and consolidating processing. On the other hand, the apertures set after the maximum point extraction processing emerge only on the boundary portion of the observation image. As shown in  FIG. 15B , the region forming and consolidating processing is suitable for the sample in which the areas having a similar illuminance value relatively widely emerge. 
         [0075]      FIG. 16A  is a diagram illustrating the aperture candidates set after the region forming and consolidating processing in Steps S 2  to S 7 , and  FIG. 16B  is a diagram illustrating the aperture candidates set after the maximum point extraction processing in Steps S 9  and S 10 . In the used observation image, satin black spots emerge, but the apertures are set at portions exclusive of the black spots in the region forming and consolidating processing, and the apertures cannot be automatically set on the portions inclusive of the black spots. On the other hand, the aperture is set on each of the black spots in the maximum point extraction processing. The maximum point extraction processing is suitable for the satin sample described above. 
         [0076]    When the maximum point extraction processing cannot be appropriately performed, as illustrated in  FIG. 15B , the apertures are mainly set on the boundary portion. For this reason, when the apertures emerge side by side in a striped pattern, the controller  11  may determine that its result is inappropriate, and only the result obtained in the region forming and consolidating processing may be displayed on the display unit  13 . 
         [0077]    It is noted that the infrared microscope has been described in the embodiment, but the present invention can be applied to microspectroscopy apparatuses microscopic mass spectrometer, or the like other than the infrared microscope. 
       REFERENCE SIGNS LIST 
       [0000]    
       
           1  . . . Infrared Interferometer 
           2  . . . Movable Stage 
           3  . . . Sample 
           4  . . . Half Mirror 
           5  . . . Variable Aperture 
           6  . . . Reflective Mirror 
           7  . . . Infrared Detector 
           8  . . . Visible Light Source 
           9  . . . CCD Camera 
           10  . . . Data Processor 
       
     
         [0088]      100  . . . Fourier Transformation Calculator
     11  . . . Controller     12  . . . Input Unit     13  . . . Display Unit