WO2014088049A1 - Image generating apparatus and image generating method - Google Patents

Image generating apparatus and image generating method Download PDF

Info

Publication number
WO2014088049A1
WO2014088049A1 PCT/JP2013/082652 JP2013082652W WO2014088049A1 WO 2014088049 A1 WO2014088049 A1 WO 2014088049A1 JP 2013082652 W JP2013082652 W JP 2013082652W WO 2014088049 A1 WO2014088049 A1 WO 2014088049A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
viewpoint
edge
processing
images
Prior art date
Application number
PCT/JP2013/082652
Other languages
French (fr)
Inventor
Tomochika Murakami
Original Assignee
Canon Kabushiki Kaisha
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2013188641A external-priority patent/JP6362062B2/en
Priority claimed from JP2013204636A external-priority patent/JP2015057682A/en
Application filed by Canon Kabushiki Kaisha filed Critical Canon Kabushiki Kaisha
Priority to EP13811016.8A priority Critical patent/EP2929508A1/en
Priority to US14/649,181 priority patent/US9881373B2/en
Publication of WO2014088049A1 publication Critical patent/WO2014088049A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0012Biomedical image inspection
    • G06T7/0014Biomedical image inspection using an image reference approach
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B21/00Microscopes
    • G02B21/36Microscopes arranged for photographic purposes or projection purposes or digital imaging or video purposes including associated control and data processing arrangements
    • G02B21/365Control or image processing arrangements for digital or video microscopes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/21Indexing scheme for image data processing or generation, in general involving computational photography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10056Microscopic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10141Special mode during image acquisition
    • G06T2207/10148Varying focus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20221Image fusion; Image merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30024Cell structures in vitro; Tissue sections in vitro
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30004Biomedical image processing
    • G06T2207/30056Liver; Hepatic

Definitions

  • the present invention relates to an image generating apparatus and an image generating method for generating an image suitable for observation from an image obtained by imaging a subject.
  • pathological diagnostic image by a virtual slide system enables a conventional optical microscopic image of a test sample to be handled as digital data.
  • advantages such as expediting of remote diagnosis, explanation to patients using digital images, sharing of rare cases, and improved efficiency in teaching and learning can be achieved.
  • Non-Patent Literature 1 discloses a method of extracting cell membrane from a pathologic tissue sample image of a liver using digital image processing technology with an objective to calculate an N/C ratio (a ratio occupied by a nucleus relative to cytoplasm) which is an important finding for diagnosing cancer.
  • N/C ratio a ratio occupied by a nucleus relative to cytoplasm
  • color information of three types of observation images namely, a bright field observation image, a dark field observation image, and a phase difference observation image is combined to improve a correct extraction rate of cell membrane as compared to using only a bright-field observation image.
  • the boundary between a cell and a tube or a cavity is also information that is useful for accurately calculating an N/C ratio.
  • a pathologic tissue sample of a liver may be roughly divided into a region of a cell including a nucleus and cytoplasm and a region of sinusoids that are blood vessels for supplying substances to hepatocyte, the sinusoid region in which a cell does not exist must be correctly eliminated in order to calculate a correct N/C ratio.
  • Patent Literature 1 Japanese Patent Application Laid-open No. 2007-128009
  • Non-Patent Literature 1 Namiko Torizawa, Masan bu Takahashi, and Masayuki Nakano, "Using Multi-imaging
  • Non-Patent Literature 2 Kazuya Kodama, Akira Kubota, “Virtual Bokeh Reconstruction from a Single System of Lenses", The Journal of The Institute of Image Information and Television Engineers 65 (3), pp. 372-381, March 2011
  • Non-Patent Literature 3 Kazuya Kodama, Akira Kubota, "Scene Refocusing Based on Linear Coupling on a Frequency Region", Image Media Processing Symposium (IMPS 2012), 1-3.02, pp. 45-46, October 2012
  • Non-Patent Literature 4 Kazuya KODAMA, Akira KUBOTA, "Efficient Reconstruction of All-in-Focus Images Through Shifted Pinholes from Multi-Focus Images for Dense Light Field Synthesis and Rendering, IEEE Trans. Image Processing, Vol.22, Issue 11, 15pages (2013-11)
  • Non-Patent Literature 1 in order to acquire a bright field observation image, a dark field observation image, and a phase difference observation image, a phase difference objective lens and a common capacitor are mounted on a bright-field microscope and photography is performed by switching between the phase difference objective lens and the common capacitor. Therefore, there is a cost-related issue in that an optical microscope for bright-field observation requires additional parts and an issue of inconvenience in that photography requires optical systems and exposure conditions to be modified.
  • the present invention has been made in consideration of such problems, and an object thereof is to provide a novel technique for generating an image in which a boundary of a subject is clarified by image processing from an original image obtained by imaging the subject.
  • the present invention in its first aspect provides an image generating apparatus which generates an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject, the image generating apparatus comprising: a viewpoint image generating unit configured to generate a viewpoint image from the original image; and an edge processing unit configured to generate the edge image by applying edge processing to enhance or extract an edge with respect to the viewpoint image generated by the viewpoint image generating unit.
  • the present invention in its second aspect provides an image generating apparatus that generates a viewpoint image suitable for observation from an original image obtained by imaging a subject, the image generating apparatus comprising: a viewpoint determining unit configured to estimate a direction of an edge included in the original image by analyzing the original image, and to determine a viewpoint at which a viewpoint image is to be generated based on the estimated edge direction; and a viewpoint image generating unit configured to generate a viewpoint image from the original image with respect to the viewpoint determined by the viewpoint determining unit .
  • the present invention in its third aspect provides an image generating apparatus that generates a viewpoint image suitable for observation from an original image obtained by imaging a subject, the image generating apparatus comprising: a viewpoint determining unit configured to estimate a direction of an edge included in the original image by analyzing the original image, and to determine a plurality of viewpoints at which viewpoint images are to be generated, respectively, based on the estimated edge direction; a viewpoint image generating unit configured to generate a plurality of viewpoint images from the original image with respect to the plurality of viewpoints determined by the viewpoint determining unit; a selecting unit configured to cause a user to select two or more viewpoint images from the plurality of viewpoint images; and a compositing unit configured to composite the two or more viewpoint images selected by the user.
  • the present invention in its fourth aspect provides an image generating apparatus which generates an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject, the image generating apparatus comprising: a filter generating unit configured to generate a filter to perform edge enhancement or edge extraction in accordance with a line-of-sight direction with respect to the subject; and an edge processing unit configured to generate an edge image by using the original image and the filter.
  • the present invention in its fifth aspect provides an image generating method of generating an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject, the image generating method comprising the steps, executed by a computer, of: generating a viewpoint image from the original image; and generating an edge image by applying edge processing to enhance or extract an edge with respect to the generated viewpoint image.
  • the present invention in its sixth aspect provides an image generating method of generating a viewpoint image suitable for observation from an original image obtained by imaging a subject, the image generating method comprising the steps, executed by a computer, of: estimating a direction of an edge included in the original image by analyzing the original image and determining a viewpoint at which a viewpoint image is to be generated based on the estimated edge direction; and generating a viewpoint image from the original image with respect to the determined viewpoint.
  • the present invention in its seventh aspect provides an image generating method of generating a viewpoint image suitable for observation from an original image obtained by imaging a subject, the image generating method comprising the steps, executed by a computer, of: estimating a direction of an edge included in the original image by analyzing the original image and determining a plurality of viewpoints at which a. viewpoint image is to be generated based on the estimated edge direction; generating a plurality of viewpoint images from the ⁇ original image with respect to the plurality of determined viewpoints; causing a user to select two or more viewpoint images from the plurality of viewpoint images; and compositing the two or more viewpoint images selected by the user.
  • the present invention in its eighth aspect provides an image generating method of generating an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject, the image generating method comprising the steps, executed by a computer, of: generating a filter for performing edge enhancement or edge extraction in accordance with a line-of-sight direction with respect to the subject; and generating an edge image by using the original image and the filter.
  • the present invention in its ninth aspect provides a program that causes a computer to execute the respective steps of the image generating method according to the present invention .
  • an image in which a boundary of a subject is clarified can be generated by image processing from an original image obtained by imaging the subj ect .
  • FIG. 1 is a configuration diagram of an image generation and display system according to an embodiment of the present invention.
  • FIG. 2 shows a display example for explaining functions of an image display application
  • FIG. 3 is a diagram showing an internal configuration of an image generating apparatus
  • FIG. 4 is a diagram showing a prepared slide that is an example of a subject
  • FIG. 5 is a diagram schematically showing a configuration of an image pickup apparatus for imaging a subject
  • FIGS . 6A and 6B are schematic views for explaining a reason for contrast enhancement in a viewpoint image
  • FIGS. 7A and 7B are diagrams showing an example of a GUI of an edge extracting function according to Example 1;
  • FIG. 8 is a flow chart showing an overall flow of edge extraction processing according to Example 1.
  • FIG. 9 is a flow chart showing viewpoint-decomposed edge extraction/synthesis processing S802 according to Example 1;
  • FIGS. 10A to IOC are diagrams showing examples of GUIs for various settings of the edge extracting function according to Example 1;
  • FIGS. 11A to 11H are diagrams showing filters of a Prewitt template operator and edge detection directions
  • FIG. 12 is a flow chart showing viewpoint edge extraction processing S903 that is dependent on a line-of-sight direction;
  • FIG. 13 is a flow chart showing the viewpoint edge extraction processing S903 that is dependent on a
  • FIG. 14 is a flow chart showing a processing flow of N/C ratio calculation according to Example 1;
  • FIG. 15 is a flow chart showing the viewpoint- decomposed edge extraction/synthesis processing S802 according to Examples 3 and 4;
  • FIG. 16 is a flow chart showing viewpoint determination processing S1501 according to Examples 3 and 4;
  • FIG. 17 is a flow chart showing viewpoint selection processing S1602 according to Example 3.
  • FIG. 18 is a flow chart showing the viewpoint selection processing S1602 according to Example 4 ;
  • FIGS. 19A to 19D are schematic views showing
  • FIG. 20 is a diagram showing an example of a GUI of an automatic viewpoint image calculating function according to Example 5;
  • FIG. 21 is a schematic view showing unevenness existing on a surface of a pathological sample on a prepared slide
  • FIGS. 22 ⁇ to 22C are schematic views showing intensity of scattered light at an observation angle ⁇ on various planes shown in FIG. 21;
  • FIGS. 23A and 23B are schematic views showing a relationship between a polar angle of a viewpoint and an angle (observation angle) formed between a line-of-sight direction and an optical axis;
  • FIG. 24 is a schematic view of blur functions which are used in an unsharp mask and which vary depending on a viewpoint position;
  • FIG. 25 is a flow chart showing internal processing of the viewpoint edge extraction processing S903 according to Example 6;
  • FIGS. 26A to 26C are schematic views showing a three-dimensional blur model used in Example 7;
  • FIG. 27 is a flow chart showing the viewpoint- decomposed edge extraction/synthesis processing S802 according to Example 7 ;
  • FIG. 28 is a flow chart showing internal processing of viewpoint edge extraction processing S2702;
  • FIG. 29 is a flow chart showing internal processing of the viewpoint edge extraction processing S903 according to Example 7 ;
  • FIG. 30 is a flow chart showing the viewpoint- decomposed edge extraction/synthesis processing S802 according to Example 8 ;
  • FIG. 31 is a flow chart showing internal processing of step S3003 shown in FIG. 30.
  • FIG. 1 shows a configuration of an image generation and display system according to an embodiment of the present invention.
  • an input operation device 110 which accepts input from a user and a display 120 for presenting the user with images or the like outputted from the -image generating apparatus 100.
  • a keyboard 111, a mouse 112, a dedicated controller 113 (for example, a trackball or a touch pad) for improving operability of a user, and the like can be used as the input operation device 110.
  • a storage device 130 such as a hard disk drive, an optical disk drive, or a flash memory and another computer system 140 that is accessible via a network I/F are connected to the image generating apparatus 100.
  • FIG. 1 shows the storage device 130 existing outside of the image generating apparatus 100, the storage device 130 may alternatively be built into the image generating apparatus 100.
  • the image generating apparatus 100 acquires image data from the storage device 130 and applies image processing to the image data to generate an observation image suitable for observation or to extract information necessary for diagnosis.
  • An image display application and an image generation program are computer programs that are executed by the image generating apparatus 100. These programs are stored in an internal storage device (not shown) inside the image generating apparatus 100 or in the storage device 130. Functions related to image generation (to be described later) are provided by the image generation program. The respective functions of the image generation program can be invoked (used) via the image display application.
  • Processing results (for example, a generated observation image) of the image generation program are presented to the user via the image display application.
  • FIG. 2 shows an example of displaying image data of a specimen imaged in advance on the display 120 via the image display application.
  • FIG. 2 presents a basic configuration of a screen layout of the image display application.
  • an information area 202 that shows a display status and an operation status as well as information on various images
  • a thumbnail image 203 of a specimen that is an observation object Arranged within a full window 201 of a display screen are an information area 202 that shows a display status and an operation status as well as information on various images, a thumbnail image 203 of a specimen that is an observation object, a display region 205 for detailed observation of specimen image data, and a display magnification 206 of the display region 205.
  • a frame line 204 rendered on the thumbnail image 203 indicates a position and a size of a region displayed in enlargement in the display region 205 for detailed observation. Based on the thumbnail image 203 and the frame line 204, the user can readily comprehend which portion is being observed among the entire specimen image data.
  • An image displayed in the display region 205 for detailed observation can be set and updated by a movement operation or an enlargement/reduction operation performed using the input operation device 110.
  • movement can be realized by a drag operation of the mouse on the screen and enlargement/reduction can be realized by a rotation of a mouse wheel (for example, a forward rotation of the wheel may be assigned to enlargement and a backward rotation of the wheel may be assigned to reduction) .
  • switching to an image with a different focusing position can be realized by pressing a prescribed key (for example, the Ctrl key) and rotating the mouse wheel or the like at the same time (for example, a forward rotation of the wheel may be assigned to a transition to a deeper image and a backward rotation of the wheel may be assigned to a transition to a shallower image) .
  • the display region 205, the display magnification 206, and the frame line 204 inside the thumbnail image 203 are updated in accordance with a modification operation on the displayed image which is performed by the user as described above. In this manner, the user can observe an image with a desired intra-plane position, depth position, and magnification.
  • FIG. 3 is a diagram showing an internal configuration of the image generating apparatus 100.
  • a CPU 301 controls the entire image generating apparatus using programs and data stored in a main memory 302. In addition, the CPU 301 performs various arithmetic processing and data processing such as discrete Fourier transform, filter processing, and viewpoint image synthesis processing which will be described in the examples below.
  • the main memory 302 includes an area for temporarily storing programs and data loaded from the storage device 130 and programs and data downloaded from the other computer system 140 via a network I/F (interface) 304.
  • the main memory 302 includes a work area necessary for the CPU 301 to carry out various processing.
  • the input operation device 110 is constituted by a device capable of inputting various instructions to the CPU 301 such as the keyboard 102, the mouse 103, or the dedicated controller 113.
  • the user uses the input operation device 110 to input information for controlling operations of the image generating apparatus 100.
  • Reference numeral 305 denotes an I/O for notifying various instructions and the like inputted via the operation input device 110 to the CPU 301.
  • the storage device 130 is a large-capacity storage device such as a hard disk and stores an OS (operating system) , programs and image data which enable the CPU 301 to execute processing described in the following examples, and the like. Writing of information into the storage device 130 and reading of information from the storage device 130 are performed via an I/O 306.
  • OS operating system
  • a display control apparatus 307 performs control processing to cause images, characters, and the like to be displayed on the display 120.
  • the display 120 performs image display for prompting the user's input and displays images based on image data acquired from the storage device 130 or the other computer system 140 and processed by the CPU 301.
  • An arithmetic processing board 303 includes a processor in which specific arithmetic functions such as image processing have been enhanced and a buffer memory (not shown) . While the following description assumes that the CPU 301 is used for various arithmetic processing and data processing and the main memory 302 is used as a memory region, a configuration using the processor and the buffer memory in the arithmetic processing board can also be adopted. Such a configuration also falls within the scope of the present invention.
  • FIG. 4 represents a prepared slide (also referred to as a slide) of a pathological sample that is an example of a subject.
  • a specimen 400 placed on a slide glass 410 is sealed by an encapsulating agent (not shown) and a cover glass 411 to be placed on top of the encapsulating agent.
  • a size and thickness of the specimen 400 differ for each specimen.
  • a label area 412 that records information regarding the specimen is also provided on the slide glass 410. Information may be recorded in the label area 412 manually using a pen or by printing a barcode or a two-dimensional code.
  • a storage medium capable of storing information by an electric method, a magnetic method, or an optical method may be provided in the label area 412. The following embodiment will be described using an example in which the prepared slide of the pathological sample shown in FIG. 4 is used as a subject.
  • FIG. 5 schematically represents a part of a configuration of an image pickup apparatus which images the subject and acquires a digital image.
  • an x axis and a y axis are oriented parallel to a surface of the specimen 400 and a z axis is oriented in a depth direction of the specimen 400 (in an optical axis direction of an optical system) .
  • a prepared slide (the specimen 400) is placed on a stage 502 and light is irradiated from an illuminating unit 501.
  • Light transmitted through the specimen 400 is enlarged by an imaging optical system 503 and forms an image on a light-receiving surface of an image pickup sensor 504.
  • the image pickup sensor 504 is a one-dimensional line sensor or a two-dimensional area sensor having a plurality of photoelectric conversion elements.
  • An optical image of the specimen 400 is converted into an electric signal by the image pickup sensor 504 and outputted as digital data.
  • segmental image pickup is performed a plurality of times while moving the stage 502 in the x direction and/or the y direction and the plurality of obtained segmented images are composited (spliced) to generate an image of the entire specimen.
  • a plurality of images (referred to as layer images) with different focusing positions in the optical axis direction (a depth direction) are acquired.
  • a group of images made up of a plurality of layer images with different focusing positions in the optical axis direction (the depth direction) is referred to as a "Z stack image” or "Z stack image data”.
  • a layer image or a Z stack image acquired by imaging the subject will be referred to as an "original image”.
  • a value of magnification that is displayed as the display magnification 206 shown in FIG. 2 is a product of a magnification of the imaging optical system 503 multiplied by an enlargement/reduction ratio on the image display application. Moreover, the magnification of the imaging optical system 503 may be fixed or varied by replacing objective lenses .
  • the image generating apparatus 100 Instead of requiring an observation/image capturing method that modifies an optical system such as dark field observation and phase difference observation, the image generating apparatus 100 generates an intermediate image (a viewpoint image) from a Z stack image by image processing and generates an observation image suitable for observation and diagnosis using the intermediate image.
  • an intermediate image a viewpoint image
  • the image generating apparatus 100 uses image processing to generate an observation image suitable for observation and diagnosis using the intermediate image.
  • a viewpoint image observed from an arbitrary direction can be generated from a plurality of images (a Z stack image) imaged while varying focusing positions in the optical axis direction.
  • a viewpoint image refers to an image that observes the subject from a prescribed observation direction (in other words, a viewpoint) .
  • Patent Literature 1 discloses a method of generating an image with an arbitrary viewpoint or an arbitrary blur from a group of out-of-focus blurred images imaged while varying focusing positions. This method involves performing coordinate transform processing on a group of out-of-focus blurred images so that a three dimensional out-of-focus blur remains unchanged at an XYZ position and applying three-dimensional filter processing in an obtained orthogonal coordinate system (XYZ) in order to obtain an image with a modified viewpoint or a modified blur.
  • XYZ orthogonal coordinate system
  • Non-Patent Literature 2 discloses an improvement of the method disclosed in Patent Literature 1.
  • an integrated image is generated by obtaining a line-of-sight direction from a viewpoint and integrating a Z stack image in the line-of-sight direction, and an integrated image of a three-dimensional blur in the line-of-sight direction is generated in a similar manner.
  • an effect of a Z direction constraint (the number of layer images) is suppressed and a high-quality viewpoint image can be generated.
  • Non-Patent Literature 3 discloses a method of speeding up the calculation performed in Non-Patent Literature 2.
  • an arbitrary viewpoint image or an arbitrary blur image on a frequency region can be efficiently calculated by a linear coupling of a filter determined in advance independent of a subject (scene) and a Fourier transform image of a group of out-of-focus blurred images at each Z position.
  • An image pickup apparatus which is capable of acquiring, by one imaging operation, an image on which is recorded four-dimensional information (information in which a degree of freedom of a viewpoint position is added to an XY two-dimensional image) that is referred to as a light field.
  • Such an image pickup apparatus is referred to as a light field camera or a light field microscope.
  • a lens array is disposed at an original position of an imaging plane and a light field is taken by an image sensor to the rear of the lens array.
  • An image with an arbitrary focusing position or a viewpoint image observed from an arbitrary direction can also be generated using known techniques from an original image on which a light field is recorded.
  • an image with an arbitrary observation direction that is generated by digital image processing from a captured image such as a Z stack image or a light field without physically changing a direction of the image pickup apparatus with respect to the subject will be referred to as a "viewpoint image".
  • the viewpoint image is an image which simulates an image formed on an imaging plane by a luminous flux centered on a main light beam that is an arbitrary light beam passing through an imaging optical system used to image the subject.
  • a direction of the main light beam corresponds to the observation direction.
  • the direction of the main light beam can be arbitrarily set.
  • a magnitude (NA) of the luminous flux can also be arbitrarily set.
  • NA of the luminous flux with respect to the viewpoint image is desirably equal to or less than 0.1.
  • a viewpoint image generated (calculated) by digital image processing is not necessarily consistent with an image photographed by physically changing exposure conditions (an aperture position and/or an aperture size) , the optical axis direction, lenses, or the like of the imaging optical system.
  • the viewpoint image is useful for image observation, image diagnosis, and the like. Therefore, an image which is not exactly consistent with an image actually photographed by changing observation directions and the like but which is subjected to digital image processing so that features similar to an actually photographed.
  • photographed image appear is also included in viewpoint images according to the present example.
  • Patent Literature 1 a viewpoint image observed through a pinhole at a position shifted by a viewpoint
  • (x. ,y, z) (s, t, 0) from an origin 0.
  • an observation direction from which the subject is observed or, in other words, a line-of-sight direction can be varied by changing a position of a viewpoint on the lens plane.
  • a line-of-sight direction can be defined as a gradient of a straight line that passes through a viewpoint position
  • a line-of-sight direction can be expressed in various ways. For example, an expression by a three-dimensional vector representing a traveling direction of the straight line may be adopted. Alternatively, an expression by an angle (observation angle) formed between the three-dimensional vector and an optical axis and an angle (polar angle) formed between the vector when projected on a plane perpendicular to the optical axis and the X axis may be adopted.
  • the straight line represented by Expression 1 may be represented by the following expression in the orthogonal coordinate system (XYZ) after coordinate transform.
  • a dotted-line circle shown in FIG. 23A represents a range in which light beams can pass through on the lens plane
  • ⁇ s adjusted to stay within a range of -180 to +180 degrees in accordance with signs of t and s.
  • the observation angle ⁇ ⁇ on the transformed coordinate is defined as an angle formed between the viewpoint (-s, -t, 1) and the optical axis (Z axis)
  • the viewpoint is not dependent on a position of the subject as is apparent from FIG. 23B
  • the observation angle ⁇ ⁇ may be obtained by the following expression.
  • ⁇ ⁇ tan _, (V j2 + f 2 )
  • the two dotted lines in FIG. 23B represent light beams that pass through outermost edges on the lens plane.
  • a viewpoint position is calculated in the present example based on a three-dimensional imaging relationship between a sample and a three-dimensional out-of-focus blur in the sample, an effect of the refractive index of the sample need not be considered and the polar angle ⁇ and the observation angle ⁇ represent an observation direction in the sample without modification .
  • the imaging optical system is bilaterally
  • the observation angle ⁇ may be represented by the following expression using the sensor pixel pitch ⁇ in the x direction and a movement interval ⁇ ( ⁇ ) in the z direction.
  • the observation angle ⁇ may be obtained using a sensor pixel pitch ⁇ in the X direction and a movement interval ⁇ in the Z direction in the orthogonal coordinate system ( XYZ ) in place of ⁇ and ⁇ in Expression 5.
  • viewpoint position (s, t) is to represent a position on a perspective coordinate system (a real space prior to coordinate transform) and other positions are to represent positions in the orthogonal coordinate system (XYZ).
  • a viewpoint image calculated by the method according to Patent Literature 1 has a significantly deep (infinite) depth of field and boundaries between substances in the sample with different transmittance can be clearly seen.
  • FIG. 6A is a diagram showing a three-dimensional blur of an optical system in the orthogonal coordinate system (XYZ) .
  • Reference numeral 600 represents a shape of the
  • FIG. 6B shows a situation where a pathological sample (specimen) in the orthogonal coordinate system (XYZ) is seen from a different direction.
  • a diagonal cavity 630 exists inside a sample 620 in FIG. 6B.
  • edge extraction an operation for extracting only an image of an edge portion or information on the edge portion from an image
  • edge enhancement an operation for improving identiflability of an image of an edge portion or information on the edge portion in an image
  • edge processing will be used as a term encompassing both edge extraction and edge enhancement and an image representing an edge that is extracted or enhanced by edge processing will be referred to as an edge image.
  • FIGS. 7A and 7B show examples of setting screens of an edge extracting function according to Example 1.
  • an item named "viewpoint-decomposed edge extraction" (not shown) is selected from an extensions menu 208 that is displayed by a right click of the mouse.
  • a new window 700 (FIG. 7A) showing images before and after the edge extraction processing and an edge extraction processing setting screen 703 (FIG. 7B) are displayed.
  • the image in the region 207 is displayed in a left-side region 701 of the window 700 and an image resulting from the edge extraction processing is displayed in a right-side region 702 of the window 700.
  • the setting screen 703 is operated when modifying settings of the edge extracting function.
  • a viewpoint decomposition setting button 704 When the user presses a viewpoint decomposition setting button 704 with the mouse, a setting screen for determining a direction (a three-dimensional observation direction) of the viewpoint image used for edge extraction is displayed. Moreover, there may be one or a plurality of viewpoints. Details will be given later.
  • a viewpoint edge extraction setting button 705 When the user presses a viewpoint edge extraction setting button 705, a viewpoint edge extraction setting screen for setting a method or parameters for extracting an edge from a viewpoint image is displayed. Various methods can be selected as a method of extracting an edge. Details of these methods will be given later.
  • a viewpoint edge synthesis setting button 706 When the user presses a viewpoint edge synthesis setting button 706, a setting screen for generating an image (hereinafter, referred to as a viewpoint edge synthesized image) which synthesizes images
  • viewpoint edge extracted images representing an edge extracted from the viewpoint image
  • setting of weighting on each viewpoint edge extracted image is configured.
  • setting of a noise elimination parameter and the like after synthesizing the viewpoint edge extracted images can be optionally configured. Details will be given later.
  • An overlaid display 707 is a check box. By enabling this setting, the image in the selection region 207 and an edge extracted image are displayed overlaid on each other in the right-side region 702.
  • Reference numeral 710 denotes an extensions menu that can be called by right-clicking inside the window 700. Items for image analysis such as N/C ratio calculation. (not shown) are lined up in the extensions menu 710. By selecting an item, an image analysis processing setting screen (not shown) is displayed, analysis processing is executed on a selection region in the window or on the entire window and a processing result is displayed. Details will be given later.
  • FIG. 8 shows a flow of edge extraction processing that is executed when the execute button 708 described above is pressed. This processing is realized by the image display application and the image generation program that is invoked from the image display application.
  • a Z stack image acquiring step S801 based on coordinates Of the image selection region 207 displayed by the image display application, data of a necessary range is acquired from a Z stack image stored in the main memory 302 or the storage device 130. Alternatively, when the Z stack image exists in the other computer system 140, data is acquired through the network I/F 304 and stored in the main memory 302.
  • viewpoint-decomposed edge extraction/synthesis processing step S802 based on information on a viewpoint which determines a line-of-sight direction with respect to the subject (an observation direction) , viewpoint images corresponding to a plurality of viewpoints are generated from the Z stack image (this operation is also referred to as a decomposition into viewpoint images) .
  • this operation is also referred to as a decomposition into viewpoint images.
  • an edge is extracted from each viewpoint image to generate a viewpoint edge extracted image, and the viewpoint edge extracted images are synthesized to generate a viewpoint edge synthesized image. Details will be given later.
  • a contour extracted image which represents a contour extracted from the viewpoint edge synthesized image is generated. It should be noted that the processing of step S803 is not essential and whether or not to apply the processing of step S803 can be modified according to settings (not shown) . Details will be given later.
  • the contour extracted image, the viewpoint edge extracted image, or the viewpoint edge synthesized image is displayed overlaid on the image in the selection region 207. In doing so, an image to which the viewpoint edge extracted image or the viewpoint edge synthesized image of a
  • the contour extracted image, the viewpoint edge extracted image, or the viewpoint edge synthesized image may be displayed in a different color for each channel (RGB) or may be changed to another color that differs from the color of the sample.
  • the images used for display in this case are all observation images suitable for image observation and image diagnosis.
  • FIG. 9 is a flow chart showing internal processing of the viewpoint-decomposed edge extraction/synthesis processing S802.
  • a viewpoint acquisition processing step S901 positional information of a viewpoint necessary for generating a viewpoint image in a subsequent step S902 is acquired.
  • positional information of a viewpoint determined in advance may be acquired from the main memory 302, the storage device 130, or the other computer system 140.
  • positional information of a viewpoint may be obtained by calculation based on information set on the image display application. Details will be given later.
  • a viewpoint image corresponding to the viewpoint obtained in step S901 is generated based on the Z stack image of the selection region 207 acquired in step S801.
  • any method including the methods according to Patent Literature 1 and Non-Patent Literature 2, 3 and 4 may be used.
  • edge extraction processing is performed on the generated viewpoint image based on the viewpoint edge extraction setting (705) .
  • viewpoint edge extraction processing is executed for each of the viewpoints. Details will be given later.
  • a viewpoint edge synthesized image generating step S904 based on the viewpoint edge synthesis setting (706) , the plurality of viewpoint edge extracted images generated in step S903 are composited to generate a viewpoint edge synthesized image. Details will be given later .
  • a viewpoint decomposition setting screen 1001 shown in FIG. 10A is an example of a setting screen that is displayed when the viewpoint decomposition setting button 704 is pressed. In this case, a viewpoint position of a viewpoint image used for edge extraction is set.
  • the setting screen 1001 offers two options as viewpoint setting methods: direct setting and mesh setting.
  • direct setting the number of viewpoints and a viewpoint position (s, t) are directly specified by the user.
  • mesh setting an outer diameter, an inner diameter (center shielded) , and a discretizing step are specified by the user, and a position of each viewpoint is calculated from the specified values.
  • a maximum deviation of a calculated viewpoint is specified for "outer diameter” and a minimum deviation of a calculated viewpoint (in other words, a maximum deviation of a viewpoint not calculated) is specified for “inner diameter (center shielded) ".
  • values of the outer diameter and the inner diameter (center shielded) are set according to distances (radii) centered on an origin on the lens plane.
  • a value exceeding a radius ra of the optical system on the lens plane cannot be set as the outer diameter.
  • Discretizing step is an increment interval for discretely setting positions of viewpoints for which viewpoint images are generated within a donut-shaped region created by subtracting a circle defined by the "inner diameter” from a circle defined by the “outer diameter”. The finer the discretizing step, the larger the number of viewpoints to be calculated.
  • various shapes can be set in addition to the circles described above.
  • a plurality of concentric circles with different radii or straight lines radially extending from a center can be set.
  • a discretizing step for example, an angular interval setting
  • a discretizing step that determines a radius of each circle or a density of viewpoints on each circle can be set.
  • a discretizing step that determines an interval of lines (for example, an angular interval setting) or a density of viewpoints on the radial lines can be set.
  • a viewpoint edge extraction setting screen 1002 shown in FIG. 10B is an example of a setting screen that is displayed when the viewpoint edge extraction setting button 705 is pressed. In this case, an edge extracting method or parameters used when performing edge extraction from a viewpoint image are set.
  • a method field in the setting screen 1002 enables selection of an edge extracting method to be applied to a viewpoint image.
  • edge extracting filters include primary differential filters such as a Sobel filter and a Prewitt filter and secondary differential filters such as a Laplacian filter and a LOG (Laplacian Of Gaussian) filter that is a derived form of a Laplacian filter.
  • Another example of an edge extracting filter is a high-pass filter and a bandpass filter which operate on a Fourier frequency.
  • another method of edge extraction involves subjecting an image to a Fourier transform and performing an inverse Fourier transform after normalizing an amplitude spectrum to 1 in order to obtain a Fourier phase image with enhanced shape information.
  • a zero cross detecting method in which a position where a secondary differentiation becomes zero and Prewitt template matching which detects an edge using an array with directionality can also be applied.
  • edge extraction by a Gabor filter that is used in facial recognition or fingerprint recognition or a Canny Edge Detector that is often used in the field of computer vision can also be applied.
  • a bilateral filter that is a noise eliminating method eliminates noise while retaining an edge. Since a difference between an edge and a flat region is enhanced by repetitively applying a bilateral filter, this method can also be used as an edge extracting method.
  • edge extraction can also be carried out by combining the methods described above.
  • edge extraction processing applied to a viewpoint image.
  • edge extraction processing without linearity in other words, non-linear edge extraction processing. A reason therefor will be described below.
  • linearity refers to a function f (x) having the following properties.
  • edge extraction processing can be regarded as a function with respect to an image, the linearity of the edge extraction processing can be defined in the same way.
  • edge extraction processing is denoted by h and an i-th viewpoint image is denoted by Ii, when the edge extraction processing has linearity
  • This expression shows that a viewpoint edge synthesized image ⁇ h(Ii) resulting from the synthesis of a viewpoint edge extracted image h(Ii) obtained from each viewpoint image Ii is equivalent to an edge extraction processing result h ( ⁇ Ii) with respect to a viewpoint composite image ⁇ Ii.
  • edge extraction processing without linearity means that a result h ( ⁇ Ii) of edge extraction processing performed on a composite image ⁇ Ii that has been composited from a plurality of images Ii and a result ⁇ h(Ii) of compositing the respective images Ii after being subjected to the edge extraction processing are not consistent with each other .
  • edge extraction processing with linearity causes an edge extraction effect at each viewpoint image to cancel each other when synthesizing the viewpoint edge extracted images and the edge extraction effect weakens as a whole. For this reason, edge extraction processing with nonlinearity is desirably used to ensure that the edge extraction effects do not cancel each other due to synthesis.
  • nonlinearity of edge extraction processing is satisfied by using a nonlinear filter.
  • nonlinearity can be achieved by subjecting outputs of the filter (edge extraction results) to processing (for example, an absolute value, a squared value, and binarization) and then synthesizing the processing outputs.
  • processing for example, an absolute value, a squared value, and binarization
  • a gradient magnitude g(i, j) is obtained.
  • calculation formulas of the gradient include the following. All of the calculation formulas realize nonlinearity while using a linear filter.
  • fx I(i + 1, j) - I (i - 1, j)
  • fy I(i, j + 1) - I(i, j - 1)
  • max ( ) denotes a function for obtaining a maximum value from arguments in parentheses.
  • parameters of the applied edge extraction processing are favorably modified in accordance with a line-of-sight direction of a viewpoint . image.
  • a viewpoint image a contrast of a structure in a direction similar to the line-of-sight direction becomes clearer than in an original image and a contrast of structures in other directions are unlikely to become clearer.
  • edge extraction or edge enhancement can be performed in an efficient (effective) manner.
  • a coefficient of a filter may be adaptively modified in accordance with a line-of-sight direction so that the line-of-sight direction and an edge detection direction are consistent with each other.
  • FIGS. 11A to 11H show examples of a 3 ⁇ 3 template used in Prewitt template matching. Arrows described below the 3 x 3 templates indicate edge detection directions. An edge detection direction can be controlled by varying an array of nine coefficients that make up a filter. When using these filters, an edge detection direction indicated by an arrow may be conformed to the line-of-sight direction in the XY plane.
  • a two-dimensional Gabor filter can be used as a filter for detecting an edge that is perpendicular to the line-of-sight direction.
  • a two-dimensional Gabor filter is a filter expressed as a product of a Gaussian function and a cos function and is represented by the expression below. [Expression 9]
  • denotes a wavelength component of the cos function part
  • denotes a phase offset of the cos function part
  • denotes a direction of a striped pattern of the function
  • denotes a variance of the Gaussian function part
  • denotes an aspect ratio of the Gaussian function part.
  • an edge extracting effect can be further improved by creating a filter that conforms to a line-of-sight direction of the viewpoint image to be generated.
  • FIG. 12 is a flow chart showing internal processing of the viewpoint edge extraction processing S903 that is dependent on a line-of-sight direction. As shown in FIG. 9, the processing shown in FIG. 12 is repetitively executed for all viewpoints.
  • a viewpoint polar angle calculating step S1201 a polar angle of a viewpoint that is a processing object is calculated. As shown in FIG. 23A, if a position of a prescribed viewpoint is denoted by (s p , t p ) , then a polar angle ⁇ of the viewpoint can be calculated by.
  • the polar angle is adjusted to stay within a range of -180 to +180 degrees in accordance with signs of s and t.
  • a radius r p of the viewpoint can be calculated by [Ex 11]
  • the position (s p , t p ) of the viewpoint can be expressed using the polar angle ⁇ and the radius r p as
  • O p / p O cos0 p ,r p si # p ) .
  • step S1202 a filter is read out or generated based on the polar angle of the viewpoint calculated in step S1201.
  • a two-dimensional Gabor filter can also be used as an edge extracting filter, and by setting the polar angle of the viewpoint as Q, a filter whose coefficients vary along an arbitrary line-of-sight direction can be generated.
  • ⁇ and ⁇ of the two-dimensional Gabor filter may be default values based on a pixel pitch and magnification or may be values corresponding to the radius of a viewpoint.
  • ⁇ and ⁇ may be varied based on features of the subject or the like.
  • a filter processing step S1203 filter processing is performed on the viewpoint image using the filter read out or generated in step S1202 to extract an edge.
  • FIG. 13 shows an example of a flow chart of internal processing of viewpoint edge extraction processing that is dependent on a line-of-sight direction when edge extraction is performed from multiple directions for each viewpoint image.
  • the processing shown in FIG. 13 is repetitively executed for each viewpoint in a similar manner to the processing shown in FIG. 12.
  • a viewpoint polar angle calculating step S1301 a polar angle of a viewpoint that is a processing object is calculated in a similar manner to step S1201.
  • step S1302 a variable Al that stores a sum of an intensity variable magnification of each filter direction and a two-dimensional buffer Bl that stores viewpoint edge extracted images are respectively initialized to zero.
  • a first filter among filters that are repetitively applied to each individual viewpoint image is read out or generated.
  • a filter set first for example, FIG. 11A
  • N-number for example, 16
  • a first angle ⁇ is set and a two-dimensional Gabor filter is read out or generated.
  • a filter processing step S1304 filter processing is performed on the viewpoint image that is a processing object using the filter read out or generated in step S1303 or step S1309.
  • a determination of whether or not a difference in angles is within a prescribed range is made in order to determine whether or not an edge detection direction of a present filter is closer to the polar angle of the viewpoint than an edge detection direction of an adjacent filter.
  • the prescribed range is -22.5 degrees or more and less than 22.5 degrees.
  • an enhancement processing step S1306 a pixel value of an image that is the filter processing result obtained in the filter processing step S1304 is enhanced by a factor of M. For example, when using the eight filters depicted in FIGS. 11A to 11H, if the polar angle of the viewpoint is 0 degrees, a direction of a filter is also 0 degrees, and the angles are consistent with each other, the pixel value of an image that is the filter processing result is multiplied by M.
  • a result of edge extraction (depending on conditions, intensity is further multiplied by M) performed on a viewpoint image is added to the two-dimensional buffer Bl .
  • step S1308 a determination is made on whether or not all filters have been applied to the viewpoint image that is a processing object. If false, a transition is made to step S1309 to read out or generate a next filter, and a transition is made to the filter processing step S1304. If true, a transition is made to a normalization processing step S1310.
  • a value of each pixel of the two-dimensional buffer Bl is divided by the value of the variable Al . Due to the processing described above, even when multiple filters are applied to one viewpoint image, viewpoint edge extraction processing in which linearity is not satisfied can be realized.
  • nonlinearity may be achieved by obtaining an absolute value or a square value of the filter processing result.
  • an effect of the edge extraction processing can be improved by making a transition to the enhancement processing step S1306 and enhancing the processing result.
  • nonlinearity can be realized by collecting processing results of linear filters applied from a plurality of directions in a similar manner to a Sobel filter or a Prewitt filter, and obtaining a square root of a sum of square values, a sum of absolute values, a maximum value of absolute values, or the like of the processing results as a final filtering result.
  • the viewpoint edge extraction processing may be performed on a Fourier transform.
  • filter processing takes less time on a Fourier transform.
  • an inverse Fourier transform need not be performed after the processing and an inverse transform may be performed during subsequent generation of a viewpoint edge synthesized image.
  • a noise elimination setting can be configured on the viewpoint edge extraction setting screen 1002.
  • Binarization by a threshold, a median filter, a bilateral filter which enables noise elimination while retaining an edge, or the like can be applied as the noise elimination setting. Due to this processing, an edge with clearer contrast can be extracted and an N/C ratio can be more readily detected.
  • a viewpoint edge synthesis setting screen 1003 shown in FIG. IOC is an example of a setting screen that is displayed when the viewpoint edge synthesis setting button 706 is pressed. At this point, a compositing method used when synthesizing viewpoint edge extracted images is set.
  • the setting screen 1003 has a list box for selecting a compositing method to be used when synthesizing the respective edge extracted images.
  • Various compositing methods such as "equal”, “Gaussian blur”, and "select/composite maximum value" can be selected.
  • “equal” represents a method of compositing the respective edge extracted images using equal weighting
  • “Gaussian blur” represents a method using weighting obtained by a Gaussian function in accordance with a distance from an origin (on the optical axis) of each viewpoint.
  • select/composite maximum value represents a method of creating a composite image with a same size as the respective edge extracted images by comparing pixel values at a same position on the respective edge extracted images and selecting a maximum pixel value.
  • a plurality of viewpoint edge extracted images are synthesized to generate a viewpoint edge synthesized image.
  • the synthesis is performed on a Fourier transform and an inverse Fourier transform is subsequently performed. Since linearity is satisfied in a Fourier transform, a spatial synthesis and a synthesis on a frequency followed by an inverse transform produce the same result.
  • noise elimination may be performed in order to eliminate noise included in edge extracted images in a similar manner to the viewpoint edge extraction processing step S903.
  • a noise elimination setting is configured on the setting screen 1003.
  • FIGS.. 10A to IOC merely represent examples.
  • a function for configuring default settings or a function that automatically sets optimum values is desirably provided so that a pathologist who is the user can promptly make observations and diagnoses without being hassled by settings.
  • the viewpoint edge synthesized image also contains high and low levels of noise and signals.
  • contour extraction processing is performed to make a contour more visible.
  • a contour can be extracted by binarizing a viewpoint edge synthesized image (a value determined in advance may be used as a binarization threshold or a binarization threshold may be dynamically determined) and subsequently repeating expansion/contraction processing.
  • other contour extracting methods include various known techniques and, in this case, any method can be used.
  • by adding a line thinning process accuracy of positions where a contour exists can be improved.
  • a contour extracted image is obtained from the viewpoint edge synthesized image.
  • the image display processing S804 by displaying the viewpoint edge extracted image, the viewpoint edge synthesized image, or the contour extracted image on the image display application, a cell boundary between cells, a boundary between a cell and a sinusoid, and the like can be made more distinguishable. Accordingly, the
  • pathologist can more easily visualize a three-dimensional structure of an affected tissue.
  • FIG. 14 shows an example of a processing flow of N/C ratio calculation.
  • N/C ratio calculation is premised on the use of two images, namely, an image in the selection region 207 in the left-side region 701 and a contour extracted image.
  • a portion of a nucleus in an image is referred to as a nucleus region
  • a portion of cytoplasm surrounding the nucleus is referred to as a cytoplasm region
  • a combined whole of the nucleus region and the cytoplasm region is referred to as a cell region.
  • a nucleus region is determined.
  • methods thereof include the following method. With HE staining, since the inside of a nucleus is stained deep blue, whether or not a region is a nucleus region can be determined based on whether or not pixels in the selection region 207 positioned inside a corresponding closed region in the contour extracted image belong in a prescribed color gamut range at a certain ratio or more. The ratio and the color gamut used for the determination may be learned in advance using a plurality of samples.
  • a cytoplasm region is determined.
  • a cytoplasm is stained in pink. Therefore, in a similar manner to the nucleus region determination processing, whether or not a region is a cell region can be determined based on whether or not pixels in the selection region 207 positioned inside a corresponding closed region in the contour extracted image belong in a prescribed color gamut range at a certain ratio or more.
  • a cytoplasm region is identified by subtracting a closed region that is assumed to be a nucleus region in step S1401 from the cell region. The ratio and the color gamut used for this determination may also be learned in advance using a plurality of samples.
  • a region may be determined with an intervention (assistance) by the user.
  • a setting screen that enables the user to correct a contour, a nucleus region, or a cell region is displayed on the GUI.
  • an area of the nucleus region is divided by an area of the cytoplasm region obtained above to calculate an N/C ratio.
  • N/C ratio calculation flow described above is merely an example and various modification and improvements can be made thereto.
  • a diagnosis supporting function which includes presenting images useful for diagnosis and calculating an N/C ratio can be realized.
  • processing may be executed every time the setting parameters shown in FIG.7B and FIGS.10A to IOC are modified. As a result, processing results are to be displayed in real-time in synchronization with modifications made to the setting parameters.
  • the setting items shown in FIG. 7B and FIGS. 10A to IOC may be deployed and arranged in a single setting screen.
  • Example 1 describes the extraction of an edge from a viewpoint image
  • Example 2 describes a method of generating an image with an enhanced edge from a viewpoint image.
  • An edge enhancing method used in the viewpoint edge enhancement processing S903 shown in FIG. 9 can be set on a viewpoint edge enhancement setting screen 1002 shown in FIG. 10B.
  • Examples of edge enhancing methods that can be selected include an unsharp mask.
  • An unsharp mask is a type of an image sharpening method and realizes sharpening by subtracting an image that is a blurred original image from the original image and adding the difference image subjected to threshold processing and enhancement processing to the original image.
  • An image U (X, Y) resulting from applying an unsharp mask to an original image I (X, Y) can be represented by the following expression. [Expression 13]
  • I (X, Y) denotes the original image
  • D (X, Y) denotes a difference image
  • Amount denotes an adaptation amount of the difference image to the original image.
  • the difference image D (X, Y) may be calculated by the following expression.
  • the difference image D (X, Y) is an image resulting from a subtraction of a blur image obtained by convolving a Gaussian function G (X, Y) into the original image I (X, Y) from the original image I (X, Y) (** is assumed to be a symbol representing a two-dimensional convolutional operation) .
  • the Gaussian function G (X, Y) can be represented by the following expression.
  • an unsharp mask enables an amount of modification of the original image I (X, Y) to be controlled by adjusting a standard deviation ⁇ of a Gaussian function, an adaptation amount Amount of a difference image, and a threshold Threshold, and an image with an enhanced edge can be generated.
  • an unsharp mask is applied for each viewpoint image to generate an image with an enhanced edge.
  • Appropriately setting the threshold Threshold enables an edge portion with high contrast to be further enhanced while leaving portions with relatively low contrast unmodified. As a result, an effect that cannot be realized by enhancement processing on an image at a focusing position can be produced.
  • viewpoint edge synthesized image generating step S904 shown in FIG. 9 viewpoint edge enhanced images of the respective viewpoints are synthesized and outputted.
  • a compositing method to be used when synthesizing the viewpoint edge extracted images can be selected in a similar manner to Example 1.
  • the viewpoint edge synthesized image is more easily observed (less unnatural) when an appearance of portions other than the edge portion resembles that of an image at a focusing position.
  • a weighting setting that approximates a three-dimensional blur of an original optical system such as a Gaussian blur may be selected on the viewpoint edge synthesis setting screen 1003.
  • the generated viewpoint edge synthesized image is displayed in the right-side region 702 of the window 700 in the image display processing step S804 shown in FIG. 8.
  • edge enhancement using an unsharp mask has been described in the present example, other methods may be used as long as an edge in a viewpoint image can be selectively enhanced.
  • an original image may be blurred using a blur function other than Gaussian blur to obtain a difference image .
  • the blur function a nonlinear function or a function that varies depending on a viewpoint may be used in a similar manner to Example 1.
  • the adaptation amount Amount of a difference image or the threshold Threshold with respect to the difference image may be varied depending on an image.
  • an effect of improving a calculation accuracy of a quantitative evaluation value such as an N/C ratio can be achieved in a similar manner to Example 1.
  • an easily observable sample image in which a cell membrane, a cell boundary, and a boundary between a cell and a -tube or a cavity are enhanced can be generated without performing imaging that involves switching among optical systems or modifying photographic conditions such as exposure.
  • an effect of improving diagnostic efficiency of a doctor can be achieved.
  • Examples 1 and 2 above a method has been described in which the user sets a position of a viewpoint to be calculated during viewpoint decomposition setting (refer to FIG. 10A) .
  • a viewpoint at which an edge is more readily extracted can be determined.
  • a direction of an edge included in an original image is estimated by analyzing a Z stack image, and a viewpoint for which a viewpoint image is to be generated is determined based on the estimated edge direction. Accordingly, edge extraction or edge enhancement can be performed more effectively and a reduction in calculation load by reducing the number of viewpoint images to be calculated can be expected.
  • FIG. 15 shows a flow chart of viewpoint-decomposed edge extraction/synthesis processing (S802 in FIG. 8) according to the present example.
  • a viewpoint determination processing step S1501 the Z stack image acquired in the Z stack image acquiring step S801 shown in FIG. 8 is analyzed to determine a viewpoint suitable for observation. Since processing of a viewpoint image generation step S1502 and thereafter are similar to the processing with the same names shown in FIG. 9, a description thereof will be omitted.
  • FIG. 16 is a flow chart showing internal processing of the viewpoint determination processing step S1501.
  • a representative image is acquired from the Z stack image.
  • a viewpoint selection processing step S1602 a direction of an edge in an image to be extracted or enhanced which exists in the representative image is estimated (detected) and a position of a viewpoint suitable for observation is selected based on the estimated (detected) edge direction .
  • a representative image refers to a single image which represents a feature of the Z stack image and which is used for obtaining an edge of an image to be extracted or enhanced with a smaller calculation load.
  • Examples of a representative image include an image in which the subject is most in focus among the plurality of layer images that constitute the Z stack image, an all-in-focus image generated from the plurality of layer images, and reduced images of such images.
  • Methods of selecting an image in which the subject is most in focus include a method involving applying processing involving calculating a dispersion of pixel values in a prescribed rectangular region at each pixel on an entire image for each of the layer images and selecting an image having a maximum sum of dispersions over the entire image.
  • generation of an all-in-focus image can be realized by generating a viewpoint image in which a line-of-sight direction is conformed to an optical axis direction using the method according to Patent Literature 1.
  • various known techniques can be applied including a select and merge method in which pixels with large variations in pixel value in a depth direction are selected from a Z stack image and merged.
  • the reduced image when a reduced image already exists in a format in which a Z stack image is stored, the reduced image may be used as the representative image.
  • the Z stack images when each of the Z stack images is compression-encoded by JPEG2000, each of the Z stack images has already been subjected to a discrete wavelet transform. Therefore, by acquiring a low-frequency image component of the discrete wavelet transform and generating an image, the calculation load for generating a representative image can be reduced.
  • FIG. 17 is a flow chart showing internal processing of the viewpoint selection processing step S1602 according to the present example.
  • an edge is detected from an original image using an edge detecting method such as a Hough transform, a direction of the edge is obtained from the detection result, and information on the edge direction is used to determine a viewpoint.
  • an edge detecting method such as a Hough transform
  • a binarization processing step S1701 binarization processing is performed on the representative image to obtain a binarized image.
  • the binarization processing in addition to simple binarization processing that uses a fixed threshold, adaptive binarization processing in which a threshold is determined in accordance with image features may be used.
  • the wide variety of edge extraction processing described in Example 1 may be applied to the representative image before performing the binarization processing.
  • a Hough transform is performed on the binarized image.
  • a Hough transform is a transform for transforming a straight line which may pass through a single point in an XY space into a locus in a different space (for example, a ⁇ space) and is capable of obtaining a straight line in the XY space or, in other words, a direction of an edge from a point with a large number of votes in a transform space.
  • p denotes a length of a perpendicular lowered to a straight line in the XY space from an origin
  • denotes an angle formed between the perpendicular and the X axis.
  • the top Na-number of vote-getters in the ⁇ space of the Hough transform is selected and respective ⁇ coordinates thereof are acquired.
  • a position (s p , t p ) of a viewpoint is calculated based on the ⁇ coordinate acquired in the top vote-getter position acquiring step S1703. Since the ⁇ coordinate in the ⁇ space represents an angle of a direction perpendicular to a straight line (edge) in the XY space, ⁇ is set as a polar angle ⁇ of the viewpoint . Next, a position of the viewpoint is calculated using values (for example, five) of a radius r p of a viewpoint determined in advance and the polar angle ⁇ ⁇ of the viewpoint. Moreover, as the radius of the viewpoint, a fixed value determined in advance or a value determined based on a pixel pitch, a magnification, or a feature of the subject is set.
  • FIGS. 19A to 19D are schematic views of pathological samples. Calculation of a viewpoint position will now be described in a specific manner with reference to these drawings .
  • FIG. 19A shows a representative image of a region having a strong image component in a particular direction such as a muscle fiber. For example, an angle perpendicular to a straight line of an edge is obtained as -30 degrees from a result of a Hough transform performed on the representative image shown in FIG. 19A and the angle is set as a polar angle of a viewpoint.
  • processing such as that described below may be additionally performed after step S1704.
  • FIG. 19B is a schematic view.of a cross section when a Z stack image is sliced in a direction of the polar angle described earlier. This diagram schematically shows an example in which the Z stack image is constituted by five layer images .
  • a position of a viewpoint is calculated based on a combination of radii of a plurality of viewpoints determined in advance and the Na-number of polar angles obtained in step S170 .
  • a band-like region which has a constant width ⁇ and which is centered on a straight line (edge) in an XY space corresponding to a coordinate on a ⁇ space of the Hough transform used when obtaining the polar angles of the viewpoints is cut out from the Z stack image.
  • a Z stack image such as that shown in FIG. 19B is obtained.
  • a viewpoint position at which a dispersion of the integrated image is the largest is determined as a final viewpoint.
  • a calculation load can be suppressed by adopting the following configuration. First, two-dimensional data resulting from integrating the inside of the band-like region of the Z stack image in a direction perpendicular to the line-of-sight direction in the XY plane (corresponding to a fiber direction in FIG. 19A) is created. Subsequently, the integrated two-dimensional data is integrated in the line-of-sight direction. Finally, dispersion is calculated.
  • a viewpoint suitable for observation can be determined for each observation object region and an effect of extracting/enhancing an edge with high accuracy with a small calculation load can be achieved.
  • Example 3 a method of determining a position of a viewpoint suitable for observation which differs from the viewpoint selection processing according to Example 3 will be described.
  • direction estimation of an edge is performed based on an image feature that is an edge component included in an original image
  • direction estimation of an edge is performed based on an image feature that is a positional relationship of the subject included in the original image.
  • FIG. 19C is an example of a representative image of a region including a boundary between cells.
  • a cell membrane, an intercellular substance (interstice) , and the like of each cell exist at a cell boundary.
  • an edge of a cell boundary (dashed line) is weak and directly detecting the edge with the method described in Example 3 is not easy.
  • FIG. 19D is a schematic view of a cross section when a Z stack image is sliced in a direction of a straight line that connects adjacent nuclei .
  • the schematic view of the cross section in the line-of-sight direction of the Z stack image shows that a position of a viewpoint suitable for observation of a cell boundary is obtained.
  • FIG. 18 is a flow chart showing internal processing of the viewpoint selection processing step S1602 according to the present example.
  • a region in which a cell nucleus exists is extracted from the acquired representative image.
  • a cell region can be extracted by performing adaptive binarization processing using a blue channel of a color image and subsequently filling internal holes using closing processing in which expansion/contraction is respectively and sequentially performed an equal number of times or the like.
  • this method there are various known techniques for extracting a cell nucleus region and any method may be used.
  • noise elimination is performed which assumes that regions whose size is equal to or smaller than a certain size are not nuclei but noise and which eliminates such regions.
  • a number is assigned to each nucleus region extracted in step S1801.
  • Labeling is processing involving classifying a plurality of pixel regions which are coupled to each other as a single group. Since labeling is a technique that is already well known, a description thereof will be omitted.
  • a centroid position calculating step S1803 a position of a centroid of each nucleus region to which a number had been assigned in step S1802 is calculated.
  • Steps S1804 to S1812 constitute loop processing for obtaining a direction of a straight line connecting adjacent nuclei from a nucleus region to which a label number has been assigned.
  • step S1804 a first label number is selected as a processing object.
  • an internuclear distance calculating step S1805 a distance between a centroid of a nucleus to which the label number of the processing object had been assigned and a centroid of a nucleus to which another label number had been assigned is obtained. In doing so, to prevent a calculation on a combination of label numbers for which a distance has already been calculated from being redundantly performed, internuclear distance calculations with respect to labels assigned numbers smaller than the label number that is the processing object may be omitted. In this case, as a calculation result, a previously obtained internuclear distance calculation result for the same combination is applied.
  • step S1806 using the values of distances obtained in step S1805, the combinations of labels are sorted in an ascending order (an order in which combinations with short distances are ranked high) .
  • an angle formed between a straight line connecting centroids of nuclei and the X axis is obtained for each of the label combinations obtained in step S1807.
  • the angle of this straight line is an angle perpendicular to a cell boundary that is a boundary between two cells, the angle is set as a polar angle of a viewpoint.
  • a position of the viewpoint is calculated from the obtained polar angle of the viewpoint.
  • a position (s, t) of the viewpoint is obtained from radii of a plurality of viewpoints within an aperture radius ra of a lens determined in advance and from the determined polar angle.
  • a band-like region is cut out which has a constant width ⁇ and which is centered on a straight line that passes through an intermediate position of centroids of two nuclei and that is perpendicular to the polar angle of the viewpoint.
  • a Z stack image such as that shown in FIG. 19D is obtained.
  • the Z stack image is desirably cut out in a range in which nuclei do not exist.
  • a viewpoint list adding step S1810 positions of viewpoints obtained in the viewpoint position calculating step S1809 are added to a list. Moreover, a position of a viewpoint is not added when the same viewpoint position is already recorded on the list.
  • step S1811 a determination is made on whether or not processing has been completed on all label numbers. If not, a transition is made to step S1812 to set a nucleus region to which a next label number has been assigned as the processing object. When processing of all label numbers has been completed, a transition is made to a top-ranked viewpoint selecting step S1813.
  • the top-ranked viewpoint selecting step S1813 is processing for narrowing down the number of viewpoints in the viewpoint list. Even if there is a large number of cells in the selection region 207, the number of effective viewpoints can be kept within a certain range. Moreover, although not illustrated in the flow chart, the processing of step S1813 is not executed when the number of viewpoints in the viewpoint list is equal to or smaller than a prescribed number of viewpoints Nd.
  • step S1813 a distribution of viewpoint positions in the viewpoint list is analyzed using a known technique such as clustering.
  • clustering a parameter determined in advance is set.
  • a centroid of each distribution is set as a representative viewpoint position, and the number of viewpoints in the distribution is counted for each representative viewpoint position.
  • the viewpoint positions are sorted in a descending order of the number of viewpoints in the distribution, and top Nd-number of viewpoint positions are selected. Accordingly, the number of viewpoints can be narrowed down.
  • a cell membrane or a cell boundary with weak contrast can be extracted or enhanced without modifying optical systems or photographic conditions such as exposure.
  • an effect of improving diagnostic efficiency of a doctor can be achieved .
  • the region 207 to be observed is first selected in the image display application and the extensions menu 208 is displayed.
  • the new window 700 opens, an image in the region 207 is displayed in the left-side region 701, and a calculated viewpoint image is displayed in the right-side region 702.
  • an automatic viewpoint image calculation setting screen 2000 shown in FIG. 20 is simultaneously displayed.
  • the calculation of a viewpoint image or, in other words, the viewpoint image generation processing (S1502) may be executed when the user selects a desired viewpoint in the viewpoint image list.
  • a viewpoint image of a viewpoint once selected by the user may be stored in a memory, and when the same viewpoint is next selected, the viewpoint image may be read from the memory and displayed without executing the viewpoint image generation processing .
  • a result of applying the edge extraction processing or the edge enhancement processing described in Examples 1 and 2 to the viewpoint image may also be displayed.
  • the user may select a plurality of viewpoint images in which a contrast of an observation object location is clear from the viewpoint image list and display a composite image of the plurality of selected viewpoint images in the right-side region 702. For example, a plurality of images are selected by pressing down the automatic calculation button 2001 to generate a viewpoint image list and subsequently selecting a check box (not shown) that is provided for each viewpoint image in the viewpoint image list 2002.
  • a plural viewpoint compositing button denoted by reference numeral 2003 is pressed and a composite image of the viewpoint images is displayed in the right-side region 702 of the window 700.
  • intensity (pixel value) of the composite image may be divided by the number of images composited so that the intensity of the composite image does not greatly vary from intensity of the viewpoint images.
  • a viewpoint image in a direction desired by a pathologist can be promptly displayed and an effect of improving diagnostic efficiency of the pathologist can be achieved.
  • Example 1 a feature of a viewpoint image in that a boundary between substances with different transmittance in a sample is clearly visible has been described with reference to FIG. 6B.
  • a viewpoint image has another distinctive feature in addition to the feature described above. That is, with a viewpoint image, an unevenness which varies along the line-of-sight direction on the XY plane is enhanced and a sample appears three-dimensional in a similar manner to an observed image under oblique lighting which is obtained by illuminating the sample from a partial region of a lighting fixture.
  • an image created by oblique lighting and a viewpoint image physically differ from each other. While an optical blur is created as a focusing position is modified in an image created by oblique lighting, a viewpoint image differs in that a depth of field remains extremely deep regardless of a modification in a focusing position. Moreover, while a viewpoint image varies in accordance with a Z position Zf of a Z stack image that is brought into focus, the variation is expressed by a translation in the XY direction) .
  • Reference numeral 2100 in FIG. 21 represents a schematic view showing an unevenness existing on a surface of a pathological sample on a prepared slide. It is assumed that the unevenness on an xz plane shown in FIG. 21 also continues in a y direction that is a depth direction.
  • a pathological sample for tissue diagnosis is first fixed by paraffin, then sliced in a uniform thickness by a microtome, and finally stained.
  • a pathological sample is not completely uniform. Unevenness attributable to tissue structure or components of substances exists at a boundary between a cell and a tube or a cavity, a boundary between a nucleus and cytoplasm, and the like, and an uneven structure such as that shown in FIG. 21 exists on a surface of the pathological sample.
  • FIG. 21 presents a simplified model and an unevenness of an actual sample seldom includes a cusp such as that shown in FIG. 21.
  • convex structures such as that shown in FIG. 21
  • a discontinuity in the refractive index inside a sample can be considered as a surface unevenness
  • reference numeral 2111 denotes a plane with no unevenness
  • reference numeral 2112 denotes an inclined plane rising to the right
  • reference numeral 2113 denotes an inclined plane dropping to the right. Inclination angles formed between the inclined planes 2112 and 2113 and the x axis are respectively ( a > 0) .
  • FIGS. 22A to 22C are schematic views showing intensity of scattered light at an observation angle ⁇ on the planes 2111 to 2113 in FIG. 21.
  • FIGS. 22 ⁇ to 22C respectively represent scattering of light by the plane 2111 and the inclined planes 2112 and 2113.
  • a circle circumscribing each plane represents intensity of scattered light in a scattering direction when the sample surface is assumed to be a perfect
  • a solid arrow line in the circle represents intensity of scattered light when observed from an angle that is inclined by ⁇ from the optical axis (z axis) .
  • the sample surface will be assumed to be a perfect diffusion/transmission plane for the sake of simplicity) .
  • the intensity of scattered light can be expressed as locos ( ⁇ - ) for both planes.
  • Table 1 shows that when the observation angle ⁇ is small, a contrast between the inclined planes 2112 and 2113 is low and is difficult to observe even when the inclination angle a is large, and as the observation angle ⁇ increases, the contrast increases and is more easily observed even when the inclination angle is small.
  • H denotes a height and W denotes a width of the surface unevenness 2100 of the pathological sample shown in FIG. 21, a relationship expressed as
  • a pathological sample for tissue diagnosis has a thickness of approximately 4 ⁇ and H is equal to 10% of the thickness or, in other words, 0.4 ⁇ .
  • a limit contrast C that allows the existence of unevenness to be viewed when observing an image is 0.1.
  • Table 2 shows that the larger the observation angle ⁇ , the more visible the unevenness even if the unevenness has a small inclination angle a- [0155] Assuming that the surface unevenness of the pathological sample is periodic, a spatial frequency corresponding to the width of the unevenness can simply be obtained by 1/W. Table 3 shows spatial frequencies for widths [ ⁇ ] of the unevenness when a sensor pixel pitch of 0.25 ⁇ is assumed.
  • Table 3 shows that, with an unevenness of a sample observed to have a contrast C of 0.1 or higher, the unevenness is in a region of relatively high frequency when the observation angle ⁇ is small (10 degrees) , and the unevenness is in a region of relatively low frequency when the observation angle ⁇ is large (30 degrees) .
  • edge extraction (enhancement) may be mainly performed on a high-frequency component (an image with a high spatial frequency) when the observation angle ⁇ is small.
  • a range in which edge extraction (enhancement) is performed may be widened to include a lower frequency component (an image with a low spatial frequency) than in the case of a small observation angle ⁇ .
  • the larger the observation angle ⁇ of a viewpoint image the lower the frequency from which edge extraction (enhancement) may be performed. Accordingly, an unevenness of a sample surface can be effectively extracted (or enhanced) in accordance with features of a viewpoint image.
  • Expression 17 shows that the apparent inclination angle a' is smaller than and that the contrast C declines in accordance with a difference
  • parameters of edge extraction (enhancement) processing are controlled so that a range of spatial frequencies in which an effect of edge enhancement
  • MtfB(f) that represents an MTF (Modulation Transfer Function) of a spatially given blur
  • MtfU(f) that represents an MTF of a result of the unsharp mask processing.
  • MtfB(f) is to an origin side (a low-frequency side) of a frequency axis
  • MtfU(f) representing a result of the unsharp mask processing
  • corresponds to a polar angle of a viewpoint
  • ⁇ and ⁇ are standard deviations which respectively represent spreads of the blur in the X axis direction and the Y axis direction.
  • ⁇ ⁇ may be a function f ( ⁇ ) of the observation angle ⁇ . It should be noted that the expression above is simply an example and other functions can also be used.
  • FIG. 24 shows a schematic view of blur functions which are generated according to Expression 18 and which vary depending on a viewpoint position .
  • Blur functions 2401, 2402, and 2403 show that a radius ⁇ of the blur becomes longer in accordance with a magnitude of a radius (s 2 + t 2 ) 1/2 .
  • blur functions 2401, 2404, and 2405 show that a long side of the blur rotates by the polar angle ⁇ of the viewpoint.
  • FIG. 25 is a flow chart showing internal processing of the viewpoint edge extraction processing S903 according to the present example.
  • a viewpoint polar angle ⁇ is calculated using a viewpoint (s, t) according to Expression 3.
  • an observation angle ⁇ is calculated using the viewpoint (s, t), a sensor pixel pitch (an image sampling pitch) ⁇ in the X direction, and a movement interval (a layer image interval) ⁇ in the Z direction according to Expression 5.
  • a filter suitable for a viewpoint image is read out (or generated) .
  • the observation angle ⁇ calculated in S2502 is substituted into Expression 19 to obtain ⁇ and ⁇ -
  • values of the polar angle ⁇ calculated in S2501 and ⁇ and ⁇ ⁇ calculated in S2502 as indexes, data of a corresponding blur function is read out from a table in which blur functions calculated in advance using Expression 18 have been registered.
  • values of the polar angle ⁇ and ⁇ and ⁇ ⁇ may be substituted into Expression 18 to generate (calculate) a blur function.
  • Expressions 14 and 13 is performed to generate a viewpoint edge enhanced image.
  • the threshold Threshold may be set according to the following expression.
  • T 0 is a prescribed constant.
  • a subscript c denotes a color component
  • Ic (X, Y) , Dc (X, Y) , and Uc (X, Y) respectively represent an image, a difference image, and an unsharp mask-applied image for each color component c.
  • L (X, Y) represents a brightness component obtained from the image color component Ic (X, Y) .
  • DL (X, Y) represents a difference image obtained from brightness L (X, Y) and a blur function G (X, Y)
  • BL (X, Y) represents a binary image obtained by comparing an absolute value of DL (X, Y) with the threshold Threshold.
  • Amount denotes an adaptation amount that represents a degree of edge enhancement in a similar manner to Expression 13. ** is a symbol denoting a two-dimensional convolutional operation.
  • a difference image is calculated after applying a low-pass filter to an original image.
  • Dc (X, Y) and DL (X, Y) in Expression 21 [Expression 22]
  • DL(X, Y) LP(L(X, Y)) - G(X, Y) * *LP ⁇ L(X, Y))
  • LP () denotes a function representing the application of a low-pass filter on an image.
  • various blur functions such as a Gaussian function can be applied.
  • noise reduction processing such as a median filter, a ⁇ filter, or a bilateral filter can be applied.
  • the viewpoint edge synthesized image generating step S904 the plurality of viewpoint images calculated in the viewpoint edge extracting step S903 are collected and a viewpoint edge synthesized image is created using weighting specified on the setting screen 1003.
  • the weighting indicates which viewpoint edge extracted image among the plurality of viewpoint edge extracted images is to be emphasized in the synthesis.
  • a blur of the viewpoint edge synthesized image can be controlled by controlling weighting. In doing so, when selecting "Gaussian blur” on the setting screen 1003, since a Gaussian blur closely resembles a blur of a general image pickup system, a natural appearance is produced. However, since the larger the observation angle ⁇ , the smaller the weighting, intensity of an edge-enhanced location weakens and observation of a difference becomes difficult.
  • the larger the observation angle ⁇ the higher the contrast in which an unevenness on a sample surface can be observed. Therefore, among the viewpoint edge enhanced images, if an original viewpoint image component (I (X, Y) in Expression 13) can be synthesized at a blur resembling the blur of the image pickup system and a viewpoint edge enhanced component (D (X, Y) ) can be synthesized while suppressing a decrease in intensity as compared to the blur of the image pickup system, the unevenness on the sample surface can be observed more easily.
  • a greater degree of edge enhancement may be set in advance to a viewpoint image with a larger observation angle ⁇ when obtaining edge extracted images. Accordingly, when generating an edge synthesized image, a weight and a degree of edge enhancement (extraction) cancel out each other and a decline in an edge enhanced component can be suppressed.
  • denotes a standard deviation representing a spread of blur in a viewpoint edge synthesized image.
  • an adaptation amount Amount of an unsharp mask is controlled as follows according to the viewpoint position (s, t) .
  • a 0 denotes a prescribed constant.
  • the adaptation amount Amount dependent on a viewpoint is obtained using Expression 24.
  • setting information regarding weighting include a function representing a shape of weighting such as a Gaussian blur and a value of the standard deviation ⁇ that represents a spread of a blur.
  • an edge is enhanced using the adaptation amount Amount (s, t) that is dependent on a viewpoint. Accordingly, an edge can be made more identifiable in a viewpoint edge synthesized image while retaining a feel of the original image.
  • Expression 18 is simply an example and various other functions can be set.
  • D (X, Y) in Expression 14 (or Dc (X, Y) and DL (X, Y) in Expressions 21 and 22) that is obtained in an unsharp mask calculation process represent an image for which an edge is extracted and may be considered an edge extracted image.
  • edge extraction can be achieved by outputting an image obtained by subtracting the original image from an application result of Expression 14 or an unsharp mask application result.
  • a method of generating an viewpoint edge image using a filter for edge enhancement (or edge extraction) generated using a blur function (a
  • Reference numeral 2601 in FIG. 26A represents a three-dimensional blur of an image pickup system in an orthogonal coordinate system (XYZ) or a three-dimensional blur that is closest to the three-dimensional blur of the image pickup system
  • reference numeral 2602 in FIG. 26B represents a three-dimensional blur having a blur equal to or greater than 2601.
  • Reference numeral 2603 in FIG. 26C represents a group of out-of-focus blurred images (a Z stack image) acquired by the image pickup system.
  • the three-dimensional blur 2602 is used for the purpose of edge enhancement or edge extraction, hereinafter, the
  • three-dimensional blur 2602 will also be referred to as a three-dimensional blur for edge processing.
  • the three-dimensional blurs 2601 and 2602 are represented by the following Gaussian blur expression using a blur radius R at a prescribed Z position at a distance D from a focusing position (a Z position with minimum blur) .
  • R denotes a standard deviation of a Gaussian distribution
  • R b i a blur radius of the three-dimensional blur 2601
  • R b2 a blur radius of the three-dimensional blur 2602
  • a viewpoint image a s , t ( > Y) that is viewed from a viewpoint (s, t) can be obtained by deconvoluting an integration value b s , t (X, Y) of a Z stack image 2603 in a same line-of-sight directio with an integration value c s , t (X, Y) of the three-dimensional blur 2601 of the image pickup system in a same line-of-sight direction.
  • a corresponding description is given in section 3.3 of Non-Patent Literature 2 ("2) With 2D Filters Simply Combining Multi-Focus Images" of Non-Patent Literature 4) .
  • FIG. 7 of Non-Patent Literature 2 FIG. 7 of Non-Patent Literature 2 (FIG.
  • Non-Patent Literature 4 a relationship in which an group of integrative photographed images g (X, Y, Z) is obtained by convoluting a filter h (X, Y, Z) on real space information f (X, Y, Z) is satisfied regardless of an integration in a line-of-sight direction) .
  • a sl ⁇ u,v) B st ⁇ u,v)IC st ⁇ u,v)
  • a s , t (u, v) , B S t (u, v) , and C s , t (u, v) are respectively Fourier transforms of a s , t (X, Y) , b s , t (X, Y) , and c s , t (X, Y) , and u and v are respectively frequency coordinates
  • Expression 28 shows that the image a s , t ' (X; Y) is an image resulting from the original viewpoint image a S t (X, Y) being processed by a frequency filter represented by Expression 29.
  • FIG. 27 is a flow chart showing internal processing of the viewpoint-decomposed edge extraction/synthesis processing S802 according to the present example. Unlike in Example 1, the viewpoint image generation step S902 is not required. Hereinafter, a processing flow will be described.
  • a viewpoint acquisition processing step S2701 positional information of a viewpoint necessary for generating an edge-enhanced or edge-extracted viewpoint image is acquired. Since contents of processing are similar to the viewpoint acquisition processing step S901, a description will be omitted.
  • edge enhancement processing is performed based on the viewpoint edge extraction setting (705) . Details will be given later. Moreover, when there are a plurality of viewpoints, the processing is executed for each of the viewpoints in a similar manner to FIG. 9.
  • a viewpoint edge synthesized image generating step S2703 based on the viewpoint edge synthesis setting (706), the viewpoint edge enhanced images generated in step S2702 are composited to generate a viewpoint edge synthesized image. Since contents of processing are similar to the viewpoint edge synthesized image generating step S904, a description will be omitted.
  • FIG. 28 is a flow chart showing internal processing of the viewpoint edge enhancing step S2702.
  • an observation angle ⁇ is calculated using a viewpoint (s, t) , a sensor pixel pitch (an image sampling pitch) &X in the X direction, and a movement interval (a layer image interval) ⁇ in the Z direction according to Expression .5.
  • a three-dimensional blur-for-edge processing information calculating step S2802 information (a blur radius r b2 per unit distance) on a three-dimensional blur for edge processing is obtained using information (a blur radius r b i per unit distance) on a three-dimensional blur of a photographed image and the observation angle ⁇ calculated in S2801.
  • An example of a calculating method is shown below. [Expression 30]
  • c denotes a prescribed constant.
  • the value of the constant c can also be set as a part of intensity of edge enhancement on the viewpoint edge extraction setting screen 1002.
  • a Fourier transform c' s , t (u, v) of an integration value of the three-dimensional blur 2602 for edge processing in the line-of-sight direction is acquired.
  • c' s ,t (u, v) calculated in advance is stored in the storage device 130 or the main memory 302, based on the information (r b 2) on the three-dimensional blur for edge processing obtained in S2802 and the number of layers in the Z stack image, corresponding data is read out.
  • c' s , t (u, v) may be obtained by calculating a three-dimensional blur from the information
  • a calculation amount may be reduced by storing c' s ,t (u, v) _1 in the storage device 130 or the main memory in advance and reading out c' S t (u, v) _1 in step S2803.
  • the image generating apparatus 100 in order to calculate a viewpoint image at high speed from a photographed image having various out-of-focus blurs, Fourier transforms of an integration value of a plurality of three-dimensional blurs (for example, Gaussian blurs with different radii R) or an integration value of three-dimensional blurs at a plurality of viewpoints are calculated in advance and stored in the storage device 130 or the main memory 303. Therefore, a filter for edge enhancement need not be newly provided.
  • a plurality of three-dimensional blurs for example, Gaussian blurs with different radii R
  • an integration value of three-dimensional blurs at a plurality of viewpoints are calculated in advance and stored in the storage device 130 or the main memory 303. Therefore, a filter for edge enhancement need not be newly provided.
  • a deconvoluting step S2804 first, an integration value b S t (X / Y) of an integration of the Z stack image 2603 in a line-of-sight direction from the viewpoint (s, t) is obtained. Next, a Fourier transform B s ,t (u, v) thereof is calculated. Subsequently, using c' s , t (u, v) obtained in step S2803, A' s , t (u, v) that is a Fourier transform of a viewpoint edge enhanced image is obtained according to Expression 27. Finally, by subjecting A' S/t ( , v) to an inverse Fourier transform, a' s , t (X, Y) that is a viewpoint edge enhanced image is obtained.
  • a viewpoint edge enhanced image can be generated in which the larger the observation angle ⁇ of the viewpoint, the higher the degree of edge enhancement in the viewpoint image.
  • the viewpoint-decomposed edge extraction/synthesis processing S802 according to the present example can also adopt the configuration shown in FIG. 9. Internal processing of the viewpoint edge extraction processing S903 in this case is shown in FIG. 29.
  • a viewpoint observation angle calculating step S2901 and a three-dimensional blur-for-edge processing information calculating step S2902 are respectively the same processing as S2801 and S2802, a description thereof will be omitted.
  • a filter reading (generating) step S2903 in addition to c' s , t (u, v) , c Sit (u, v) that is a Fourier transform of an integral image of the three-dimensional blur of an image pickup system in the line-of-sight direction is also acquired.
  • data calculated in advance may be read from the storage device 130 or the main memory 303 or c' s , t (u, v) and c s , t ( , v) may be obtained by calculation.
  • an edge enhancement filter calculating stepS2904 using c s , t (u, v) and c' s , t ( , v) acquired in S2903, an edge enhancement filter E s ,t ( u r v ) is calculated according to Expression 29.
  • a s , t ( , v) is obtained by performing a Fourier transform on the viewpoint image a S(t (X, Y) calculated in advance in step S902, and A' S t (u, v) is obtained by applying the edge enhancement filter E s , t (u, v) according to Expression 28. Finally, by subjecting A' S t (u, v) to an inverse Fourier transform, a' S(t (X, Y) that is a viewpoint edge enhanced image is obtained.
  • the configuration according to the present example is also applicable to edge extraction in a similar manner to Example 6.
  • a direct current component of A' s ,t (u, v) also becomes zero. Since a' Sjt (X, Y) that is an inverse Fourier transform thereof is equivalent to an image resulting from subtracting an image average value from each pixel, a' S t (X, Y) may be considered an edge extracted image.
  • Example 6 a similar effect as Example 6 can be achieved.
  • a filter stored in the image generating apparatus 100 can be utilized in order to calculate a viewpoint image from a Z stack image having various blurs at high speed, there is an additional advantage that no calculation load is required (there is a smaller calculation load) to newly generate a filter.
  • a further advantage is that additional storage capacity for storing the new filter is not required.
  • Non-Patent Literature 3 While the generation of a viewpoint edge synthesized image based on the method according to Non-Patent Literature 2 has been described in Example 7, in Example 8, a configuration will be described which significantly reduces calculation load compared to Example 7 by generating a viewpoint edge synthesized image based on the method according to .
  • Non-Patent Literature 3
  • FIG. 30 is a flow chart showing internal processing of the viewpoint-decomposed edge extraction/synthesis processing S802 according to Example 8.
  • a viewpoint acquisition processing step S3001 positional information of a viewpoint necessary for the generation of a viewpoint edge .synthesized image that is generated in step S802 is acquired. Since the processing is approximately similar to that of step S901, a description thereof will be omitted.
  • a Fourier transform processing step S3002 a two-dimensional Fourier transform is executed with respect to each layer image of the Z stack image acquired in step S801 to generate Fourier transformed layer images.
  • This processing is represented by a mathematical expression as follows.
  • G M (u,v) F ⁇ g n X,Y) ⁇
  • n denotes a number indicating an n-th layer image of the Z stack image
  • F ⁇ ⁇ denotes a function representing a two-dimensional Fourier transform
  • g (n) (X, Y) denotes an n-th layer image of the Z stack image.
  • a viewpoint edge enhancement filter C' g, t (u, v) is read out for each viewpoint position obtained in step S3001. Details will be given later.
  • a three-dimensional blur modifying filter H (n) (u, v) is generated using the viewpoint edge enhancement filter read out in step S3003.
  • This processing is represented by a mathematical expression as follows. [Expression 32]
  • k a (s, t) denotes a function representing a weight of a light beam passing through a viewpoint (s, t) which constitutes a desired three-dimensional out-of-focus blur h a (X, Y, Z), whereby the following relationship holds true .
  • a blur modifying filter application processing step S3005 the following arithmetic operation is performed between the Fourier transform g (n) (X, Y) of each layer image of the Z stack image obtained in step 3002 and the
  • Expression 34 may be calculated after obtaining H (n_nf) (u, v) using Expression 32.
  • an inverse Fourier transform is performed on the Fourier transform A' (u, v) of the viewpoint edge synthesized image obtained in step S3005 to obtain a viewpoint edge synthesized image a' (X, Y) to which edge enhancement processing has been applied.
  • step S3003 will be described.
  • FIG. 31 is a flow chart showing internal processing of the viewpoint edge enhancement filter readout processing step S3003.
  • an observation angle ⁇ is calculated using a viewpoint (s, t) , a sensor pixel pitch (an image sampling pitch) ⁇ in the X direction, and a movement interval (a layer image interval) ⁇ in the Z direction according to Expression 5. Since a description has already been given with reference to step S2801, details will be omitted.
  • step S3012 in a similar manner to step S2802, information (r b2 ) on a three-dimensional blur for edge processing is obtained using information (r b i) on a
  • step S3103 in a filter reading (generating) stepS3103, in a similar manner to step S2803, C' Sft (u, v) is acquired from the storage device 130 or the main memory 303 based on the information (3 ⁇ 4 2 ) calculated in step S3102.
  • C s , t (u, v) _1 may be stored in advance and read out from the storage device 130 or the main memory 303. In this case, the speed of the calculation of Expression 32 in step S3004 can be increased. Since a description has already been given with reference to step S2803, details will be omitted.
  • Example 7 As described above, according to the present example, a similar effect as Example 7 can be achieved. In addition, compared to Example 7, the present example is capable of significantly reducing the calculation load of a viewpoint edge synthesized image by using the MFI arbitrary
  • Non-Patent Literature 3 and 4 Therefore, a desired viewpoint edge synthesized image can be generated at high speed in response to an instruction from the user and convenience of the edge extracting (or enhancing) function can be further improved .
  • the present invention is also applicable to images photographed with an epi-illumination microscope, a light field camera,, a light field microscope, and the like.
  • a light field camera and a light field microscope are apparatuses capable of acquiring, in one shot, an image on which is recorded four-dimensional information (information in which a degree of freedom of a viewpoint position i-s added to an XY two-dimensional image) that is referred to as a light field.
  • a lens array is disposed at an original position of an imaging plane and a light field is photographed by an image sensor to the rear of the lens array.
  • An image with an arbitrary focusing position or a viewpoint image observed from an arbitrary direction can also be generated using known techniques from an original image on which a light field is recorded. Therefore, the present invention can also be favorably applied to an original image acquired with a light field camera or a light field microscope.
  • subjects are not limited to pathological samples.
  • the subject may be a reflective object such as metal that is an observation object of an epi-illumination microscope.
  • the subject may also be a transparent biological specimen that is an observation object of a transmissive observation microscope.
  • the subject may be a landscape or a person that is a photographic object of a digital camera.
  • an arbitrary viewpoint image can be generated from a group of a plurality of images photographed while varying focusing positions of the subject and the present invention can be applied.
  • viewpoint acquisition processing (S901) according to Examples 1 and 2 may be replaced with the viewpoint determination processing (S1501) .
  • a viewpoint is automatically determined by analyzing a Z stack image.
  • Examples 3 and 4 when a region is large, the region may be further divided into small blocks and a direction of a calculated viewpoint may be varied for each block. As a result, even when a cell membrane or a cell boundary is curved or when there is a large number of nuclei, the accuracy of edge extraction can be improved.
  • Embodiments of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions recorded on a storage medium (e.g., non-transitory computer-readable storage medium) to perform the functions of one or more of the above-described embodiment ( s ) of the present invention, and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment (s) .
  • the computer may comprise one or more of a central processing unit (CPU) , micro processing unit (MPU) , or other circuitry, and may include a network of separate computers or separate computer processors.
  • CPU central processing unit
  • MPU micro processing unit
  • the computer executable instructions may be provided to the computer, for example, from a network or the storage medium.
  • the storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM) , a read only memory (ROM) , a storage of distributed computing systems, an optical disk (such as a compact disc (CD) , digital versatile disc (DVD), or Blu-ray Disc (BD)TM) , a flash memory device, a memory card, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Optics & Photonics (AREA)
  • Analytical Chemistry (AREA)
  • Chemical & Material Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Radiology & Medical Imaging (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Microscoopes, Condenser (AREA)

Abstract

An image generating apparatus generates an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject. The image generating apparatus has a viewpoint image generating unit configured to generate a viewpoint image from the original image; and an edge processing unit configured to generate the edge image by applying edge processing to enhance or extract an edge with respect to the viewpoint image generated by the viewpoint image generating unit.

Description

DESCRIPTION
Title of Invention
IMAGE GENERATING APPARATUS AND IMAGE GENERATING METHOD Technical Field
[0001] The present invention relates to an image generating apparatus and an image generating method for generating an image suitable for observation from an image obtained by imaging a subject.
Background Art
[0002] In the field of pathology, there are virtual slide systems which capture and digitize an image of a test sample placed on a prepared slide to enable pathological diagnosis on a display as an alternative to optical microscopes that are pathological diagnostic tools. Digitization of a
pathological diagnostic image by a virtual slide system enables a conventional optical microscopic image of a test sample to be handled as digital data. As a result, advantages such as expediting of remote diagnosis, explanation to patients using digital images, sharing of rare cases, and improved efficiency in teaching and learning can be achieved.
In addition, since a wide variety of image processing can be performed on digital data, various diagnosis supporting functions for supporting diagnosis performed by pathologists are being proposed with respect to images captured by virtual slide systems.
[0003] Conventionally, the following proposals have been made as examples of diagnosis supporting functions.
Non-Patent Literature 1 discloses a method of extracting cell membrane from a pathologic tissue sample image of a liver using digital image processing technology with an objective to calculate an N/C ratio (a ratio occupied by a nucleus relative to cytoplasm) which is an important finding for diagnosing cancer. In Non-Patent Literature 1, color information of three types of observation images, namely, a bright field observation image, a dark field observation image, and a phase difference observation image is combined to improve a correct extraction rate of cell membrane as compared to using only a bright-field observation image.
[0004] In addition, besides a cell membrane, clarifying a cell boundary (in addition to a cell membrane, an intercellular substance (interstice) exists on a cell boundary between cells) and a boundary between a cell and a tube or a cavity is very important when performing diagnoses. Since a clear boundary enables a doctor to more easily estimate a complicated three-dimensional structure of a liver from a sample, a more accurate diagnosis can be achieved from limited information.
Furthermore, the boundary between a cell and a tube or a cavity is also information that is useful for accurately calculating an N/C ratio. For example, since a pathologic tissue sample of a liver may be roughly divided into a region of a cell including a nucleus and cytoplasm and a region of sinusoids that are blood vessels for supplying substances to hepatocyte, the sinusoid region in which a cell does not exist must be correctly eliminated in order to calculate a correct N/C ratio.
Citation List
Patent Literature
[0005]
[Patent Literature 1] Japanese Patent Application Laid-open No. 2007-128009
Non Patent Literature
[0006]
[Non-Patent Literature 1] Namiko Torizawa, Masan bu Takahashi, and Masayuki Nakano, "Using Multi-imaging
Technique for Cell Membrane Extraction in Hepatic Histologic Images", IEICE General Conference, D-16-9, 2009/3
[Non-Patent Literature 2] Kazuya Kodama, Akira Kubota, "Virtual Bokeh Reconstruction from a Single System of Lenses", The Journal of The Institute of Image Information and Television Engineers 65 (3), pp. 372-381, March 2011
[Non-Patent Literature 3] Kazuya Kodama, Akira Kubota, "Scene Refocusing Based on Linear Coupling on a Frequency Region", Image Media Processing Symposium (IMPS 2012), 1-3.02, pp. 45-46, October 2012
[Non-Patent Literature 4] Kazuya KODAMA, Akira KUBOTA, "Efficient Reconstruction of All-in-Focus Images Through Shifted Pinholes from Multi-Focus Images for Dense Light Field Synthesis and Rendering, IEEE Trans. Image Processing, Vol.22, Issue 11, 15pages (2013-11)
Summary of Invention
[0007] However, the conventional art described above has the following problems.
In Non-Patent Literature 1, in order to acquire a bright field observation image, a dark field observation image, and a phase difference observation image, a phase difference objective lens and a common capacitor are mounted on a bright-field microscope and photography is performed by switching between the phase difference objective lens and the common capacitor. Therefore, there is a cost-related issue in that an optical microscope for bright-field observation requires additional parts and an issue of inconvenience in that photography requires optical systems and exposure conditions to be modified.
[0008] The present invention has been made in consideration of such problems, and an object thereof is to provide a novel technique for generating an image in which a boundary of a subject is clarified by image processing from an original image obtained by imaging the subject.
[0009] The present invention in its first aspect provides an image generating apparatus which generates an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject, the image generating apparatus comprising: a viewpoint image generating unit configured to generate a viewpoint image from the original image; and an edge processing unit configured to generate the edge image by applying edge processing to enhance or extract an edge with respect to the viewpoint image generated by the viewpoint image generating unit.
[0010] The present invention in its second aspect provides an image generating apparatus that generates a viewpoint image suitable for observation from an original image obtained by imaging a subject, the image generating apparatus comprising: a viewpoint determining unit configured to estimate a direction of an edge included in the original image by analyzing the original image, and to determine a viewpoint at which a viewpoint image is to be generated based on the estimated edge direction; and a viewpoint image generating unit configured to generate a viewpoint image from the original image with respect to the viewpoint determined by the viewpoint determining unit .
[0011] The present invention in its third aspect provides an image generating apparatus that generates a viewpoint image suitable for observation from an original image obtained by imaging a subject, the image generating apparatus comprising: a viewpoint determining unit configured to estimate a direction of an edge included in the original image by analyzing the original image, and to determine a plurality of viewpoints at which viewpoint images are to be generated, respectively, based on the estimated edge direction; a viewpoint image generating unit configured to generate a plurality of viewpoint images from the original image with respect to the plurality of viewpoints determined by the viewpoint determining unit; a selecting unit configured to cause a user to select two or more viewpoint images from the plurality of viewpoint images; and a compositing unit configured to composite the two or more viewpoint images selected by the user.
[0012] The present invention in its fourth aspect provides an image generating apparatus which generates an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject, the image generating apparatus comprising: a filter generating unit configured to generate a filter to perform edge enhancement or edge extraction in accordance with a line-of-sight direction with respect to the subject; and an edge processing unit configured to generate an edge image by using the original image and the filter.
[0013] The present invention in its fifth aspect provides an image generating method of generating an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject, the image generating method comprising the steps, executed by a computer, of: generating a viewpoint image from the original image; and generating an edge image by applying edge processing to enhance or extract an edge with respect to the generated viewpoint image.
[0014] The present invention in its sixth aspect provides an image generating method of generating a viewpoint image suitable for observation from an original image obtained by imaging a subject, the image generating method comprising the steps, executed by a computer, of: estimating a direction of an edge included in the original image by analyzing the original image and determining a viewpoint at which a viewpoint image is to be generated based on the estimated edge direction; and generating a viewpoint image from the original image with respect to the determined viewpoint.
[0015] The present invention in its seventh aspect provides an image generating method of generating a viewpoint image suitable for observation from an original image obtained by imaging a subject, the image generating method comprising the steps, executed by a computer, of: estimating a direction of an edge included in the original image by analyzing the original image and determining a plurality of viewpoints at which a. viewpoint image is to be generated based on the estimated edge direction; generating a plurality of viewpoint images from the ■original image with respect to the plurality of determined viewpoints; causing a user to select two or more viewpoint images from the plurality of viewpoint images; and compositing the two or more viewpoint images selected by the user.
[0016] The present invention in its eighth aspect provides an image generating method of generating an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject, the image generating method comprising the steps, executed by a computer, of: generating a filter for performing edge enhancement or edge extraction in accordance with a line-of-sight direction with respect to the subject; and generating an edge image by using the original image and the filter.
[0017] The present invention in its ninth aspect provides a program that causes a computer to execute the respective steps of the image generating method according to the present invention .
[0018] According to the present invention, an image in which a boundary of a subject is clarified can be generated by image processing from an original image obtained by imaging the subj ect .
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
Brief Description of Drawings
[0019] FIG. 1 is a configuration diagram of an image generation and display system according to an embodiment of the present invention;
FIG. 2 shows a display example for explaining functions of an image display application;
FIG. 3 is a diagram showing an internal configuration of an image generating apparatus;
FIG. 4 is a diagram showing a prepared slide that is an example of a subject; FIG. 5 is a diagram schematically showing a configuration of an image pickup apparatus for imaging a subject;
FIGS . 6A and 6B are schematic views for explaining a reason for contrast enhancement in a viewpoint image;
FIGS. 7A and 7B are diagrams showing an example of a GUI of an edge extracting function according to Example 1;
FIG. 8 is a flow chart showing an overall flow of edge extraction processing according to Example 1;
FIG. 9 is a flow chart showing viewpoint-decomposed edge extraction/synthesis processing S802 according to Example 1;
FIGS. 10A to IOC are diagrams showing examples of GUIs for various settings of the edge extracting function according to Example 1;
FIGS. 11A to 11H are diagrams showing filters of a Prewitt template operator and edge detection directions;
FIG. 12 is a flow chart showing viewpoint edge extraction processing S903 that is dependent on a line-of-sight direction;
FIG. 13 is a flow chart showing the viewpoint edge extraction processing S903 that is dependent on a
line-of-sight direction;
FIG. 14 is a flow chart showing a processing flow of N/C ratio calculation according to Example 1;
FIG. 15 is a flow chart showing the viewpoint- decomposed edge extraction/synthesis processing S802 according to Examples 3 and 4;
FIG. 16 is a flow chart showing viewpoint determination processing S1501 according to Examples 3 and 4;
FIG. 17 is a flow chart showing viewpoint selection processing S1602 according to Example 3;
FIG. 18 is a flow chart showing the viewpoint selection processing S1602 according to Example 4 ;
FIGS. 19A to 19D are schematic views showing
representative images to which application is assumed in Examples 3 and 4 ;
FIG. 20 is a diagram showing an example of a GUI of an automatic viewpoint image calculating function according to Example 5;
FIG. 21 is a schematic view showing unevenness existing on a surface of a pathological sample on a prepared slide;
FIGS. 22Ά to 22C are schematic views showing intensity of scattered light at an observation angle ψ on various planes shown in FIG. 21;
FIGS. 23A and 23B are schematic views showing a relationship between a polar angle of a viewpoint and an angle (observation angle) formed between a line-of-sight direction and an optical axis;
FIG. 24 is a schematic view of blur functions which are used in an unsharp mask and which vary depending on a viewpoint position;
FIG. 25 is a flow chart showing internal processing of the viewpoint edge extraction processing S903 according to Example 6;
FIGS. 26A to 26C are schematic views showing a three-dimensional blur model used in Example 7;
FIG. 27 is a flow chart showing the viewpoint- decomposed edge extraction/synthesis processing S802 according to Example 7 ;
FIG. 28 is a flow chart showing internal processing of viewpoint edge extraction processing S2702;
FIG. 29 is a flow chart showing internal processing of the viewpoint edge extraction processing S903 according to Example 7 ;
FIG. 30 is a flow chart showing the viewpoint- decomposed edge extraction/synthesis processing S802 according to Example 8 ; and
FIG. 31 is a flow chart showing internal processing of step S3003 shown in FIG. 30.
Description of Embodiments
[0020] (Overall configuration)
FIG. 1 shows a configuration of an image generation and display system according to an embodiment of the present invention.
Connected to an image generating apparatus (a host computer) 100 are an input operation device 110 which accepts input from a user and a display 120 for presenting the user with images or the like outputted from the -image generating apparatus 100. A keyboard 111, a mouse 112, a dedicated controller 113 (for example, a trackball or a touch pad) for improving operability of a user, and the like can be used as the input operation device 110. In addition, a storage device 130 such as a hard disk drive, an optical disk drive, or a flash memory and another computer system 140 that is accessible via a network I/F are connected to the image generating apparatus 100. Moreover, while FIG. 1 shows the storage device 130 existing outside of the image generating apparatus 100, the storage device 130 may alternatively be built into the image generating apparatus 100.
[0021] In accordance with a user's control signals inputted from the input operation device 110, the image generating apparatus 100 acquires image data from the storage device 130 and applies image processing to the image data to generate an observation image suitable for observation or to extract information necessary for diagnosis.
[0022] An image display application and an image generation program (both not shown) are computer programs that are executed by the image generating apparatus 100. These programs are stored in an internal storage device (not shown) inside the image generating apparatus 100 or in the storage device 130. Functions related to image generation (to be described later) are provided by the image generation program. The respective functions of the image generation program can be invoked (used) via the image display application.
Processing results (for example, a generated observation image) of the image generation program are presented to the user via the image display application.
[0023] (Display screen) FIG. 2 shows an example of displaying image data of a specimen imaged in advance on the display 120 via the image display application.
[0024] FIG. 2 presents a basic configuration of a screen layout of the image display application. Arranged within a full window 201 of a display screen are an information area 202 that shows a display status and an operation status as well as information on various images, a thumbnail image 203 of a specimen that is an observation object, a display region 205 for detailed observation of specimen image data, and a display magnification 206 of the display region 205. A frame line 204 rendered on the thumbnail image 203 indicates a position and a size of a region displayed in enlargement in the display region 205 for detailed observation. Based on the thumbnail image 203 and the frame line 204, the user can readily comprehend which portion is being observed among the entire specimen image data.
[0025] An image displayed in the display region 205 for detailed observation can be set and updated by a movement operation or an enlargement/reduction operation performed using the input operation device 110. For example, movement can be realized by a drag operation of the mouse on the screen and enlargement/reduction can be realized by a rotation of a mouse wheel (for example, a forward rotation of the wheel may be assigned to enlargement and a backward rotation of the wheel may be assigned to reduction) . In addition, switching to an image with a different focusing position can be realized by pressing a prescribed key (for example, the Ctrl key) and rotating the mouse wheel or the like at the same time (for example, a forward rotation of the wheel may be assigned to a transition to a deeper image and a backward rotation of the wheel may be assigned to a transition to a shallower image) . The display region 205, the display magnification 206, and the frame line 204 inside the thumbnail image 203 are updated in accordance with a modification operation on the displayed image which is performed by the user as described above. In this manner, the user can observe an image with a desired intra-plane position, depth position, and magnification.
[0026] (Image generating apparatus)
FIG. 3 is a diagram showing an internal configuration of the image generating apparatus 100.
A CPU 301 controls the entire image generating apparatus using programs and data stored in a main memory 302. In addition, the CPU 301 performs various arithmetic processing and data processing such as discrete Fourier transform, filter processing, and viewpoint image synthesis processing which will be described in the examples below.
[0027] The main memory 302 includes an area for temporarily storing programs and data loaded from the storage device 130 and programs and data downloaded from the other computer system 140 via a network I/F (interface) 304. In addition, the main memory 302 includes a work area necessary for the CPU 301 to carry out various processing.
[0028] The input operation device 110 is constituted by a device capable of inputting various instructions to the CPU 301 such as the keyboard 102, the mouse 103, or the dedicated controller 113. The user uses the input operation device 110 to input information for controlling operations of the image generating apparatus 100. Reference numeral 305 denotes an I/O for notifying various instructions and the like inputted via the operation input device 110 to the CPU 301.
[0029] The storage device 130 is a large-capacity storage device such as a hard disk and stores an OS (operating system) , programs and image data which enable the CPU 301 to execute processing described in the following examples, and the like. Writing of information into the storage device 130 and reading of information from the storage device 130 are performed via an I/O 306.
[0030] A display control apparatus 307 performs control processing to cause images, characters, and the like to be displayed on the display 120. The display 120 performs image display for prompting the user's input and displays images based on image data acquired from the storage device 130 or the other computer system 140 and processed by the CPU 301.
[0031] An arithmetic processing board 303 includes a processor in which specific arithmetic functions such as image processing have been enhanced and a buffer memory (not shown) . While the following description assumes that the CPU 301 is used for various arithmetic processing and data processing and the main memory 302 is used as a memory region, a configuration using the processor and the buffer memory in the arithmetic processing board can also be adopted. Such a configuration also falls within the scope of the present invention.
[0032] (Subject)
FIG. 4 represents a prepared slide (also referred to as a slide) of a pathological sample that is an example of a subject. With the prepared slide of the pathological sample, a specimen 400 placed on a slide glass 410 is sealed by an encapsulating agent (not shown) and a cover glass 411 to be placed on top of the encapsulating agent. A size and thickness of the specimen 400 differ for each specimen. Furthermore, a label area 412 that records information regarding the specimen is also provided on the slide glass 410. Information may be recorded in the label area 412 manually using a pen or by printing a barcode or a two-dimensional code. In addition, a storage medium capable of storing information by an electric method, a magnetic method, or an optical method may be provided in the label area 412. The following embodiment will be described using an example in which the prepared slide of the pathological sample shown in FIG. 4 is used as a subject.
[0033] (Image pickup apparatus)
FIG. 5 schematically represents a part of a configuration of an image pickup apparatus which images the subject and acquires a digital image. As shown in FIG. 5, in the present embodiment, an x axis and a y axis are oriented parallel to a surface of the specimen 400 and a z axis is oriented in a depth direction of the specimen 400 (in an optical axis direction of an optical system) . [0034] A prepared slide (the specimen 400) is placed on a stage 502 and light is irradiated from an illuminating unit 501. Light transmitted through the specimen 400 is enlarged by an imaging optical system 503 and forms an image on a light-receiving surface of an image pickup sensor 504. The image pickup sensor 504 is a one-dimensional line sensor or a two-dimensional area sensor having a plurality of photoelectric conversion elements. An optical image of the specimen 400 is converted into an electric signal by the image pickup sensor 504 and outputted as digital data.
[0035] When an image of the entire specimen cannot be acquired in one shot, segmental image pickup is performed a plurality of times while moving the stage 502 in the x direction and/or the y direction and the plurality of obtained segmented images are composited (spliced) to generate an image of the entire specimen. In addition, by taking a plurality of shots while moving the stage 502 in the z direction, a plurality of images (referred to as layer images) with different focusing positions in the optical axis direction (a depth direction) are acquired. In the present description, a group of images made up of a plurality of layer images with different focusing positions in the optical axis direction (the depth direction) is referred to as a "Z stack image" or "Z stack image data". In addition, a layer image or a Z stack image acquired by imaging the subject will be referred to as an "original image".
[0036] A value of magnification that is displayed as the display magnification 206 shown in FIG. 2 is a product of a magnification of the imaging optical system 503 multiplied by an enlargement/reduction ratio on the image display application. Moreover, the magnification of the imaging optical system 503 may be fixed or varied by replacing objective lenses .
[0037] (Description of techniques for generating viewpoint image)
Instead of requiring an observation/image capturing method that modifies an optical system such as dark field observation and phase difference observation, the image generating apparatus 100 generates an intermediate image (a viewpoint image) from a Z stack image by image processing and generates an observation image suitable for observation and diagnosis using the intermediate image. First, techniques that can be used in processing for generating a viewpoint image as an intermediate image from a Z stack image will be described.
[0038] It is known that a viewpoint image observed from an arbitrary direction (an arbitrary viewpoint image) can be generated from a plurality of images (a Z stack image) imaged while varying focusing positions in the optical axis direction. In this case, a viewpoint image refers to an image that observes the subject from a prescribed observation direction (in other words, a viewpoint) .
For example, Japanese Patent Application Laid-open No. 2007-128009 (hereinafter, referred to as Patent Literature 1) discloses a method of generating an image with an arbitrary viewpoint or an arbitrary blur from a group of out-of-focus blurred images imaged while varying focusing positions. This method involves performing coordinate transform processing on a group of out-of-focus blurred images so that a three dimensional out-of-focus blur remains unchanged at an XYZ position and applying three-dimensional filter processing in an obtained orthogonal coordinate system (XYZ) in order to obtain an image with a modified viewpoint or a modified blur.
In addition, Non-Patent Literature 2 discloses an improvement of the method disclosed in Patent Literature 1. According to Non-Patent Literature 2, an integrated image is generated by obtaining a line-of-sight direction from a viewpoint and integrating a Z stack image in the line-of-sight direction, and an integrated image of a three-dimensional blur in the line-of-sight direction is generated in a similar manner. Subsequently, by subjecting the three-dimensional blur integrated image to inverse filter processing with respect to the integrated image of the Z stack image, an effect of a Z direction constraint (the number of layer images) is suppressed and a high-quality viewpoint image can be generated.
Furthermore, Non-Patent Literature 3 discloses a method of speeding up the calculation performed in Non-Patent Literature 2. With the method according to Non-Patent Literature 3, an arbitrary viewpoint image or an arbitrary blur image on a frequency region can be efficiently calculated by a linear coupling of a filter determined in advance independent of a subject (scene) and a Fourier transform image of a group of out-of-focus blurred images at each Z position.
[0039] In the following description, methods of generating a viewpoint image observed from an arbitrary direction (an arbitrary viewpoint image) or generating an image having an arbitrary out-of-focus blur from a plurality of images (a Z stack image) taken while varying focusing positions in the optical axis direction will be collectively referred to as an MFI (multi-focus imaging) arbitrary viewpoint/out-of-focus blur image generating method.
Moreover, with a Z stack image taken while varying focusing positions using a microscope with a bilaterally telecentric optical system, a three-dimensional out-of-focus blur remains unchanged at an XYZ position. Therefore, when applying the MFI arbitrary viewpoint/out-of-focus blur image generating method to a Z stack image taken by a bilaterally telecentric optical system, coordinate transform processing and enlargement/reduction processing of an image that accompanies the coordinate transform processing need not be performed.
[0040] An image pickup apparatus is known which is capable of acquiring, by one imaging operation, an image on which is recorded four-dimensional information (information in which a degree of freedom of a viewpoint position is added to an XY two-dimensional image) that is referred to as a light field. Such an image pickup apparatus is referred to as a light field camera or a light field microscope. In such apparatuses, a lens array is disposed at an original position of an imaging plane and a light field is taken by an image sensor to the rear of the lens array. An image with an arbitrary focusing position or a viewpoint image observed from an arbitrary direction (an arbitrary viewpoint image) can also be generated using known techniques from an original image on which a light field is recorded.
[0041] In the present example, an image with an arbitrary observation direction that is generated by digital image processing from a captured image such as a Z stack image or a light field without physically changing a direction of the image pickup apparatus with respect to the subject will be referred to as a "viewpoint image". The viewpoint image is an image which simulates an image formed on an imaging plane by a luminous flux centered on a main light beam that is an arbitrary light beam passing through an imaging optical system used to image the subject. A direction of the main light beam corresponds to the observation direction. The direction of the main light beam can be arbitrarily set. A magnitude (NA) of the luminous flux can also be arbitrarily set. When the objective is to perform image diagnosis or the like, a depth of field of the viewpoint image is desirably deep. Therefore, NA of the luminous flux with respect to the viewpoint image is desirably equal to or less than 0.1.
[0042] A viewpoint image generated (calculated) by digital image processing is not necessarily consistent with an image photographed by physically changing exposure conditions (an aperture position and/or an aperture size) , the optical axis direction, lenses, or the like of the imaging optical system. However, even if the viewpoint image is not consistent with an actually photographed image, as long as the viewpoint image has features similar to those produced when observing the subject while varying viewpoints (in other words, as long as effects similar to varying observation directions can be imparted by digital image processing) , the viewpoint image is useful for image observation, image diagnosis, and the like. Therefore, an image which is not exactly consistent with an image actually photographed by changing observation directions and the like but which is subjected to digital image processing so that features similar to an actually
photographed image appear is also included in viewpoint images according to the present example.
[0043] According to Patent Literature 1, a viewpoint image observed through a pinhole at a position shifted by a viewpoint
(x. ,y, z) = (s, t, 0) from an origin 0. (x, y, z) = (0, 0, 0) on a lens plane in a real space (corresponding to a pupil plane) can be generated from a group of out-of-focus blurred images subjected to coordinate transform. With the MFI arbitrary viewpoint/out-of-focus blur image generating method, an observation direction from which the subject is observed or, in other words, a line-of-sight direction can be varied by changing a position of a viewpoint on the lens plane.
[0044] A line-of-sight direction can be defined as a gradient of a straight line that passes through a viewpoint position
(x, y, z) = (s, t, 0) on the lens plane among a luminous flux emitted from a prescribed position of the subject corresponding to a formed image. A line-of-sight direction can be expressed in various ways. For example, an expression by a three-dimensional vector representing a traveling direction of the straight line may be adopted. Alternatively, an expression by an angle (observation angle) formed between the three-dimensional vector and an optical axis and an angle (polar angle) formed between the vector when projected on a plane perpendicular to the optical axis and the X axis may be adopted.
[0045] When the imaging optical system is not bilaterally telecentric, a three-dimensional out-of-focus blur on the imaging plane varies depending on a spatial position (a position in the xyz coordinate) of the subject in focus and a gradient of the straight line that passes through the viewpoint position (x, y, z) = (s, t, 0) on the lens plane is not constant. In this case, a line-of-sight direction is favorably defined on an orthogonal coordinate system (XYZ) after the coordinate transform described in Patent Literature 1, whereby a line-of-sight direction can be expressed by a vector (X, Y, Z) = (-s, -t, 1) . Hereinafter, a method of obtaining a line-of-sight direction after coordinate transform will be described.
Patent Literature 1 describes that all light beams connecting arbitrary positions where the imaging optical system is in focus and a position (x, y, z) = (s, t, 0) of a same viewpoint on the lens plane of the image pickup apparatus
(corresponding to the pupil plane) become light beams that are parallel to each other in the orthogonal coordinate system (XYZ) after coordinate transform. (Refer to FIGS. 1 to 3 and descriptions thereof in Patent Literature 1)
[0046] Light exiting a point where the subject exists in a perspective coordinate system (a real space prior to coordinate transform) passes through (p + s, q + t, f) (where f denotes a focal distance) and is refracted at the viewpoint position (x, y, z) = (s, t, 0) . This straight line may be represented by the following expression.
[Expression 1]
(x,y) =—x (p,q) + (s,t) {where z > 0)
The straight line represented by Expression 1 may be represented by the following expression in the orthogonal coordinate system (XYZ) after coordinate transform.
[Expression 2]
(X,Y) = (p,q) + (1 - Z) x (s,t) (where Z≥f)
Since substituting Z = 0 (z = f) and Z = 1 (z = oo) into Expression 2 respectively results in (X, Y, Z) = (p + s, q + t, 0) and (X, Y, Z) = (p, q, 1), the gradient of the straight line in the orthogonal coordinate system (X, Y, Z) may be represented by (-s, -t, 1) .
Therefore, a vector representing a line-of-sight direction in the orthogonal coordinate system after coordinate transform is (X, Y, Z) = (-s, -t, 1).
[0047] Moreover, when the imaging optical system is bilaterally telecentric, a three-dimensional out-of-focus blur in a plurality of images (a Z stack image) photographed while varying focal points in a depth direction is unchanged regardless of the Z position.
Therefore, a coordinate transform for making a
three-dimensional out-of-focus blur unchanged regardless of spatial positions is not required. A gradient (-s, -t, za) of a straight line connecting a prescribed position (x, y, z) = (0, 0, za) of the subject in focus in real space and a viewpoint position (x, y, z) = (s, t, 0) on the lens plane may be regarded, without modification, as a line-of-sight direction.
[0048] (Correspondence between a viewpoint and a polar angle Θ and an observation angle φ when actually observing a sample)
FIG. 23A is a schematic view representing a viewpoint position (x, y, z) = (s, t, 0) in real space, and FIG. 23B is a schematic view representing a light beam that passes through the viewpoint position (x, y, z) = (s, t, 0) in an orthogonal coordinate system (XYZ) .
[0049] A dotted-line circle shown in FIG. 23A represents a range in which light beams can pass through on the lens plane
(z = 0) . If the polar angle Θ is defined as an angle formed between the viewpoint position (x, y, z) = (s, t, 0) on the lens plane and an x axis on the lens plane (z = 0) or an angle formed between a straight line when a viewpoint (-s, -t, 1) is projected on an xy plane and the x axis, then the polar angle Θ may be obtained by the following expression.
[Expression 3]
Figure imgf000028_0001
However, Θ s adjusted to stay within a range of -180 to +180 degrees in accordance with signs of t and s.
[0050] Next, a relationship between a viewpoint and an observation angle φτ on a transformed coordinate will be described with reference to FIG. 23B.
In FIG. 23B, a straight line represented by Expression 2 and a straight line obtained by substituting a point p = 0, q = 0 on the optical axis into Expression 2 are depicted by solid line arrows.
According to Patent Literature 1, Z = 0 in the orthogonal coordinate system (XYZ) corresponds to z = f (or z = -∞) in the perspective coordinate system (xyz) , and Z = 1 corresponds to z = oo (or z = -f) . Therefore, FIG. 23B shows that a luminous flux from infinity (Z = 1) in the orthogonal coordinate system (XYZ) has a spread on a focal plane (Z = 0) in front of the lens plane. (Refer to FIG. 3. and a description thereof in Patent Literature 1)
At this point, if the observation angle φτ on the transformed coordinate is defined as an angle formed between the viewpoint (-s, -t, 1) and the optical axis (Z axis) , since the viewpoint is not dependent on a position of the subject as is apparent from FIG. 23B, the observation angle φτ may be obtained by the following expression.
[Expression 4]
φτ = tan_,(Vj2 + f2 ) Moreover, the two dotted lines in FIG. 23B represent light beams that pass through outermost edges on the lens plane. If an aperture radius of the lens in the perspective coordinate system (xyz) prior to coordinate transform is denoted by ra, then a viewpoint image can only be calculated when the viewpoint position (x, y, z) = (s, t, 0) is within the radius ra.
[0051] Next, a polar angle Θ and an observation angle φ corresponding to a viewpoint when actually observing a sample will be described.
According to Snell's law, when a light beam is incident to a boundary between different refractive indexes, a product of an incidence angle of the light beam and a refractive index of an incident-side medium is equal to a product of a refraction angle of the light beam and a refractive index of a refraction side medium. Since a refractive index of the sample is greater than a refractive index of air, an observation angle in the sample is smaller than an observation angle in air. Therefore, a three-dimensional out-of-focus blur in the sample which is constituted by refracted light beams is smaller than the three-dimensional out-of-focus blur in air. However, since a viewpoint position is calculated in the present example based on a three-dimensional imaging relationship between a sample and a three-dimensional out-of-focus blur in the sample, an effect of the refractive index of the sample need not be considered and the polar angle Θ and the observation angle φ represent an observation direction in the sample without modification . When the imaging optical system is bilaterally
telecentric, since coordinate transform is not required, assuming that a sensor pixel pitch in the x direction and the y direction is the same, the observation angle φ may be represented by the following expression using the sensor pixel pitch ΔΧ in the x direction and a movement interval Δζ (μπι) in the z direction.
[Expression 5]
Figure imgf000030_0001
Moreover, when the imaging optical system is not bilaterally telecentric, the observation angle φ may be obtained using a sensor pixel pitch ΔΧ in the X direction and a movement interval ΔΖ in the Z direction in the orthogonal coordinate system ( XYZ ) in place of ΔΧ and Δζ in Expression 5.
This concludes the description of a polar angle Θ and an observation angle φ corresponding to a viewpoint when actually observing a sample.
In the following description, a viewpoint position (x, y, z) = (s, t, 0) on the lens plane will be abbreviated as a viewpoint (s, t) . In addition, since the following description will be given on the premise of image processing on the orthogonal coordinate system ( XYZ ) , unless otherwise noted, only the viewpoint position (s, t) is to represent a position on a perspective coordinate system (a real space prior to coordinate transform) and other positions are to represent positions in the orthogonal coordinate system (XYZ).
[0052] By applying the method according to Patent Literature 1 on a Z stack image acquired by the image pickup apparatus shown in FIG. 5, a viewpoint image with a varied viewpoint position or, in other words, a varied observation direction can be generated.
A viewpoint image calculated by the method according to Patent Literature 1 has a significantly deep (infinite) depth of field and boundaries between substances in the sample with different transmittance can be clearly seen.
[0053] FIG. 6A is a diagram showing a three-dimensional blur of an optical system in the orthogonal coordinate system (XYZ) . Reference numeral 600 represents a shape of the
three-dimensional blur and shows how there is only a slight out-of-focus blur at a focusing position (apexes of the two cones) but the out-of-focus blur spreads as the Z position separates from the focusing position. Using the method according to Patent Literature 1, a viewpoint image constituted by light beams in an arbitrary line-of-sight direction (for example, a straight line 610) that passes inside the cone 600 from the Z stack image can be generated.
[0054] FIG. 6B shows a situation where a pathological sample (specimen) in the orthogonal coordinate system (XYZ) is seen from a different direction. A diagonal cavity 630 exists inside a sample 620 in FIG. 6B.
Since segments other than the cavity 630 are seen through when observed from a direction 631, a contrast of a wall surface of the cavity 630 is unclear. The same applies when observed from a direction 632 and the contrast of the cavity 630 remains unclear. However, when observed from a direction 633 along the wall surface of the cavity 630, since there are no effects from other segments, the contrast of the wall surface of the cavity 630 becomes clear. Moreover, a state of a relatively high contrast can be maintained even if the line-of-sight direction somewhat differs from the direction of the wall surface of the cavity.
[0055] On the other hand, in a Z stack image of the sample 620, since layer images at any Z position (focusing position) are affected by a multi-directional luminous flux including light beams in the directions 631 to 633, the contrast of the wall surface of the cavity does not become clearer than in the observation image from the direction 633. In addition to a cavity, this phenomenon also applies to a nucleus, a cell membrane, a fiber, and the like.
[0056] This shows that an edge can be more easily detected by using a viewpoint image with a clear contrast than using a Z stack image or a layer image which is an original image without modification. Therefore, by decomposing a Z stack image to viewpoint images ("decomposition to viewpoint images" has the same meaning as "generation of a viewpoint image") and performing edge extraction processing or edge enhancement processing on the viewpoint image, edge detection performance can be improved. According to this method, an edge of a weak-contrast structure that is conventionally difficult to detect from an original image (a layer image) can now be detected with accuracy and information useful for image analysis and image diagnosis can be more readily obtained.
Moreover, in the present description, an operation for extracting only an image of an edge portion or information on the edge portion from an image will be referred to as edge extraction and an operation for improving identiflability of an image of an edge portion or information on the edge portion in an image will be referred to as edge enhancement. However, when edge extraction and edge enhancement need not
particularly be distinguished, the term "edge processing" will be used as a term encompassing both edge extraction and edge enhancement and an image representing an edge that is extracted or enhanced by edge processing will be referred to as an edge image.
[0.057] Hereinafter, specific examples of the image generating apparatus 100 will be described.
[0058] [Example 1]
(Edge extraction setting screen)
FIGS. 7A and 7B show examples of setting screens of an edge extracting function according to Example 1.
After selecting a region 207 in a displayed image in the image display application shown in FIG. 2 using a mouse, an item named "viewpoint-decomposed edge extraction" (not shown) is selected from an extensions menu 208 that is displayed by a right click of the mouse. In response thereto, a new window 700 (FIG. 7A) showing images before and after the edge extraction processing and an edge extraction processing setting screen 703 (FIG. 7B) are displayed. The image in the region 207 is displayed in a left-side region 701 of the window 700 and an image resulting from the edge extraction processing is displayed in a right-side region 702 of the window 700.
[0059] The setting screen 703 is operated when modifying settings of the edge extracting function. When the user presses a viewpoint decomposition setting button 704 with the mouse, a setting screen for determining a direction (a three-dimensional observation direction) of the viewpoint image used for edge extraction is displayed. Moreover, there may be one or a plurality of viewpoints. Details will be given later. When the user presses a viewpoint edge extraction setting button 705, a viewpoint edge extraction setting screen for setting a method or parameters for extracting an edge from a viewpoint image is displayed. Various methods can be selected as a method of extracting an edge. Details of these methods will be given later. When the user presses a viewpoint edge synthesis setting button 706, a setting screen for generating an image (hereinafter, referred to as a viewpoint edge synthesized image) which synthesizes images
(hereinafter, referred to as viewpoint edge extracted images) representing an edge extracted from the viewpoint image is displayed. At this point, setting of weighting on each viewpoint edge extracted image is configured. In addition, if necessary, setting of a noise elimination parameter and the like after synthesizing the viewpoint edge extracted images can be optionally configured. Details will be given later. An overlaid display 707 is a check box. By enabling this setting, the image in the selection region 207 and an edge extracted image are displayed overlaid on each other in the right-side region 702. When the user configures the settings described above as necessary and then presses an execute button 708, a viewpoint image is generated, an edge is extracted, and a processing result is displayed. Details will be given later.
[0060] Reference numeral 710 denotes an extensions menu that can be called by right-clicking inside the window 700. Items for image analysis such as N/C ratio calculation. (not shown) are lined up in the extensions menu 710. By selecting an item, an image analysis processing setting screen (not shown) is displayed, analysis processing is executed on a selection region in the window or on the entire window and a processing result is displayed. Details will be given later.
[0061] (Edge extraction processing)
FIG. 8 shows a flow of edge extraction processing that is executed when the execute button 708 described above is pressed. This processing is realized by the image display application and the image generation program that is invoked from the image display application.
[0062] In a Z stack image acquiring step S801, based on coordinates Of the image selection region 207 displayed by the image display application, data of a necessary range is acquired from a Z stack image stored in the main memory 302 or the storage device 130. Alternatively, when the Z stack image exists in the other computer system 140, data is acquired through the network I/F 304 and stored in the main memory 302.
[0063] Subsequently, in a viewpoint-decomposed edge extraction/synthesis processing step S802, based on information on a viewpoint which determines a line-of-sight direction with respect to the subject (an observation direction) , viewpoint images corresponding to a plurality of viewpoints are generated from the Z stack image (this operation is also referred to as a decomposition into viewpoint images) . In addition, an edge is extracted from each viewpoint image to generate a viewpoint edge extracted image, and the viewpoint edge extracted images are synthesized to generate a viewpoint edge synthesized image. Details will be given later.
[0064] Next, in a contour extraction processing step S803, a contour extracted image which represents a contour extracted from the viewpoint edge synthesized image is generated. It should be noted that the processing of step S803 is not essential and whether or not to apply the processing of step S803 can be modified according to settings (not shown) . Details will be given later.
[0065] Finally, in an image display processing step S804, the contour extracted image, the viewpoint edge extracted image, or the viewpoint edge synthesized image is
enlarged/reduced in accordance with a display magnification of the image display application and displayed in the right-side region 702. When the overlaid display 707 is enabled, the contour extracted image, the viewpoint edge extracted image, or the viewpoint edge synthesized image is displayed overlaid on the image in the selection region 207. In doing so, an image to which the viewpoint edge extracted image or the viewpoint edge synthesized image of a
corresponding position is added to the image in the selection region 207 may be displayed in the right-side region 702. Furthermore, an image obtained by performing tone correction on the added image so that brightness approximates that of the image in the selection region 207 may be displayed in the right-side region 702. An animation display which switches among the plurality of viewpoint edge extracted images at a constant time interval may be performed. In this case, the contour extracted image, the viewpoint edge extracted image, or the viewpoint edge synthesized image may be displayed in a different color for each channel (RGB) or may be changed to another color that differs from the color of the sample. The images used for display in this case (the contour extracted image, the viewpoint edge extracted image, the viewpoint edge synthesized image, and an image obtained by compositing these images with the original image) are all observation images suitable for image observation and image diagnosis.
[0066] (Viewpoint-decomposed edge extraction/synthesis processing)
FIG. 9 is a flow chart showing internal processing of the viewpoint-decomposed edge extraction/synthesis processing S802.
First, in a viewpoint acquisition processing step S901, positional information of a viewpoint necessary for generating a viewpoint image in a subsequent step S902 is acquired. In step S901, positional information of a viewpoint determined in advance may be acquired from the main memory 302, the storage device 130, or the other computer system 140. Alternatively, in step S901, positional information of a viewpoint may be obtained by calculation based on information set on the image display application. Details will be given later.
[0067] Subsequently, in a viewpoint image generation step
5902, a viewpoint image corresponding to the viewpoint obtained in step S901 is generated based on the Z stack image of the selection region 207 acquired in step S801. Moreover, as a method of generating an arbitrary viewpoint image from a Z stack image (an MFI arbitrary viewpoint/out-of-focus blur image generating method) , any method including the methods according to Patent Literature 1 and Non-Patent Literature 2, 3 and 4 may be used.
[0068] Next, in a viewpoint edge extraction processing step
5903, edge extraction processing is performed on the generated viewpoint image based on the viewpoint edge extraction setting (705) . When there are a plurality of viewpoints, the viewpoint edge extraction processing is executed for each of the viewpoints. Details will be given later.
Subsequently, in a viewpoint edge synthesized image generating step S904, based on the viewpoint edge synthesis setting (706) , the plurality of viewpoint edge extracted images generated in step S903 are composited to generate a viewpoint edge synthesized image. Details will be given later .
Hereinafter, details of the viewpoint acquisition processing step S901, the viewpoint edge extraction processing step S903, and the viewpoint edge synthesized image generating step S904 will be described.
[0069] (Viewpoint acquisition processing step S901)
Hereinafter, a case in which positional information of a viewpoint is calculated in the viewpoint acquisition processing step S901 based on the viewpoint decomposition setting (704) will be described.
A viewpoint decomposition setting screen 1001 shown in FIG. 10A is an example of a setting screen that is displayed when the viewpoint decomposition setting button 704 is pressed. In this case, a viewpoint position of a viewpoint image used for edge extraction is set.
The setting screen 1001 offers two options as viewpoint setting methods: direct setting and mesh setting. In direct setting, the number of viewpoints and a viewpoint position (s, t) are directly specified by the user. On the other hand, in mesh setting, an outer diameter, an inner diameter (center shielded) , and a discretizing step are specified by the user, and a position of each viewpoint is calculated from the specified values.
[0070] A maximum deviation of a calculated viewpoint is specified for "outer diameter" and a minimum deviation of a calculated viewpoint (in other words, a maximum deviation of a viewpoint not calculated) is specified for "inner diameter (center shielded) ". In this case, values of the outer diameter and the inner diameter (center shielded) are set according to distances (radii) centered on an origin on the lens plane. Moreover, a value exceeding a radius ra of the optical system on the lens plane cannot be set as the outer diameter.
"Discretizing step" is an increment interval for discretely setting positions of viewpoints for which viewpoint images are generated within a donut-shaped region created by subtracting a circle defined by the "inner diameter" from a circle defined by the "outer diameter". The finer the discretizing step, the larger the number of viewpoints to be calculated.
[0071] Moreover, various shapes can be set in addition to the circles described above. For example, a plurality of concentric circles with different radii or straight lines radially extending from a center can be set. When concentric circles are set, a discretizing step (for example, an angular interval setting) that determines a radius of each circle or a density of viewpoints on each circle can be set . In addition, in the case of straight lines radially extending from a center, a discretizing step that determines an interval of lines (for example, an angular interval setting) or a density of viewpoints on the radial lines can be set.
[0072] (Viewpoint edge extraction processing step S903)
A viewpoint edge extraction setting screen 1002 shown in FIG. 10B is an example of a setting screen that is displayed when the viewpoint edge extraction setting button 705 is pressed. In this case, an edge extracting method or parameters used when performing edge extraction from a viewpoint image are set.
[0073] A method field in the setting screen 1002 enables selection of an edge extracting method to be applied to a viewpoint image.
A large number of methods are available as the edge extracting method. Examples of edge extracting filters include primary differential filters such as a Sobel filter and a Prewitt filter and secondary differential filters such as a Laplacian filter and a LOG (Laplacian Of Gaussian) filter that is a derived form of a Laplacian filter. Another example of an edge extracting filter is a high-pass filter and a bandpass filter which operate on a Fourier frequency. In addition, another method of edge extraction involves subjecting an image to a Fourier transform and performing an inverse Fourier transform after normalizing an amplitude spectrum to 1 in order to obtain a Fourier phase image with enhanced shape information. A zero cross detecting method in which a position where a secondary differentiation becomes zero and Prewitt template matching which detects an edge using an array with directionality can also be applied.
Furthermore, edge extraction by a Gabor filter that is used in facial recognition or fingerprint recognition or a Canny Edge Detector that is often used in the field of computer vision can also be applied. In addition, a bilateral filter that is a noise eliminating method eliminates noise while retaining an edge. Since a difference between an edge and a flat region is enhanced by repetitively applying a bilateral filter, this method can also be used as an edge extracting method.
Furthermore, edge extraction can also be carried out by combining the methods described above.
[0074] As shown, various methods or combinations thereof can be used for the edge extraction processing applied to a viewpoint image. However, in the present example, in order to improve detection performance when detecting an edge from a viewpoint edge synthesized image, edge extraction processing without linearity (in other words, non-linear edge extraction processing) is desirably used. A reason therefor will be described below.
[0075] Generally, linearity refers to a function f (x) having the following properties.
• With respect to arbitrary x and y, f (x + y) = f (x) + f (y)
• With respect to arbitrary x and a, f (ax) = af(x)
[0076] Since edge extraction processing can be regarded as a function with respect to an image, the linearity of the edge extraction processing can be defined in the same way.
For example, if the edge extraction processing is denoted by h and an i-th viewpoint image is denoted by Ii, when the edge extraction processing has linearity,
[Expression 6]
∑*(/,) = *(∑/,)
is satisfied. This expression shows that a viewpoint edge synthesized image ∑h(Ii) resulting from the synthesis of a viewpoint edge extracted image h(Ii) obtained from each viewpoint image Ii is equivalent to an edge extraction processing result h (∑Ii) with respect to a viewpoint composite image ∑Ii.
In other words, edge extraction processing without linearity means that a result h (∑Ii) of edge extraction processing performed on a composite image ∑Ii that has been composited from a plurality of images Ii and a result ∑h(Ii) of compositing the respective images Ii after being subjected to the edge extraction processing are not consistent with each other .
[0077] As described earlier, with a viewpoint composite image, light beams gather from various directions and a contrast of an object before and after a focusing position tends to decline. Therefore, using edge extraction processing with linearity causes an edge extraction effect at each viewpoint image to cancel each other when synthesizing the viewpoint edge extracted images and the edge extraction effect weakens as a whole. For this reason, edge extraction processing with nonlinearity is desirably used to ensure that the edge extraction effects do not cancel each other due to synthesis.
[0078] The nonlinearity of edge extraction processing is satisfied by using a nonlinear filter. Even when a filter with linearity is used, nonlinearity can be achieved by subjecting outputs of the filter (edge extraction results) to processing (for example, an absolute value, a squared value, and binarization) and then synthesizing the processing outputs. For example, with a Sobel filter or a Prewitt filter, after obtaining differential values in the x direction and the y direction with respect to a pixel position I (i, j ) in an image, a gradient magnitude g(i, j) is obtained. Examples of calculation formulas of the gradient include the following. All of the calculation formulas realize nonlinearity while using a linear filter.
[Expression 7]
Figure imgf000044_0001
where fx = I(i + 1, j) - I (i - 1, j), fy = I(i, j + 1) - I(i, j - 1), and max ( ) denotes a function for obtaining a maximum value from arguments in parentheses.
In addition, it is also effective to vary the filter applied to each viewpoint image. As shown in the expression below, if a function of a filter operation applied to an i-th viewpoint image is denoted by hi, linearity is not satisfied unless all hi share the same filter.
[Expression 8]
Figure imgf000044_0002
[0079] In edge extraction processing, parameters of the applied edge extraction processing are favorably modified in accordance with a line-of-sight direction of a viewpoint . image. In a viewpoint image, a contrast of a structure in a direction similar to the line-of-sight direction becomes clearer than in an original image and a contrast of structures in other directions are unlikely to become clearer.
Therefore, by modifying the parameters of the edge extraction processing so that an edge perpendicular to the line-of-sight direction in an XY plane is extracted or enhanced, edge extraction or edge enhancement can be performed in an efficient (effective) manner. As a specific method, a coefficient of a filter may be adaptively modified in accordance with a line-of-sight direction so that the line-of-sight direction and an edge detection direction are consistent with each other.
FIGS. 11A to 11H show examples of a 3 χ 3 template used in Prewitt template matching. Arrows described below the 3 x 3 templates indicate edge detection directions. An edge detection direction can be controlled by varying an array of nine coefficients that make up a filter. When using these filters, an edge detection direction indicated by an arrow may be conformed to the line-of-sight direction in the XY plane.
[0080] Alternatively, a two-dimensional Gabor filter can be used as a filter for detecting an edge that is perpendicular to the line-of-sight direction. A two-dimensional Gabor filter is a filter expressed as a product of a Gaussian function and a cos function and is represented by the expression below. [Expression 9]
X + γ2γ X'
g(X,Y,λ,θ,ψ,σ,γ) = exp( — L ) cos(2;r— +ψ)
2σ λ
where X = Xζοζθ+ Y ηθ , Υ' =- sin# + 7cos#
λ denotes a wavelength component of the cos function part, ψ denotes a phase offset of the cos function part, Θ denotes a direction of a striped pattern of the function, σ denotes a variance of the Gaussian function part , and γ denotes an aspect ratio of the Gaussian function part.
Since a two-dimensional Gabor filter can vary coefficients in an arbitrary direction, an edge extracting effect can be further improved by creating a filter that conforms to a line-of-sight direction of the viewpoint image to be generated.
[0081] FIG. 12 is a flow chart showing internal processing of the viewpoint edge extraction processing S903 that is dependent on a line-of-sight direction. As shown in FIG. 9, the processing shown in FIG. 12 is repetitively executed for all viewpoints.
[0082] First, in a viewpoint polar angle calculating step S1201, a polar angle of a viewpoint that is a processing object is calculated. As shown in FIG. 23A, if a position of a prescribed viewpoint is denoted by (sp, tp) , then a polar angle θρ of the viewpoint can be calculated by.
[Expression 10]
However, the polar angle is adjusted to stay within a range of -180 to +180 degrees in accordance with signs of s and t.
[0083] Moreover, a radius rp of the viewpoint can be calculated by [Ex 11]
Figure imgf000047_0001
In addition, the position (sp, tp) of the viewpoint can be expressed using the polar angle θρ and the radius rp as
[Expression 12]
Op/p) = O cos0p,rp si #p) .
[0084] Next, in step S1202, a filter is read out or generated based on the polar angle of the viewpoint calculated in step S1201.
When the arrays of Prewitt template matching shown in FIGS. 11A to 11H are used as the edge extracting filter dependent on the line-of-sight direction, since directions are limited to eight directions, an array whose direction is closest to the polar angle of the viewpoint is selected and a filter is readout. In addition, a two-dimensional Gabor filter can also be used as an edge extracting filter, and by setting the polar angle of the viewpoint as Q, a filter whose coefficients vary along an arbitrary line-of-sight direction can be generated. Moreover, λ and σ of the two-dimensional Gabor filter may be default values based on a pixel pitch and magnification or may be values corresponding to the radius of a viewpoint.
Alternatively, λ and σ may be varied based on features of the subject or the like.
Subsequently, in a filter processing step S1203, filter processing is performed on the viewpoint image using the filter read out or generated in step S1202 to extract an edge.
[0085] A modification of the processing shown in FIG. 12 will now be described. As is the case of Prewitt template matching or edge extraction using a Gabor filter, it is possible to apply filters of a plurality of directions (for example, eight directions) to a single viewpoint image to improve edge extraction performance in the plurality of directions while preventing linearity from being satisfied. For example, by enhancing a result of edge extraction performed by a filter corresponding to the polar angle of a viewpoint more than results of other filters for each viewpoint image and synthesizing the enhanced results, intensities of filters are varied depending on viewpoints. Therefore, linearity is not satisfied even if a filter is fixed.
[0086] FIG. 13 shows an example of a flow chart of internal processing of viewpoint edge extraction processing that is dependent on a line-of-sight direction when edge extraction is performed from multiple directions for each viewpoint image. The processing shown in FIG. 13 is repetitively executed for each viewpoint in a similar manner to the processing shown in FIG. 12.
[0087] In a viewpoint polar angle calculating step S1301, a polar angle of a viewpoint that is a processing object is calculated in a similar manner to step S1201.
Next, in step S1302, a variable Al that stores a sum of an intensity variable magnification of each filter direction and a two-dimensional buffer Bl that stores viewpoint edge extracted images are respectively initialized to zero.
[0088] Subsequently, in step S1303, a first filter among filters that are repetitively applied to each individual viewpoint image is read out or generated. For example, when the eight filters depicted in FIGS. 11A to 11H are sequentially applied, a filter set first (for example, FIG. 11A) is read out. Alternatively, when N-number (for example, 16) of two-dimensional Gabor filters with different Θ are applied to each individual viewpoint image, a first angle Θ is set and a two-dimensional Gabor filter is read out or generated.
Next, in a filter processing step S1304 , filter processing is performed on the viewpoint image that is a processing object using the filter read out or generated in step S1303 or step S1309.
[0089] Subsequently, in a direction determining step S1305, a determination is made on whether not the polar angle of the viewpoint obtained in the viewpoint polar angle calculating step S1301 and the edge detection direction of the filter applied to a viewpoint image in the filter processing step S1304 are consistent with each other or whether not a difference ΔΘ between both angles is within a prescribed range. A determination of whether or not a difference in angles is within a prescribed range is made in order to determine whether or not an edge detection direction of a present filter is closer to the polar angle of the viewpoint than an edge detection direction of an adjacent filter. For example, when applying the eight filters depicted in FIGS. 11A to 11H, the prescribed range is -22.5 degrees or more and less than 22.5 degrees.
When a determination result of the direction determining step S1305 is true, an intensity variable magnification M (where M is a real number larger than 1; for example, M = 3) is added to the variable Al and the processing proceeds to step S1306. If false, 1 is added to the variable Al and a transition is made to an addition processing step S1307.
[0090] In an enhancement processing step S1306, a pixel value of an image that is the filter processing result obtained in the filter processing step S1304 is enhanced by a factor of M. For example, when using the eight filters depicted in FIGS. 11A to 11H, if the polar angle of the viewpoint is 0 degrees, a direction of a filter is also 0 degrees, and the angles are consistent with each other, the pixel value of an image that is the filter processing result is multiplied by M.
Next, in the addition processing step S1307, a result of edge extraction (depending on conditions, intensity is further multiplied by M) performed on a viewpoint image is added to the two-dimensional buffer Bl .
[0091] Subsequently, in S1308, a determination is made on whether or not all filters have been applied to the viewpoint image that is a processing object. If false, a transition is made to step S1309 to read out or generate a next filter, and a transition is made to the filter processing step S1304. If true, a transition is made to a normalization processing step S1310.
Next, in the normalization processing step S1310, a value of each pixel of the two-dimensional buffer Bl is divided by the value of the variable Al . Due to the processing described above, even when multiple filters are applied to one viewpoint image, viewpoint edge extraction processing in which linearity is not satisfied can be realized.
Alternatively, in the filter processing step S1304, nonlinearity may be achieved by obtaining an absolute value or a square value of the filter processing result. Even in this case, in a similar manner, when the polar angle of the viewpoint and the filter direction are consistent with each other in the directionality determining step S1305, an effect of the edge extraction processing can be improved by making a transition to the enhancement processing step S1306 and enhancing the processing result.
In addition, as already described, linearity can be prevented from being satisfied by methods other than the processing shown in FIG. 13. For example, nonlinearity can be realized by collecting processing results of linear filters applied from a plurality of directions in a similar manner to a Sobel filter or a Prewitt filter, and obtaining a square root of a sum of square values, a sum of absolute values, a maximum value of absolute values, or the like of the processing results as a final filtering result.
[0092] Moreover, the viewpoint edge extraction processing may be performed on a Fourier transform. In the case of a large filter such as a two-dimensional Gabor filter, filter processing takes less time on a Fourier transform. In this case, an inverse Fourier transform need not be performed after the processing and an inverse transform may be performed during subsequent generation of a viewpoint edge synthesized image.
In addition, a noise elimination setting can be configured on the viewpoint edge extraction setting screen 1002.
Binarization by a threshold, a median filter, a bilateral filter which enables noise elimination while retaining an edge, or the like can be applied as the noise elimination setting. Due to this processing, an edge with clearer contrast can be extracted and an N/C ratio can be more readily detected.
[0093] (Viewpoint edge synthesized image generating step S904)
A viewpoint edge synthesis setting screen 1003 shown in FIG. IOC is an example of a setting screen that is displayed when the viewpoint edge synthesis setting button 706 is pressed. At this point, a compositing method used when synthesizing viewpoint edge extracted images is set. The setting screen 1003 has a list box for selecting a compositing method to be used when synthesizing the respective edge extracted images. Various compositing methods such as "equal", "Gaussian blur", and "select/composite maximum value" can be selected. In this case, "equal" represents a method of compositing the respective edge extracted images using equal weighting and "Gaussian blur" represents a method using weighting obtained by a Gaussian function in accordance with a distance from an origin (on the optical axis) of each viewpoint. In addition, "select/composite maximum value" represents a method of creating a composite image with a same size as the respective edge extracted images by comparing pixel values at a same position on the respective edge extracted images and selecting a maximum pixel value.
[0094] In the viewpoint edge synthesized image generating step S904, a plurality of viewpoint edge extracted images are synthesized to generate a viewpoint edge synthesized image.
Moreover, when the viewpoint edge extracted images are Fourier space frequency expressions, the synthesis is performed on a Fourier transform and an inverse Fourier transform is subsequently performed. Since linearity is satisfied in a Fourier transform, a spatial synthesis and a synthesis on a frequency followed by an inverse transform produce the same result.
In addition, in the viewpoint edge synthesized image generating step S904, noise elimination may be performed in order to eliminate noise included in edge extracted images in a similar manner to the viewpoint edge extraction processing step S903. In this case, a noise elimination setting is configured on the setting screen 1003.
It should be noted that the setting screens shown in FIGS.. 10A to IOC merely represent examples. A function for configuring default settings or a function that automatically sets optimum values is desirably provided so that a pathologist who is the user can promptly make observations and diagnoses without being hassled by settings.
[0095] This concludes the description of the
viewpoint-decomposed edge extraction/synthesis processing (S802 in FIG. 8) according to the present example.
[0096] (Contour extraction processing)
Next, an example of contour extraction processing (S803 in FIG. 8) will be described.
While an edge is enhanced in a viewpoint edge synthesized image, the viewpoint edge synthesized image also contains high and low levels of noise and signals. In consideration thereof, contour extraction processing is performed to make a contour more visible. For example, a contour can be extracted by binarizing a viewpoint edge synthesized image (a value determined in advance may be used as a binarization threshold or a binarization threshold may be dynamically determined) and subsequently repeating expansion/contraction processing. In addition, other contour extracting methods include various known techniques and, in this case, any method can be used. Furthermore, by adding a line thinning process, accuracy of positions where a contour exists can be improved. As a result of the processing, a contour extracted image is obtained from the viewpoint edge synthesized image.
[0097] ( Display/analysis of image)
Subsequently, after the image display processing S804, by displaying the viewpoint edge extracted image, the viewpoint edge synthesized image, or the contour extracted image on the image display application, a cell boundary between cells, a boundary between a cell and a sinusoid, and the like can be made more distinguishable. Accordingly, the
pathologist can more easily visualize a three-dimensional structure of an affected tissue.
[0098] Furthermore, by invoking the extensions menu 710 by right-clicking the mouse in the window 700 and selecting an item such as N/C ratio (nucleus/cytoplasm ratio) calculation or the like, image analysis can be performed.
[0099] FIG. 14 shows an example of a processing flow of N/C ratio calculation.
N/C ratio calculation is premised on the use of two images, namely, an image in the selection region 207 in the left-side region 701 and a contour extracted image. Hereinafter, a portion of a nucleus in an image is referred to as a nucleus region, a portion of cytoplasm surrounding the nucleus is referred to as a cytoplasm region, and a combined whole of the nucleus region and the cytoplasm region is referred to as a cell region.
[0100] First, in a nucleus region determination processing step S1401, a nucleus region is determined. Examples of methods thereof include the following method. With HE staining, since the inside of a nucleus is stained deep blue, whether or not a region is a nucleus region can be determined based on whether or not pixels in the selection region 207 positioned inside a corresponding closed region in the contour extracted image belong in a prescribed color gamut range at a certain ratio or more. The ratio and the color gamut used for the determination may be learned in advance using a plurality of samples.
[0101] Next, in a cytoplasm region determination processing step S1402, a cytoplasm region is determined. With HE staining, a cytoplasm is stained in pink. Therefore, in a similar manner to the nucleus region determination processing, whether or not a region is a cell region can be determined based on whether or not pixels in the selection region 207 positioned inside a corresponding closed region in the contour extracted image belong in a prescribed color gamut range at a certain ratio or more. Subsequently, a cytoplasm region is identified by subtracting a closed region that is assumed to be a nucleus region in step S1401 from the cell region. The ratio and the color gamut used for this determination may also be learned in advance using a plurality of samples.
[0102] When automatic processing is unable to achieve sufficient accuracy, a region may be determined with an intervention (assistance) by the user. In this case, after step S1402, a setting screen that enables the user to correct a contour, a nucleus region, or a cell region is displayed on the GUI.
[0103] Finally, in an N/C ratio calculation processing step S1403, an area of the nucleus region is divided by an area of the cytoplasm region obtained above to calculate an N/C ratio.
The N/C ratio calculation flow described above is merely an example and various modification and improvements can be made thereto.
[0104] (Advantages of present example)
As described above, in the present example, by decomposing a Z stack image into' viewpoint images and performing edge extraction, a cell membrane, a cell boundary, and a boundary between a cell and a tube or a cavity which are useful when observing a sample can be clarified without having to modify optical systems or exposure conditions. Accordingly, a diagnosis supporting function which includes presenting images useful for diagnosis and calculating an N/C ratio can be realized.
[0105] Moreover, while the present example is configured so that the viewpoint-decomposed edge extraction/synthesis processing is executed when the execute button 708 is pressed, the viewpoint-decomposed edge extraction/synthesis
processing may be executed every time the setting parameters shown in FIG.7B and FIGS.10A to IOC are modified. As a result, processing results are to be displayed in real-time in synchronization with modifications made to the setting parameters. In the case of this configuration, the setting items shown in FIG. 7B and FIGS. 10A to IOC may be deployed and arranged in a single setting screen. Such an
implementation is also included in the scope of the present invention .
[0106] [Example 2]
While Example 1 describes the extraction of an edge from a viewpoint image, Example 2 describes a method of generating an image with an enhanced edge from a viewpoint image.
However, since there is only a slight difference from Example 1, a description will be given by replacing a part of the explanatory diagrams of Example 1. Hereinafter, the term "edge extraction" contained in the names of the respective steps and respective components shown in FIGS. 7 to 10 will be replaced with "edge enhancement" and a difference thereof will be described.
[0107] An edge enhancing method used in the viewpoint edge enhancement processing S903 shown in FIG. 9 can be set on a viewpoint edge enhancement setting screen 1002 shown in FIG. 10B. Examples of edge enhancing methods that can be selected include an unsharp mask.
[0108] An unsharp mask is a type of an image sharpening method and realizes sharpening by subtracting an image that is a blurred original image from the original image and adding the difference image subjected to threshold processing and enhancement processing to the original image. An image U (X, Y) resulting from applying an unsharp mask to an original image I (X, Y) can be represented by the following expression. [Expression 13]
U{X, Y) = I(X, Y) + Amountx D(X, Y)
where D (X, Y) = 0 if |D (X, Y) | < Threshold.
I (X, Y) denotes the original image, D (X, Y) denotes a difference image, and Amount denotes an adaptation amount of the difference image to the original image.
[0109] The difference image D (X, Y) may be calculated by the following expression.
[Expression 14]
D(X, Y) = I(X, Y) - G(X, Y) * *I(X, Y) [0110] The difference image D (X, Y) is an image resulting from a subtraction of a blur image obtained by convolving a Gaussian function G (X, Y) into the original image I (X, Y) from the original image I (X, Y) (** is assumed to be a symbol representing a two-dimensional convolutional operation) . Moreover, the Gaussian function G (X, Y) can be represented by the following expression.
[Expression 15]
Figure imgf000059_0001
[0111] As described above, using an unsharp mask enables an amount of modification of the original image I (X, Y) to be controlled by adjusting a standard deviation σ of a Gaussian function, an adaptation amount Amount of a difference image, and a threshold Threshold, and an image with an enhanced edge can be generated.
In the present example, an unsharp mask is applied for each viewpoint image to generate an image with an enhanced edge. Appropriately setting the threshold Threshold enables an edge portion with high contrast to be further enhanced while leaving portions with relatively low contrast unmodified. As a result, an effect that cannot be realized by enhancement processing on an image at a focusing position can be produced.
[0112] In the viewpoint edge synthesized image generating step S904 shown in FIG. 9, viewpoint edge enhanced images of the respective viewpoints are synthesized and outputted.
On the viewpoint edge synthesis setting screen 1003 shown in FIG. IOC, a compositing method to be used when synthesizing the viewpoint edge extracted images can be selected in a similar manner to Example 1. When observing a viewpoint edge synthesized image, while it is preferable to have the contrast of an edge portion enhanced, the viewpoint edge synthesized image is more easily observed (less unnatural) when an appearance of portions other than the edge portion resembles that of an image at a focusing position. In order to obtain such an image, a weighting setting that approximates a three-dimensional blur of an original optical system such as a Gaussian blur may be selected on the viewpoint edge synthesis setting screen 1003.
The generated viewpoint edge synthesized image is displayed in the right-side region 702 of the window 700 in the image display processing step S804 shown in FIG. 8.
[0113] Moreover, while edge enhancement using an unsharp mask has been described in the present example, other methods may be used as long as an edge in a viewpoint image can be selectively enhanced. For example, an original image may be blurred using a blur function other than Gaussian blur to obtain a difference image . As the blur function, a nonlinear function or a function that varies depending on a viewpoint may be used in a similar manner to Example 1. In addition, the adaptation amount Amount of a difference image or the threshold Threshold with respect to the difference image may be varied depending on an image. Furthermore, by inputting an enhanced image generated using the present example to a known diagnosis supporting algorithm, an effect of improving a calculation accuracy of a quantitative evaluation value such as an N/C ratio can be achieved in a similar manner to Example 1.
[0114] As described above, according to the present example, an easily observable sample image in which a cell membrane, a cell boundary, and a boundary between a cell and a -tube or a cavity are enhanced can be generated without performing imaging that involves switching among optical systems or modifying photographic conditions such as exposure. As a result, an effect of improving diagnostic efficiency of a doctor can be achieved.
[0115] [Example 3]
In the present example, a method of performing edge extraction or edge enhancement more effectively and achieving calculation load reduction by obtaining a viewpoint that is calculated in advance from a Z stack image will be described.
In Examples 1 and 2 above, a method has been described in which the user sets a position of a viewpoint to be calculated during viewpoint decomposition setting (refer to FIG. 10A) . However, if a direction of an edge included in an original image is known in advance, a viewpoint at which an edge is more readily extracted can be determined. In consideration thereof, in the present example, a direction of an edge included in an original image is estimated by analyzing a Z stack image, and a viewpoint for which a viewpoint image is to be generated is determined based on the estimated edge direction. Accordingly, edge extraction or edge enhancement can be performed more effectively and a reduction in calculation load by reducing the number of viewpoint images to be calculated can be expected.
[0116] FIG. 15 shows a flow chart of viewpoint-decomposed edge extraction/synthesis processing (S802 in FIG. 8) according to the present example.
In a viewpoint determination processing step S1501, the Z stack image acquired in the Z stack image acquiring step S801 shown in FIG. 8 is analyzed to determine a viewpoint suitable for observation. Since processing of a viewpoint image generation step S1502 and thereafter are similar to the processing with the same names shown in FIG. 9, a description thereof will be omitted.
[0117] Details of the viewpoint determination processing will be described. FIG. 16 is a flow chart showing internal processing of the viewpoint determination processing step S1501.
In a representative image acquiring step S1601, a representative image is acquired from the Z stack image. Subsequently, in a viewpoint selection processing step S1602, a direction of an edge in an image to be extracted or enhanced which exists in the representative image is estimated (detected) and a position of a viewpoint suitable for observation is selected based on the estimated (detected) edge direction .
[0118] In this case, a representative image refers to a single image which represents a feature of the Z stack image and which is used for obtaining an edge of an image to be extracted or enhanced with a smaller calculation load.
Examples of a representative image include an image in which the subject is most in focus among the plurality of layer images that constitute the Z stack image, an all-in-focus image generated from the plurality of layer images, and reduced images of such images.
[0119] Methods of selecting an image in which the subject is most in focus include a method involving applying processing involving calculating a dispersion of pixel values in a prescribed rectangular region at each pixel on an entire image for each of the layer images and selecting an image having a maximum sum of dispersions over the entire image.
Alternatively, known techniques in the field of automatic focusing as well as various other methods can be applied.
In addition, generation of an all-in-focus image can be realized by generating a viewpoint image in which a line-of-sight direction is conformed to an optical axis direction using the method according to Patent Literature 1. Alternatively, various known techniques can be applied including a select and merge method in which pixels with large variations in pixel value in a depth direction are selected from a Z stack image and merged.
Furthermore, when a reduced image already exists in a format in which a Z stack image is stored, the reduced image may be used as the representative image. For example, when each of the Z stack images is compression-encoded by JPEG2000, each of the Z stack images has already been subjected to a discrete wavelet transform. Therefore, by acquiring a low-frequency image component of the discrete wavelet transform and generating an image, the calculation load for generating a representative image can be reduced.
[0120] FIG. 17 is a flow chart showing internal processing of the viewpoint selection processing step S1602 according to the present example. In the present example, an edge is detected from an original image using an edge detecting method such as a Hough transform, a direction of the edge is obtained from the detection result, and information on the edge direction is used to determine a viewpoint.
In a binarization processing step S1701, binarization processing is performed on the representative image to obtain a binarized image. As the binarization processing, in addition to simple binarization processing that uses a fixed threshold, adaptive binarization processing in which a threshold is determined in accordance with image features may be used. In order to further improve edge detection accuracy, the wide variety of edge extraction processing described in Example 1 may be applied to the representative image before performing the binarization processing.
[0121] Subsequently, in a Hough transform step S1702 , a Hough transform is performed on the binarized image. A Hough transform is a transform for transforming a straight line which may pass through a single point in an XY space into a locus in a different space (for example, a θρ space) and is capable of obtaining a straight line in the XY space or, in other words, a direction of an edge from a point with a large number of votes in a transform space. In the case of a θρ space, p denotes a length of a perpendicular lowered to a straight line in the XY space from an origin, and Θ denotes an angle formed between the perpendicular and the X axis.
[0122] Next, in a top vote-getter position acquiring step
51703, the top Na-number of vote-getters in the θρ space of the Hough transform is selected and respective θρ coordinates thereof are acquired.
Subsequently, in a viewpoint position calculating step
51704, a position (sp, tp) of a viewpoint is calculated based on the Θ coordinate acquired in the top vote-getter position acquiring step S1703. Since the Θ coordinate in the θρ space represents an angle of a direction perpendicular to a straight line (edge) in the XY space, Θ is set as a polar angle θρ of the viewpoint . Next, a position of the viewpoint is calculated using values (for example, five) of a radius rp of a viewpoint determined in advance and the polar angle ΘΡ of the viewpoint. Moreover, as the radius of the viewpoint, a fixed value determined in advance or a value determined based on a pixel pitch, a magnification, or a feature of the subject is set.
[0123] FIGS. 19A to 19D are schematic views of pathological samples. Calculation of a viewpoint position will now be described in a specific manner with reference to these drawings .
FIG. 19A shows a representative image of a region having a strong image component in a particular direction such as a muscle fiber. For example, an angle perpendicular to a straight line of an edge is obtained as -30 degrees from a result of a Hough transform performed on the representative image shown in FIG. 19A and the angle is set as a polar angle of a viewpoint.
[0124] Moreover, in order to narrow down positions of viewpoints at which a variation in contrast of an edge is easily observed from the plurality of viewpoint positions obtained in the viewpoint position calculating step S1704, processing such as that described below may be additionally performed after step S1704.
[0125] FIG. 19B is a schematic view.of a cross section when a Z stack image is sliced in a direction of the polar angle described earlier. This diagram schematically shows an example in which the Z stack image is constituted by five layer images .
First, a position of a viewpoint is calculated based on a combination of radii of a plurality of viewpoints determined in advance and the Na-number of polar angles obtained in step S170 .
Next, a band-like region which has a constant width Δρ and which is centered on a straight line (edge) in an XY space corresponding to a coordinate on a θρ space of the Hough transform used when obtaining the polar angles of the viewpoints is cut out from the Z stack image. As a result, a Z stack image such as that shown in FIG. 19B is obtained. Next, for each viewpoint, an integrated image which integrates the band-like Z stack image described above along a line-of-sight direction (X, Y, Z) = (-s, -t, 1) obtained from the position of the viewpoint is created. Subsequently, a viewpoint position at which a dispersion of the integrated image is the largest is determined as a final viewpoint.
[0126] Moreover, when narrowing down positions of viewpoints, a calculation load can be suppressed by adopting the following configuration. First, two-dimensional data resulting from integrating the inside of the band-like region of the Z stack image in a direction perpendicular to the line-of-sight direction in the XY plane (corresponding to a fiber direction in FIG. 19A) is created. Subsequently, the integrated two-dimensional data is integrated in the line-of-sight direction. Finally, dispersion is calculated.
According to the processing described above, a list of viewpoints used for calculation is created.
[0127] Generating a viewpoint image from a viewpoint obtained as described above produces a viewpoint image in which an edge included in an image can be more enhanced than a viewpoint image in a direction determined mechanically regardless of features of the image (for example: polar angle 45 x n degrees, where n = 0 to 7; radius 0.25 x m, where m = 0 to 7) . Accordingly, an effect of improving edge extraction performance can be obtained.
As shown, according to the configuration of the present example, a viewpoint suitable for observation can be determined for each observation object region and an effect of extracting/enhancing an edge with high accuracy with a small calculation load can be achieved.
[0128] [Example 4]
In the present example, a method of determining a position of a viewpoint suitable for observation which differs from the viewpoint selection processing according to Example 3 will be described. In contrast to Example 3 in which direction estimation of an edge is performed based on an image feature that is an edge component included in an original image, in the present example, direction estimation of an edge is performed based on an image feature that is a positional relationship of the subject included in the original image.
[0129]· FIG. 19C is an example of a representative image of a region including a boundary between cells. A cell membrane, an intercellular substance (interstice) , and the like of each cell exist at a cell boundary.
Unlike the image shown in FIG. 19A, an edge of a cell boundary (dashed line) is weak and directly detecting the edge with the method described in Example 3 is not easy. In this case, it can be estimated that a cell boundary passes between adjacent nuclei and that a direction of an edge of the cell boundary is approximately perpendicular to a direction that connects the two nuclei. Therefore, by selecting a direction which connects centers of adjacent nuclei as a line-of-sight direction and calculating a viewpoint image, the likelihood of detecting a cell boundary increases.
[0130] FIG. 19D is a schematic view of a cross section when a Z stack image is sliced in a direction of a straight line that connects adjacent nuclei . The schematic view of the cross section in the line-of-sight direction of the Z stack image shows that a position of a viewpoint suitable for observation of a cell boundary is obtained.
[0131] FIG. 18 is a flow chart showing internal processing of the viewpoint selection processing step S1602 according to the present example.
In FIG. 18, first, in a nucleus region extracting step S1801, a region in which a cell nucleus exists is extracted from the acquired representative image.
Generally, with HE staining, since the nucleus is stained deep blue, a cell region can be extracted by performing adaptive binarization processing using a blue channel of a color image and subsequently filling internal holes using closing processing in which expansion/contraction is respectively and sequentially performed an equal number of times or the like. Besides this method, there are various known techniques for extracting a cell nucleus region and any method may be used. Moreover, desirably, noise elimination is performed which assumes that regions whose size is equal to or smaller than a certain size are not nuclei but noise and which eliminates such regions.
[0132] Subsequently, in a labeling step S1802, a number is assigned to each nucleus region extracted in step S1801. Labeling is processing involving classifying a plurality of pixel regions which are coupled to each other as a single group. Since labeling is a technique that is already well known, a description thereof will be omitted.
Next, in a centroid position calculating step S1803, a position of a centroid of each nucleus region to which a number had been assigned in step S1802 is calculated.
[0133] Steps S1804 to S1812 constitute loop processing for obtaining a direction of a straight line connecting adjacent nuclei from a nucleus region to which a label number has been assigned.
In step S1804, a first label number is selected as a processing object.
Subsequently, in an internuclear distance calculating step S1805, a distance between a centroid of a nucleus to which the label number of the processing object had been assigned and a centroid of a nucleus to which another label number had been assigned is obtained. In doing so, to prevent a calculation on a combination of label numbers for which a distance has already been calculated from being redundantly performed, internuclear distance calculations with respect to labels assigned numbers smaller than the label number that is the processing object may be omitted. In this case, as a calculation result, a previously obtained internuclear distance calculation result for the same combination is applied.
[0134] Next, in a sorting step S1806, using the values of distances obtained in step S1805, the combinations of labels are sorted in an ascending order (an order in which combinations with short distances are ranked high) .
Subsequently, in a top-ranked distance selecting step
51807, a certain number Nc of label combinations are selected from the top of the result of sorting in an ascending order of distance. For example, assuming that there are four cells in a vicinity of a cell of a sample 'segment that is an observation object, Nc = 4.
[0135] Next, in a viewpoint polar angle calculating step
51808, an angle formed between a straight line connecting centroids of nuclei and the X axis is obtained for each of the label combinations obtained in step S1807. As described above, since the angle of this straight line is an angle perpendicular to a cell boundary that is a boundary between two cells, the angle is set as a polar angle of a viewpoint.
Subsequently, in a viewpoint position calculating step
51809, a position of the viewpoint is calculated from the obtained polar angle of the viewpoint. In a similar manner to Example 3, a position (s, t) of the viewpoint is obtained from radii of a plurality of viewpoints within an aperture radius ra of a lens determined in advance and from the determined polar angle.
[0136] At this point, in order to further narrow down viewpoints, processing such as that described below may be additionally performed.
Specifically, first, a band-like region is cut out which has a constant width Δρ and which is centered on a straight line that passes through an intermediate position of centroids of two nuclei and that is perpendicular to the polar angle of the viewpoint. As a result, a Z stack image such as that shown in FIG. 19D is obtained. In this case, in order to eliminate an influence of nuclei, the Z stack image is desirably cut out in a range in which nuclei do not exist.
Next, an integrated image in which the Z stack image is added to a three-dimensional line-of-sight direction (X, Y, Z) = (-s, -t, 1) of each viewpoint is created, and a viewpoint at which a dispersion of the integrated image is the largest is selected. Due to the processing described above, viewpoints suitable for observation of a cell boundary can be narrowed down. Moreover, in a similar manner to Example 3, by integrating a line-of-sight direction in the XY plane (corresponding to a direction of a cell boundary in FIG. 19C) with the inside of the band-like region of the Z stack image in advance, a calculation load can be suppressed.
[0137] Subsequently, in a viewpoint list adding step S1810, positions of viewpoints obtained in the viewpoint position calculating step S1809 are added to a list. Moreover, a position of a viewpoint is not added when the same viewpoint position is already recorded on the list.
Next, in step S1811, a determination is made on whether or not processing has been completed on all label numbers. If not, a transition is made to step S1812 to set a nucleus region to which a next label number has been assigned as the processing object. When processing of all label numbers has been completed, a transition is made to a top-ranked viewpoint selecting step S1813.
[0138] The top-ranked viewpoint selecting step S1813 is processing for narrowing down the number of viewpoints in the viewpoint list. Even if there is a large number of cells in the selection region 207, the number of effective viewpoints can be kept within a certain range. Moreover, although not illustrated in the flow chart, the processing of step S1813 is not executed when the number of viewpoints in the viewpoint list is equal to or smaller than a prescribed number of viewpoints Nd.
[0139] First, in step S1813, a distribution of viewpoint positions in the viewpoint list is analyzed using a known technique such as clustering. With clustering, a parameter determined in advance is set. In addition, a centroid of each distribution is set as a representative viewpoint position, and the number of viewpoints in the distribution is counted for each representative viewpoint position. Next, the viewpoint positions are sorted in a descending order of the number of viewpoints in the distribution, and top Nd-number of viewpoint positions are selected. Accordingly, the number of viewpoints can be narrowed down.
This concludes the viewpoint selection processing based on a positional relationship of the nuclei of cells.
[0140] By outputting a position of a viewpoint obtained as described above in the viewpoint determination processing step S1501 in FIG. 15 and creating a viewpoint image in the subsequent viewpoint image generation step S1502, a contrast of a cell boundary that exists between cells can be increased and an extraction accuracy of the cell boundary can be improved.
According to the configuration of the present example, a cell membrane or a cell boundary with weak contrast can be extracted or enhanced without modifying optical systems or photographic conditions such as exposure. As a result, an effect of improving diagnostic efficiency of a doctor can be achieved .
[0141] [Example 5]
In the present example, a description will be given on a method of improving diagnostic efficiency of a pathologist by automatically calculating a viewpoint position from which an observation is to be made and presenting the viewpoint position to the user using the viewpoint determination processing S1501 described in Examples' 3 and 4.
[0142] The following description will be given with reference to an automatic viewpoint image calculation setting screen shown in FIG. 20.
In the present example, in a similar manner to Example 1, the region 207 to be observed is first selected in the image display application and the extensions menu 208 is displayed.
Subsequently, when automatic viewpoint image calculation (not shown) is selected from the extensions menu 208, the new window 700 opens, an image in the region 207 is displayed in the left-side region 701, and a calculated viewpoint image is displayed in the right-side region 702. At this point, an automatic viewpoint image calculation setting screen 2000 shown in FIG. 20 is simultaneously displayed.
[0143] When an automatic calculation button 2001 in the setting screen 2000 is pressed, the viewpoint determination processing (S1501) and the viewpoint image generation processing (S1502) described in Examples 3 and 4 are executed and viewpoints suitable for observation are listed up in a viewpoint image list 2002.
When the user selects a desired viewpoint in the viewpoint image list using the mouse, a corresponding viewpoint image is displayed in the right-side region 702.
[0144] Moreover, the calculation of a viewpoint image or, in other words, the viewpoint image generation processing (S1502) may be executed when the user selects a desired viewpoint in the viewpoint image list. In this case, a viewpoint image of a viewpoint once selected by the user may be stored in a memory, and when the same viewpoint is next selected, the viewpoint image may be read from the memory and displayed without executing the viewpoint image generation processing .
In addition, besides displaying a viewpoint image, a result of applying the edge extraction processing or the edge enhancement processing described in Examples 1 and 2 to the viewpoint image may also be displayed.
[0145] Furthermore, even when the edge extraction processing or the edge enhancement processing described in Examples 1 and 2 is not performed, by selecting/compositing only viewpoint images with clear contrast, a contrast of an edge is expected to be higher than in a photographed image which combines images of various line-of-sight directions. Therefore, the user may select a plurality of viewpoint images in which a contrast of an observation object location is clear from the viewpoint image list and display a composite image of the plurality of selected viewpoint images in the right-side region 702. For example, a plurality of images are selected by pressing down the automatic calculation button 2001 to generate a viewpoint image list and subsequently selecting a check box (not shown) that is provided for each viewpoint image in the viewpoint image list 2002. Finally, a plural viewpoint compositing button denoted by reference numeral 2003 is pressed and a composite image of the viewpoint images is displayed in the right-side region 702 of the window 700. Moreover, intensity (pixel value) of the composite image may be divided by the number of images composited so that the intensity of the composite image does not greatly vary from intensity of the viewpoint images.
[0146] According to the configuration of the present example, by automatically calculating a viewpoint image suitable for observation for each region, a viewpoint image in a direction desired by a pathologist can be promptly displayed and an effect of improving diagnostic efficiency of the pathologist can be achieved.
[0147] [Example 6]
In the present example, a configuration which further improves the effects of Examples 1 and 2 will be described.
In Example 1, a feature of a viewpoint image in that a boundary between substances with different transmittance in a sample is clearly visible has been described with reference to FIG. 6B. A viewpoint image has another distinctive feature in addition to the feature described above. That is, with a viewpoint image, an unevenness which varies along the line-of-sight direction on the XY plane is enhanced and a sample appears three-dimensional in a similar manner to an observed image under oblique lighting which is obtained by illuminating the sample from a partial region of a lighting fixture. With a viewpoint image, in a similar manner to an image created by oblique lighting, the greater an incline of the line-of-sight direction with respect to the optical axis direction or, in other words, the larger the observation angle φ of a line of sight, the higher the contrast of the unevenness on a sample surface and the more three-dimensional the appearance of the sample surface.
(However, an image created by oblique lighting and a viewpoint image physically differ from each other. While an optical blur is created as a focusing position is modified in an image created by oblique lighting, a viewpoint image differs in that a depth of field remains extremely deep regardless of a modification in a focusing position. Moreover, while a viewpoint image varies in accordance with a Z position Zf of a Z stack image that is brought into focus, the variation is expressed by a translation in the XY direction) .
[0148] In the present example, a configuration will be described in which an unevenness on a sample surface is effectively enhanced (or extracted) by taking the features of a viewpoint image described above into consideration in the viewpoint edge extraction (or enhancement) processing S903.
Hereinafter, a description will be given on a reason why the greater the incline of the line-of-sight direction with respect to an optical axis in a viewpoint image, the higher the contrast of the unevenness on the sample surface.
[0149] Reference numeral 2100 in FIG. 21 represents a schematic view showing an unevenness existing on a surface of a pathological sample on a prepared slide. It is assumed that the unevenness on an xz plane shown in FIG. 21 also continues in a y direction that is a depth direction.
A pathological sample for tissue diagnosis is first fixed by paraffin, then sliced in a uniform thickness by a microtome, and finally stained. However, a pathological sample is not completely uniform. Unevenness attributable to tissue structure or components of substances exists at a boundary between a cell and a tube or a cavity, a boundary between a nucleus and cytoplasm, and the like, and an uneven structure such as that shown in FIG. 21 exists on a surface of the pathological sample.
(It should be noted · that FIG. 21 presents a simplified model and an unevenness of an actual sample seldom includes a cusp such as that shown in FIG. 21. In addition, besides convex structures such as that shown in FIG. 21, there are also structures that are recessed toward the inside of a sample. Furthermore, since an optical distance varies when a substance with a different refractive index exists inside a sample even when the surface is smooth, a discontinuity in the refractive index inside a sample can be considered as a surface unevenness) .
Moreover, with a real prepared slide, a transparent encapsulating agent is present between a cover glass and a sample. However, since a difference between a refractive index of an encapsulating agent and a refractive index of a sample is very small and does not have a significant impact, both refractive indexes will be assumed to be the same in the following description.
[0150] In FIG. 21, reference numeral 2111 denotes a plane with no unevenness, reference numeral 2112 denotes an inclined plane rising to the right, and reference numeral 2113 denotes an inclined plane dropping to the right. Inclination angles formed between the inclined planes 2112 and 2113 and the x axis are respectively ( a > 0) .
FIGS. 22A to 22C are schematic views showing intensity of scattered light at an observation angle φ on the planes 2111 to 2113 in FIG. 21. FIGS. 22Ά to 22C respectively represent scattering of light by the plane 2111 and the inclined planes 2112 and 2113. A circle circumscribing each plane represents intensity of scattered light in a scattering direction when the sample surface is assumed to be a perfect
diffusion/transmission plane in terms of light-diffusing characteristics. A solid arrow line in the circle represents intensity of scattered light when observed from an angle that is inclined by φ from the optical axis (z axis) . (Although an actual sample surface is not a perfect
diffusion/transmission plane and has an intensity dependency in accordance with an incidence direction and/or an observation direction of light, the sample surface will be assumed to be a perfect diffusion/transmission plane for the sake of simplicity) .
[0151] With a perfect diffusion/transmission plane, if intensity of light in a normal direction that is perpendicular to the plane is denoted by I0 and an angle formed between an observation direction and a normal of the plane is denoted by δ , then intensity I ( δ ) of scattered light in a § direction is expressed as I ( δ ) = Iocos5.
In FIGS. 22A to 22C, since angles δ formed between an observation direction and a normal of the planes may be respectively expressed as φ, φ + , and φ - a, intensities of the respective scattered light may be expressed as
ΙοθθΞφ, locos (φ + a ) t and I0cos (φ - a ) ·
Moreover, if the inclination angle a is assumed to be positive at an inclined plane whose value of z increases when seen from the observation direction (a rising inclined plane) and the inclination angle is assumed to be negative at an inclined plane whose value of Z decreases (a dropping inclined plane) , the intensity of scattered light can be expressed as locos (φ - ) for both planes.
[0152] If a value obtained by dividing the intensity of scattered light in a direction of the observation angle φ of the inclined planes 2112 and 2113 with the intensity of scattered light in a direction of the observation angle φ of the plane 2111 is defined as a contrast C ( φ , ) , then the contrast may be represented by the following expression. [Expression 16]
Cfoa) = 7° C0S(< - a - 7° C0S(^ + a) = 2 tanφ sina
I0 cosφ
[0153] Values of the contrast C ( φ , a) when φ and are varied are shown in Table 1.
[Table 1]
Figure imgf000081_0001
Table 1 shows that when the observation angle φ is small, a contrast between the inclined planes 2112 and 2113 is low and is difficult to observe even when the inclination angle a is large, and as the observation angle φ increases, the contrast increases and is more easily observed even when the inclination angle is small.
[0154] Next, a relationship between the inclination angle a of the surface unevenness 2100 and a spatial frequency of a pattern observed on a viewpoint image will be described.
If H denotes a height and W denotes a width of the surface unevenness 2100 of the pathological sample shown in FIG. 21, a relationship expressed as
W = 2H/tana
is satisfied. Let us assume that a pathological sample for tissue diagnosis has a thickness of approximately 4 μπι and H is equal to 10% of the thickness or, in other words, 0.4 μπι. In addition, let us assume that a limit contrast C that allows the existence of unevenness to be viewed when observing an image is 0.1.
Table 2 shows a result of widths W of unevenness obtained from minimum (respectively, = 20, 10, and 5 degrees) at which the contrast C is 0.1 or higher for observation angles ψ = 10, 20, and 30 degrees in Table 1.
[Table 2]
Figure imgf000082_0001
Table 2 shows that the larger the observation angle φ, the more visible the unevenness even if the unevenness has a small inclination angle a- [0155] Assuming that the surface unevenness of the pathological sample is periodic, a spatial frequency corresponding to the width of the unevenness can simply be obtained by 1/W. Table 3 shows spatial frequencies for widths [μπι] of the unevenness when a sensor pixel pitch of 0.25 μΐη is assumed.
[Table 3]
Figure imgf000083_0001
Table 3 shows that, with an unevenness of a sample observed to have a contrast C of 0.1 or higher, the unevenness is in a region of relatively high frequency when the observation angle φ is small (10 degrees) , and the unevenness is in a region of relatively low frequency when the observation angle φ is large (30 degrees) .
Therefore, in the viewpoint edge extraction (enhancement) processing S903, edge extraction (enhancement) may be mainly performed on a high-frequency component (an image with a high spatial frequency) when the observation angle φ is small. On the other hand, when the observation angle φ is large, a range in which edge extraction (enhancement) is performed may be widened to include a lower frequency component (an image with a low spatial frequency) than in the case of a small observation angle φ. In other words, the larger the observation angle φ of a viewpoint image, the lower the frequency from which edge extraction (enhancement) may be performed. Accordingly, an unevenness of a sample surface can be effectively extracted (or enhanced) in accordance with features of a viewpoint image.
[0156] Next, a relationship between a polar angle Θ of a viewpoint and a contrast of a surface unevenness will be described .
FIG. 21 is a diagram showing a case where a direction perpendicular to an edge of a surface unevenness (a direction of brightness variation) and a polar angle θ (Θ = 0) of a viewpoint are consistent with each other. If an angle formed between a direction perpendicular to the edge of the surface unevenness and the x axis is assumed to be an unevenness direction angle β, when the unevenness direction angle β and the polar angle Θ are not consistent with each other, the surface unevenness 2100 is to be observed from an oblique direction. In this case, an apparent inclination angle ' of the inclined plane 2113 and the inclined plane 2112 in a direction opposite to the inclined plane 2113 as viewed from an observation direction having an angle expressed as polar angle Θ - angle β can be calculated by
[Expression 17]
, tan o
tana = T. .
Expression 17 shows that the apparent inclination angle a' is smaller than and that the contrast C declines in accordance with a difference |θ - β| between the unevenness direction angle β and the polar angle θ· Conversely, the contrast is highest and a surface unevenness is most easily extracted when the unevenness direction angle β and the polar angle Θ are consistent with each other. In addition, the contrast C is lowest (zero) when the difference |θ - β| between the unevenness direction angle β and the polar angle Θ is 90 degrees.
[0157] (Edge enhancement)
As described earlier, favorably, the larger the observation angle φ of the line-of-sight direction, the lower the frequency from which edge extraction (enhancement) processing is performed. In consideration thereof, in the present example, parameters of edge extraction (enhancement) processing are controlled so that a range of spatial frequencies in which an effect of edge enhancement
(extraction) is obtained varies according to a magnitude of the observation angle φ (so that the larger the observation angle φ, the wider the range on a low-frequency side) .
Hereinafter, a specific example will be described in which a method of controlling parameters is applied to edge enhancement processing using the unsharp mask described in Example 2.
In unsharp mask processing, the following relationship exists between MtfB(f) that represents an MTF (Modulation Transfer Function) of a spatially given blur and MtfU(f) that represents an MTF of a result of the unsharp mask processing.
MtfU(f) = 1 + Amount χ (1 - MtfB(f))
The greater the spatially given blur, the closer MtfB(f) is to an origin side (a low-frequency side) of a frequency axis, and MtfU(f) representing a result of the unsharp mask processing can be significantly enhanced from the
low-frequency side. In other words, the greater the spread of blur due to a blur function (the Gaussian function G (X, Y) represented by Expression 14) used in the unsharp mask processing, the greater the enhancement that can be made on the low-frequency side.
[0158] Specifically, in the present example, the following blur function is used in place of the blur function represented by Expression 15.
[Expression 18]
Figure imgf000086_0001
where
Χθ = cos# + Fsin 0, Ye = - sin # + ycos# .
In Expression 18, Θ corresponds to a polar angle of a viewpoint, and σχ and σγ are standard deviations which respectively represent spreads of the blur in the X axis direction and the Y axis direction.
A correspondence between σχ, σΥ and the observation angle φ is shown below.
[Expression 19]
σχ =/( ) = σ ο +cxtan
σγ = σγο
where c, σχο, and σγο are prescribed constants. σχ may be a function f (φ) of the observation angle φ. It should be noted that the expression above is simply an example and other functions can also be used.
[0159] By associating the blur function used by the unsharp mask with a polar angle Θ and an observation angle φ of a viewpoint in an actual image pickup system using Expression 19, the function G (X, Y) represented by Expression 18 becomes a blur function that varies in accordance with the polar angle Θ and the observation angle φ of the actual image pickup system.
[0160] FIG. 24 shows a schematic view of blur functions which are generated according to Expression 18 and which vary depending on a viewpoint position . Blur functions 2401, 2402, and 2403 show that a radius σχ of the blur becomes longer in accordance with a magnitude of a radius (s2 + t2)1/2. In addition, blur functions 2401, 2404, and 2405 show that a long side of the blur rotates by the polar angle Θ of the viewpoint.
In other words, by enhancing a viewpoint image with an unsharp mask using the blur function described above, an edge of a brightness variation in an Χθ axis direction is enhanced from a lower frequency when the viewpoint image has a larger observation angle φ.
[0161] FIG. 25 is a flow chart showing internal processing of the viewpoint edge extraction processing S903 according to the present example.
First, in a viewpoint polar angle calculating step S2501, a viewpoint polar angle Θ is calculated using a viewpoint (s, t) according to Expression 3.
Subsequently, in a viewpoint observation angle
calculating step S2502, an observation angle φ is calculated using the viewpoint (s, t), a sensor pixel pitch (an image sampling pitch) ΔΧ in the X direction, and a movement interval (a layer image interval) ΔΖ in the Z direction according to Expression 5.
Next, in a filter reading (generating) stepS2503, a filter suitable for a viewpoint image is read out (or generated) . In S2503, first, the observation angle φ calculated in S2502 is substituted into Expression 19 to obtain σχ and σγ- Next, using values of the polar angle Θ calculated in S2501 and σ and σΥ calculated in S2502 as indexes, data of a corresponding blur function is read out from a table in which blur functions calculated in advance using Expression 18 have been registered. Alternatively, values of the polar angle Θ and σχ and σΥ may be substituted into Expression 18 to generate (calculate) a blur function.
Subsequently, in a filter processing step S2504, using the blur function read out (or calculated) in S2503, edge enhancement processing by the unsharp mask shown in
Expressions 14 and 13 is performed to generate a viewpoint edge enhanced image.
[0162] Next, internal processing for improving an effect of the filter processing step S2504 will be described.
Although the edge enhancing method using an unsharp mask described in Example 2 is highly effective while only requiring a small calculation load and is therefore widely used, there is a problem that high-frequency noise contained in an image may become conspicuous. Hereinafter, methods of suppressing high-frequency noise with respect to an unsharp mask will be described .
[0163] (Noise suppression 1) Dynamic threshold processing Table 1 shows that, even at the same inclination angle , a contrast of an observed surface unevenness differs according to the observation angle φ . Therefore, the threshold Threshold in Expression 13 may be made variable depending on the observation angle φ . In other words, the threshold Threshold that is a parameter of edge processing is modified so that the larger the observation angle φ , the greater the effect of suppressing high-frequency noise. By setting a small threshold Threshold when the observation angle φ is small and setting a large threshold Threshold when the observation angle φ is large, surface unevenness and noise can be properly separated from each other for each viewpoint and noise can be suppressed.
For example, the threshold Threshold may be set according to the following expression.
[Expression 20]
AX I
Threshold (s, t) = T0 x tan^ = T0 x yls2 + 12
AZ where T0 is a prescribed constant.
[0164] (Noise suppression 2) Use of brightness component in threshold processing
As described with reference to FIG. 22, when there is unevenness on a sample surface, intensity of scattered light varies depending on the observation angle φ . Therefore, with the threshold processing represented by Expression 13, noise can be further suppressed by performing calculations according to brightness instead of performing a calculation for each color component and sharing zero and non-zero positions of a difference image among the respective colors.
An expression of unsharp mask processing that adopts such threshold processing is given below.
[Expression 21]
Uc(X,Y) = Ic{X,Y) + Amount x Dc(X ) x BL(X, Y)
, Y)
Figure imgf000090_0001
DL(X, Y) = L(X, Y) - G(X, Y) * *L(X, Y)
A subscript c denotes a color component, and Ic (X, Y) , Dc (X, Y) , and Uc (X, Y) respectively represent an image, a difference image, and an unsharp mask-applied image for each color component c. L (X, Y) represents a brightness component obtained from the image color component Ic (X, Y) . In addition, DL (X, Y) represents a difference image obtained from brightness L (X, Y) and a blur function G (X, Y) , and BL (X, Y) represents a binary image obtained by comparing an absolute value of DL (X, Y) with the threshold Threshold. Amount denotes an adaptation amount that represents a degree of edge enhancement in a similar manner to Expression 13. ** is a symbol denoting a two-dimensional convolutional operation.
[0165] (Noise suppression 3) Advance application of low-pass filter
In addition, as another noise suppression method, favorably, a difference image is calculated after applying a low-pass filter to an original image. Specifically, in the calculation of Dc (X, Y) and DL (X, Y) in Expression 21, [Expression 22]
Dc(X, Y) = LP{lc(X, Y)) - G(X, Y) * *LP{lc(X, Y))
DL(X, Y) = LP(L(X, Y)) - G(X, Y) * *LP{L(X, Y)) is used, where LP () denotes a function representing the application of a low-pass filter on an image. As the low-pass filter, various blur functions such as a Gaussian function can be applied. In addition, as LP () , noise reduction processing such as a median filter, a ε filter, or a bilateral filter can be applied.
Due to the low-pass filter processing, a high-frequency component is suppressed in Dc (X, Y) and DL (X, Y) and enhancement of a high-frequency component in an unsharp mask result image is suppressed. Among the unevenness on the sample surface, since the unevenness of a cell boundary of interest or a boundary of interest between a cell and a tube or a cavity has a relatively large structure and a low spatial frequency, the impact of the low-pass filter processing described above is minimal.
Moreover, various high-frequency noise eliminating methods and improvement methods are proposed with respect to an unsharp mask besides those described above, and applying such methods to the filter processing step S2504 is also included in the scope of the present invention.
[0166] (Weighting according to viewpoint position) Subsequently, in the viewpoint edge synthesized image generating step S904, the plurality of viewpoint images calculated in the viewpoint edge extracting step S903 are collected and a viewpoint edge synthesized image is created using weighting specified on the setting screen 1003. The weighting indicates which viewpoint edge extracted image among the plurality of viewpoint edge extracted images is to be emphasized in the synthesis.
A blur of the viewpoint edge synthesized image can be controlled by controlling weighting. In doing so, when selecting "Gaussian blur" on the setting screen 1003, since a Gaussian blur closely resembles a blur of a general image pickup system, a natural appearance is produced. However, since the larger the observation angle φ , the smaller the weighting, intensity of an edge-enhanced location weakens and observation of a difference becomes difficult.
As already shown in FIG. 1, the larger the observation angle φ , the higher the contrast in which an unevenness on a sample surface can be observed. Therefore, among the viewpoint edge enhanced images, if an original viewpoint image component (I (X, Y) in Expression 13) can be synthesized at a blur resembling the blur of the image pickup system and a viewpoint edge enhanced component (D (X, Y) ) can be synthesized while suppressing a decrease in intensity as compared to the blur of the image pickup system, the unevenness on the sample surface can be observed more easily.
In consideration thereof, when generating an edge synthesized image using a method in which the larger the observation angle φ of an edge extracted image, the smaller the weight when compositing the edge extracted image, a greater degree of edge enhancement (extraction) may be set in advance to a viewpoint image with a larger observation angle φ when obtaining edge extracted images. Accordingly, when generating an edge synthesized image, a weight and a degree of edge enhancement (extraction) cancel out each other and a decline in an edge enhanced component can be suppressed.
[0167] Let us assume that, when synthesizing viewpoint image components, a weight of a light beam passing through a viewpoint (s, t) is represented by the Gaussian blur expression below. [Expression 23]
Figure imgf000093_0001
where σ denotes a standard deviation representing a spread of blur in a viewpoint edge synthesized image.
In this case, an adaptation amount Amount of an unsharp mask is controlled as follows according to the viewpoint position (s, t) . A0 denotes a prescribed constant.
[Expression 24]
Figure imgf000093_0002
Consequently, while a weight of the original viewpoint image component is the Gaussian blur represented by Expression 23, a weight of the viewpoint edge enhanced component (D (X, Y) ) is obtained by a multiplication of Expression 23 and Expression 24. As a result, the portion of the . viewpoint position (s, t) is canceled and synthesis can be achieved at a constant ratio that is independent of a viewpoint.
[0168] Hereinafter, a procedure for applying the processing described above to the filter processing step S1203 or S2504 will be described.
First, based on setting information regarding weighting in the viewpoint edge synthesis setting 1003, the adaptation amount Amount dependent on a viewpoint is obtained using Expression 24. Examples of setting information regarding weighting include a function representing a shape of weighting such as a Gaussian blur and a value of the standard deviation σ that represents a spread of a blur.
Subsequently, according to Expression 13 or Expression 21, an edge is enhanced using the adaptation amount Amount (s, t) that is dependent on a viewpoint. Accordingly, an edge can be made more identifiable in a viewpoint edge synthesized image while retaining a feel of the original image. Moreover, Expression 18 is simply an example and various other functions can be set.
[0169] While edge enhancement using an unsharp mask has been described above, similar processing can also be applied to edge extraction. D (X, Y) in Expression 14 (or Dc (X, Y) and DL (X, Y) in Expressions 21 and 22) that is obtained in an unsharp mask calculation process represent an image for which an edge is extracted and may be considered an edge extracted image.
Therefore, in the filter processing S2504 , edge extraction can be achieved by outputting an image obtained by subtracting the original image from an application result of Expression 14 or an unsharp mask application result.
Moreover, in a similar manner to Example 1, by obtaining an absolute value or a square value with respect to a result of the edge extraction described above, nonlinearity can be further increased and an edge in a viewpoint edge synthesized image can be further enhanced.
[0170] (Advantages of present example)
As described above, in the present example, by controlling a frequency band, intensity, noise reduction conditions, and the like at which edge extraction or edge enhancement is to be performed using a polar angle Θ and an observation angle ψ of a viewpoint, excessive enhancement of an entire viewpoint image can be suppressed and an surface unevenness can be efficiently enhanced. As a result, since a cell membrane, a cell boundary, a boundary between a cell and a tube or a cavity, and the like having surface unevenness can be enhanced, a diagnosis supporting function such as presentation of an image useful for diagnosis and calculation of an N/C ratio can be realized.
[0171] [Example 7]
In the present example, a method of generating an viewpoint edge image using a filter for edge enhancement (or edge extraction) generated using a blur function (a
three-dimensional blur model) with a greater blur than a blur function (a three-dimensional blur model) of an image pickup system used to photograph the subject.
[0172] Reference numeral 2601 in FIG. 26A .represents a three-dimensional blur of an image pickup system in an orthogonal coordinate system (XYZ) or a three-dimensional blur that is closest to the three-dimensional blur of the image pickup system, and reference numeral 2602 in FIG. 26B represents a three-dimensional blur having a blur equal to or greater than 2601. Reference numeral 2603 in FIG. 26C represents a group of out-of-focus blurred images (a Z stack image) acquired by the image pickup system. Moreover, since the three-dimensional blur 2602 is used for the purpose of edge enhancement or edge extraction, hereinafter, the
three-dimensional blur 2602 will also be referred to as a three-dimensional blur for edge processing.
The three-dimensional blurs 2601 and 2602 are represented by the following Gaussian blur expression using a blur radius R at a prescribed Z position at a distance D from a focusing position (a Z position with minimum blur) .
[Expression 25]
Figure imgf000096_0001
where R
Figure imgf000096_0002
(σ denotes a standard deviation of a Gaussian distribution) .
If a blur radius of the three-dimensional blur 2601 is denoted by Rbi and a blur radius of the three-dimensional blur 2602 is denoted by Rb2, then Rb2 > bi holds true.
[0173] A viewpoint image as,t ( > Y) that is viewed from a viewpoint (s, t) can be obtained by deconvoluting an integration value bs,t (X, Y) of a Z stack image 2603 in a same line-of-sight directio with an integration value cs,t (X, Y) of the three-dimensional blur 2601 of the image pickup system in a same line-of-sight direction. (A corresponding description is given in section 3.3 of Non-Patent Literature 2 ("2) With 2D Filters Simply Combining Multi-Focus Images" of Non-Patent Literature 4) . As shown in FIG. 7 of Non-Patent Literature 2 (FIG. 6 of Non-Patent Literature 4), a relationship in which an group of integrative photographed images g (X, Y, Z) is obtained by convoluting a filter h (X, Y, Z) on real space information f (X, Y, Z) is satisfied regardless of an integration in a line-of-sight direction) .
This relationship is represented by the following expression .
[Expression 26]
Asl{u,v) = Bst{u,v)ICst{u,v)
where As,t (u, v) , BS t (u, v) , and Cs, t (u, v) are respectively Fourier transforms of as,t (X, Y) , bs,t (X, Y) , and cs,t (X, Y) , and u and v are respectively frequency coordinates
corresponding to variations in the X and Y directions.
[0174] Next, when denoting an integration value in a same line-of-sight direction of the three-dimensional blur 2602 for edge processing as cs,t' (X, Y) , properties of an image as,t' (X, Y) that is obtained by deconvoluting bs,t (X, Y) with cs,t' (X, Y) will be considered. The image as,t' (X, Y) can be represented by the following expression. [Expression 27]
Figure imgf000098_0001
where AS t' (u, v) and Cs,t' (u, v) are respectively Fourier transforms of as,t' ( Y) and cs,t' (X, Y) - [0175] Expression 27 can be modified as follows.
[Expression 28]
Bal(u,v) Csl(u,v) Cs,(u,v)
("»v) = ^— r x ^ — r = 4,«( ,V) X—-· —- = ,(u,v)x Esl(u,v)
C,,,( ,v) Cst(u,v) Cst(u,v) where
[Expression 29] Esl( ,v)= J .
Expression 28 shows that the image as,t' (X; Y) is an image resulting from the original viewpoint image aS t (X, Y) being processed by a frequency filter represented by Expression 29.
[0176] Since the three-dimensional blur 2602 for edge processing has a blur equal to or greater than the
three-dimensional blur 2601, a comparison of respective line-of-sight direction integration values cs,t' (X, Y) and cs,t
(X, Y) thereof shows that the blur of cs,t' (X, Y) is greater. Since cs,t' (X, Y) and cS t (X, Y) share a same integration value, a direct current component of Es,t (u, v) is 1. While properties differ according to viewpoint and frequency, the image has an edge enhancing property as a whole, and the greater the blur of cs,t' ( Y) r the stronger the appearing edge enhancing property .
[0177] FIG. 27 is a flow chart showing internal processing of the viewpoint-decomposed edge extraction/synthesis processing S802 according to the present example. Unlike in Example 1, the viewpoint image generation step S902 is not required. Hereinafter, a processing flow will be described.
First, in a viewpoint acquisition processing step S2701, positional information of a viewpoint necessary for generating an edge-enhanced or edge-extracted viewpoint image is acquired. Since contents of processing are similar to the viewpoint acquisition processing step S901, a description will be omitted.
Next, in a viewpoint edge enhancing step S2702, edge enhancement processing is performed based on the viewpoint edge extraction setting (705) . Details will be given later. Moreover, when there are a plurality of viewpoints, the processing is executed for each of the viewpoints in a similar manner to FIG. 9.
Finally, in a viewpoint edge synthesized image generating step S2703, based on the viewpoint edge synthesis setting (706), the viewpoint edge enhanced images generated in step S2702 are composited to generate a viewpoint edge synthesized image. Since contents of processing are similar to the viewpoint edge synthesized image generating step S904, a description will be omitted.
[0178] FIG. 28 is a flow chart showing internal processing of the viewpoint edge enhancing step S2702.
First, in a viewpoint observation angle calculating step S2801, an observation angle φ is calculated using a viewpoint (s, t) , a sensor pixel pitch (an image sampling pitch) &X in the X direction, and a movement interval (a layer image interval) ΔΖ in the Z direction according to Expression .5.
Next, in a three-dimensional blur-for-edge processing information calculating step S2802 , information (a blur radius rb2 per unit distance) on a three-dimensional blur for edge processing is obtained using information (a blur radius rbi per unit distance) on a three-dimensional blur of a photographed image and the observation angle φ calculated in S2801. An example of a calculating method is shown below. [Expression 30]
rb2 = +cx tanΦ)x rb\
where c denotes a prescribed constant. The value of the constant c can also be set as a part of intensity of edge enhancement on the viewpoint edge extraction setting screen 1002.
According to Expression 30, the larger the observation angle φ (an angle formed between an optical axis direction and a line-of-sight direction) , the larger the size (the blur radius rb2) of the three-dimensional blur for edge processing. Moreover, when a blur radius ¾ι at a distance D is inputted as the information on the three-dimensional blur of a photographed image, the blur radius rbi per unit distance can be calculated by rbi = Rbl/D.
[0179] Next, in a filter reading (filter generating) step S2803, a Fourier transform c's,t (u, v) of an integration value of the three-dimensional blur 2602 for edge processing in the line-of-sight direction is acquired. When c's,t (u, v) calculated in advance is stored in the storage device 130 or the main memory 302, based on the information (rb2) on the three-dimensional blur for edge processing obtained in S2802 and the number of layers in the Z stack image, corresponding data is read out. Alternatively, c's,t (u, v) may be obtained by calculating a three-dimensional blur from the information
(rb2) on the three-dimensional blur for edge processing and the number of layers in the Z stack image and subjecting an integration in the line-of-sight direction to Fourier transform. Moreover, a calculation amount may be reduced by storing c's,t (u, v) _1 in the storage device 130 or the main memory in advance and reading out c'S t (u, v) _1 in step S2803.
With the image generating apparatus 100, in order to calculate a viewpoint image at high speed from a photographed image having various out-of-focus blurs, Fourier transforms of an integration value of a plurality of three-dimensional blurs (for example, Gaussian blurs with different radii R) or an integration value of three-dimensional blurs at a plurality of viewpoints are calculated in advance and stored in the storage device 130 or the main memory 303. Therefore, a filter for edge enhancement need not be newly provided.
[0180] Subsequently, in a deconvoluting step S2804, first, an integration value bS t (X/ Y) of an integration of the Z stack image 2603 in a line-of-sight direction from the viewpoint (s, t) is obtained. Next, a Fourier transform Bs,t (u, v) thereof is calculated. Subsequently, using c's,t (u, v) obtained in step S2803, A's,t (u, v) that is a Fourier transform of a viewpoint edge enhanced image is obtained according to Expression 27. Finally, by subjecting A'S/t ( , v) to an inverse Fourier transform, a's,t (X, Y) that is a viewpoint edge enhanced image is obtained.
According to the processing described above, a viewpoint edge enhanced image can be generated in which the larger the observation angle φ of the viewpoint, the higher the degree of edge enhancement in the viewpoint image.
[0181] In addition, the viewpoint-decomposed edge extraction/synthesis processing S802 according to the present example can also adopt the configuration shown in FIG. 9. Internal processing of the viewpoint edge extraction processing S903 in this case is shown in FIG. 29.
Since a viewpoint observation angle calculating step S2901 and a three-dimensional blur-for-edge processing information calculating step S2902 are respectively the same processing as S2801 and S2802, a description thereof will be omitted.
Next, in a filter reading (generating) step S2903, in addition to c's,t (u, v) , cSit (u, v) that is a Fourier transform of an integral image of the three-dimensional blur of an image pickup system in the line-of-sight direction is also acquired. In S2903, in a similar manner to S2803 shown in FIG. 28, data calculated in advance may be read from the storage device 130 or the main memory 303 or c' s, t (u, v) and cs,t ( , v) may be obtained by calculation.
Subsequently, in an edge enhancement filter calculating stepS2904, using cs,t (u, v) and c's,t ( , v) acquired in S2903, an edge enhancement filter Es,t (ur v) is calculated according to Expression 29.
In a filter processing step S2905, As,t ( , v) is obtained by performing a Fourier transform on the viewpoint image aS(t (X, Y) calculated in advance in step S902, and A'S t (u, v) is obtained by applying the edge enhancement filter Es,t (u, v) according to Expression 28. Finally, by subjecting A'S t (u, v) to an inverse Fourier transform, a'S(t (X, Y) that is a viewpoint edge enhanced image is obtained.
[0182] It should be noted that the configuration according to the present example is also applicable to edge extraction in a similar manner to Example 6. By setting direct current components of the frequency filter c's,t (u, v) which is read out in S2803 and the edge enhancement filter Es,t (u, v) which is calculated in S2904 to zero, a direct current component of A's,t (u, v) also becomes zero. Since a'Sjt (X, Y) that is an inverse Fourier transform thereof is equivalent to an image resulting from subtracting an image average value from each pixel, a'S t (X, Y) may be considered an edge extracted image.
[0183] (Advantages of present example)
As described above, according to the present example, a similar effect as Example 6 can be achieved. In addition, since a filter stored in the image generating apparatus 100 can be utilized in order to calculate a viewpoint image from a Z stack image having various blurs at high speed, there is an additional advantage that no calculation load is required (there is a smaller calculation load) to newly generate a filter. A further advantage is that additional storage capacity for storing the new filter is not required.
[0184] [Example 8]
While the generation of a viewpoint edge synthesized image based on the method according to Non-Patent Literature 2 has been described in Example 7, in Example 8, a configuration will be described which significantly reduces calculation load compared to Example 7 by generating a viewpoint edge synthesized image based on the method according to . Non-Patent Literature 3.
[0185] FIG. 30 is a flow chart showing internal processing of the viewpoint-decomposed edge extraction/synthesis processing S802 according to Example 8.
First, in a viewpoint acquisition processing step S3001, positional information of a viewpoint necessary for the generation of a viewpoint edge .synthesized image that is generated in step S802 is acquired. Since the processing is approximately similar to that of step S901, a description thereof will be omitted.
[0186] Next, in a Fourier transform processing step S3002, a two-dimensional Fourier transform is executed with respect to each layer image of the Z stack image acquired in step S801 to generate Fourier transformed layer images. This processing is represented by a mathematical expression as follows.
[Expression 31]
GM(u,v) = F{g n X,Y)} where n denotes a number indicating an n-th layer image of the Z stack image, F{ } denotes a function representing a two-dimensional Fourier transform, and g(n) (X, Y) denotes an n-th layer image of the Z stack image.
[0187] Subsequently, in a viewpoint edge enhancement filter readout processing step S3003, a viewpoint edge enhancement filter C' g, t (u, v) is read out for each viewpoint position obtained in step S3001. Details will be given later.
[0188] Next, in a blur modifying filter generation processing step S3004, a three-dimensional blur modifying filter H(n) (u, v) is generated using the viewpoint edge enhancement filter read out in step S3003. This processing is represented by a mathematical expression as follows. [Expression 32]
(s, t)e-2rdisu+tv)"CS t (u, v)- 1 dsdt
Figure imgf000105_0001
In Expression 32 , ka (s, t) denotes a function representing a weight of a light beam passing through a viewpoint (s, t) which constitutes a desired three-dimensional out-of-focus blur ha (X, Y, Z), whereby the following relationship holds true .
[Expression 33]
ha {X, Y, Z) =JJ ka (s, t)S(X + sZ, Y + tZ)dsdt
[0189] In a blur modifying filter application processing step S3005, the following arithmetic operation is performed between the Fourier transform g(n) (X, Y) of each layer image of the Z stack image obtained in step 3002 and the
three-dimensional blur modifying filter H(n) (u, v) obtained in step S3004. Accordingly, a Fourier transformed image A' (u, v) of an edge-enhanced viewpoint edge synthesized image is obtained.
[Expression 34]
Figure imgf000106_0001
where A' (u, v) represents a Fourier transformed image of a viewpoint edge synthesized image at an nf-th (a Z direction coordinate of Z = Zf) image of the Z stack image. Moreover, Expression 34 may be calculated after obtaining H(n_nf) (u, v) using Expression 32.
[0190] Finally, in an inverse Fourier transform processing step S3006, an inverse Fourier transform is performed on the Fourier transform A' (u, v) of the viewpoint edge synthesized image obtained in step S3005 to obtain a viewpoint edge synthesized image a' (X, Y) to which edge enhancement processing has been applied.
[0191] Next, step S3003 will be described.
FIG. 31 is a flow chart showing internal processing of the viewpoint edge enhancement filter readout processing step S3003.
First, in a viewpoint observation angle calculating step S3101, in a similar manner to step S2801, an observation angle ψ is calculated using a viewpoint (s, t) , a sensor pixel pitch (an image sampling pitch) ΔΧ in the X direction, and a movement interval (a layer image interval) ΛΖ in the Z direction according to Expression 5. Since a description has already been given with reference to step S2801, details will be omitted.
Next, in a three-dimensional blur-for-edge processing information calculating step S3012, in a similar manner to step S2802, information (rb2) on a three-dimensional blur for edge processing is obtained using information (rbi) on a
three-dimensional blur of a photographed image and the observation angle <j> calculated in S3101.
Subsequently, in a filter reading (generating) stepS3103, in a similar manner to step S2803, C'Sft (u, v) is acquired from the storage device 130 or the main memory 303 based on the information (¾2) calculated in step S3102. In a similar manner to step S2803, Cs,t (u, v) _1 may be stored in advance and read out from the storage device 130 or the main memory 303. In this case, the speed of the calculation of Expression 32 in step S3004 can be increased. Since a description has already been given with reference to step S2803, details will be omitted.
[0192] (Advantages of present example)
As described above, according to the present example, a similar effect as Example 7 can be achieved. In addition, compared to Example 7, the present example is capable of significantly reducing the calculation load of a viewpoint edge synthesized image by using the MFI arbitrary
viewpoint/out-of-focus blur image generating method described in Non-Patent Literature 3 and 4. Therefore, a desired viewpoint edge synthesized image can be generated at high speed in response to an instruction from the user and convenience of the edge extracting (or enhancing) function can be further improved .
[0193] While preferable embodiments of the present invention have been described above by providing a plurality of examples, configurations of the present invention are not limited to these examples.
For example, while a case in which a Z stack image photographed with a bright-field microscope is used as an original image has been described in the examples above, the present invention is also applicable to images photographed with an epi-illumination microscope, a light field camera,, a light field microscope, and the like.
A light field camera and a light field microscope are apparatuses capable of acquiring, in one shot, an image on which is recorded four-dimensional information (information in which a degree of freedom of a viewpoint position i-s added to an XY two-dimensional image) that is referred to as a light field. In such apparatuses, a lens array is disposed at an original position of an imaging plane and a light field is photographed by an image sensor to the rear of the lens array. An image with an arbitrary focusing position or a viewpoint image observed from an arbitrary direction can also be generated using known techniques from an original image on which a light field is recorded. Therefore, the present invention can also be favorably applied to an original image acquired with a light field camera or a light field microscope. [0194] In addition, while a pathological sample has been described in the examples above as an example of a subject, subjects are not limited to pathological samples. The subject may be a reflective object such as metal that is an observation object of an epi-illumination microscope. The subject may also be a transparent biological specimen that is an observation object of a transmissive observation microscope. Alternatively, the subject may be a landscape or a person that is a photographic object of a digital camera. In any case, by using the technique disclosed in Patent Literature 1 and the like, an arbitrary viewpoint image can be generated from a group of a plurality of images photographed while varying focusing positions of the subject and the present invention can be applied.
[0195] Furthermore, configurations described in the respective examples may be combined with each other. For example, the viewpoint acquisition processing (S901) according to Examples 1 and 2 may be replaced with the viewpoint determination processing (S1501) . In this case, instead of being determined from settings configured in the viewpoint decomposition setting (704) or the like, a viewpoint is automatically determined by analyzing a Z stack image.
In addition, in Examples 3 and 4, when a region is large, the region may be further divided into small blocks and a direction of a calculated viewpoint may be varied for each block. As a result, even when a cell membrane or a cell boundary is curved or when there is a large number of nuclei, the accuracy of edge extraction can be improved.
[0196]
Embodiments of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions recorded on a storage medium (e.g., non-transitory computer-readable storage medium) to perform the functions of one or more of the above-described embodiment ( s ) of the present invention, and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiment (s) . The computer may comprise one or more of a central processing unit (CPU) , micro processing unit (MPU) , or other circuitry, and may include a network of separate computers or separate computer processors. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM) , a read only memory (ROM) , a storage of distributed computing systems, an optical disk (such as a compact disc (CD) , digital versatile disc (DVD), or Blu-ray Disc (BD)™) , a flash memory device, a memory card, and the like.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2012-268173, filed on December 7, 2012, Japanese Patent Application No. 2013-188641, filed on September 11, 2013, Japanese Patent Application No.
2013-167437, filed on August 12, 2013, and Japanese Patent Application No. 2013-204636, filed on September 30, 2013, which are hereby incorporated by reference herein in their entirety .

Claims

1. An image generating apparatus which generates an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject, the image generating apparatus comprising:
a viewpoint image generating unit configured to generate a viewpoint image from the original image; and
an edge processing unit configured to generate the edge image by applying edge processing to enhance or extract an edge with respect to the viewpoint image generated by the viewpoint image generating unit.
2. The image generating apparatus according to claim 1, wherein
the edge processing is processing having a feature in that a result of compositing a plurality of images and subsequently performing the edge processing on the composite image and a result of performing the edge processing on each of the plurality of images and subsequently compositing the edge images are not consistent with each other.
3. The image generating apparatus according to claim 1 or 2, wherein
the edge processing unit modifies a parameter of edge processing to be applied to the viewpoint image in accordance with a line-of-sight direction of the viewpoint image.
4. The image generating apparatus according to claim 3, wherein
the edge processing unit modifies the parameter of edge processing so that an edge in a direction perpendicular to the line-of-sight direction is enhanced or extracted.
5. The image generating apparatus according to claim 4, wherein
the edge processing is processing in which a filter is applied to the viewpoint image, and
the edge processing unit modifies a coefficient of the filter applied to the viewpoint image as the parameter of edge processing .
6. The image generating apparatus according to claim 3, wherein
the edge processing unit modifies the parameter of edge processing so that the larger an angle formed between a depth direction of the subject and the line-of-sight direction, the wider a spatial frequency range in which enhancement or extraction of an edge is performed spreads toward a low-frequency side.
7. The image generating apparatus according to claim 3, wherein
the edge processing includes processing for suppressing high-frequency noise contained in an edge image, and the edge processing unit modifies the parameter of edge processing so that the larger an angle formed between a depth direction of the subject and the line-of-sight direction, the greater an effect of high-frequency noise suppression.
8. The image generating apparatus according to any one of claims 1 to 7, further comprising
a viewpoint determining unit configured to estimate a direction of an edge included in the original image by analyzing the original image, and to determine a viewpoint at which a viewpoint image is to be generated based on the estimated edge direction .
9. The image generating apparatus according to any one of claims 1 to 8, further comprising
an image synthesizing unit configured to generate an synthesized edge image by synthesizing a plurality of edge images generated from a plurality of viewpoint images having respectively different viewpoints.
10. The image generating apparatus according to claim 9, wherein
the image synthesizing unit composites the plurality of edge images by weighting the edge images, and
an edge image generated from a viewpoint image having a larger angle formed between a depth direction of the subject and a line-of-sight direction is given a smaller weight.
11. The image generating apparatus according to claim 10, wherein
the edge processing unit generates each edge image so that the larger an angle formed between a depth direction of the subject and a line-of-sight direction of a viewpoint image, the greater the degree of edge enhancement or edge extraction.
12. An image generating apparatus that generates a viewpoint image suitable for observation from an original image obtained by imaging a subject, the image generating apparatus comprising:
a viewpoint determining unit configured to estimate a direction of an edge included in the original image by analyzing the original image, and to determine a viewpoint at which a viewpoint image is to be generated based on the estimated edge direction; and
a viewpoint image generating unit configured to generate a viewpoint image from the original image with respect to the viewpoint determined by the viewpoint determining unit.
13. The image generating apparatus according to claim 8 or 12, wherein
the viewpoint determining unit determines the viewpoint at which a viewpoint image is to be generated so that the estimated edge direction and a line-of-sight direction are perpendicular to each other.
1 . The image generating apparatus according to any one of claims 8, 12, and 13, wherein
the viewpoint determining unit detects an edge from the original image and obtains a direction of the edge from a detection result thereof.
15. The image generating apparatus according to any one of claims 8, 12, and 13, wherein
the subject is a cell, and
the viewpoint determining unit detects a position of a nucleus of the cell from the original image and, based on a positional relationship between two adjacent nuclei, obtains a direction of an edge of a cell boundary that passes between the two nuclei.
16. An image generating apparatus that generates a viewpoint image suitable for observation from an original image obtained by imaging a subject,
the image generating apparatus comprising:
a viewpoint determining unit configured to estimate a direction of an edge included in the original image by analyzing the original image, and to determine a plurality of viewpoints at which viewpoint images are to be generated, respectively, based on the estimated edge direction;
a viewpoint image generating unit configured to generate a plurality of viewpoint images from the original image with respect to the plurality of viewpoints determined by the viewpoint determining unit;
a selecting unit configured to cause a user to select two or more viewpoint images from the plurality of viewpoint images; and
a compositing unit configured to composite the two or more viewpoint images selected by the user.
17. An image generating apparatus which generates an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a sub ect, the image generating apparatus comprising:
a filter generating unit configured to generate a filter to perform edge enhancement or edge extraction in accordance with a line-of-sight direction with respect to the subject; and
an edge processing unit configured to generate an edge image by using the original image and the filter.
18. The image generating apparatus according to claim 17, wherein
the filter is generated using a blur function for edge processing which has a larger blur than a blur function of an image pickup system used to image the original image.
The image generating apparatus according to claim wherein
the blur function for edge processing exhibits a larger blur as an angle formed between a depth direction of the subject and a line-of-sight direction becomes larger.
20. The image generating apparatus according to any one of claims 17 to 19, further comprising
an image synthesizing unit configured to generate an synthesized edge image by synthesizing a plurality of edge images generated in accordance with different line-of-sight directions .
21. The image generating apparatus according to any one of claims 1 to 20, wherein
the original image is a Z stack image constituted by a plurality of layer images obtained by imaging the sub ect while varying focusing positions in a depth direction.
22. The image generating apparatus according to any one of claims 1 to 20, wherein
the original image is an image on which a light field is recorded.
23. An image generating method of generating an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject,
the image generating method comprising the steps, executed generating a viewpoint image from the original image; and generating an edge image by applying edge processing to enhance or extract an edge with respect to the generated
24. An. image generating method of generating a viewpoint image suitable for observation from an original image obtained by imaging a subject,
the image generating method comprising the steps, executed by a computer, of:
estimating a direction of an edge included in the original image by analyzing the original image and determining a viewpoint at which a viewpoint image is to be generated based on the estimated edge direction; and
generating a viewpoint image from the original image with respect to the determined viewpoint.
25. An image generating method of generating a viewpoint image suitable for observation from an original image obtained by imaging a subject,
the image generating method comprising the steps, executed by a computer, of:
estimating a direction of an edge included in the original image by analyzing the original image and determining a plurality of viewpoints at which a viewpoint image is to be generated based on the estimated edge direction; generating a plurality of viewpoint images from the original image with respect to the plurality of determined viewpoints ;
causing a user to select two or more viewpoint images from the plurality of viewpoint images; and
compositing the two or more viewpoint images selected by the user.
26. An image generating method of generating an edge image that is an image for which an edge has been enhanced or extracted from an original image obtained by imaging a subject,
the image generating method comprising the steps, executed by a computer, of:
generating a filter for performing edge enhancement or edge extraction in accordance with a line-of-sight direction with respect to the subject; and
generating an edge image by using the original image and the filter.
27. A program that causes a computer to execute the respective steps of the image generating method according to any one of claims 23 to 26.
PCT/JP2013/082652 2012-12-07 2013-11-28 Image generating apparatus and image generating method WO2014088049A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP13811016.8A EP2929508A1 (en) 2012-12-07 2013-11-28 Image generating apparatus and image generating method
US14/649,181 US9881373B2 (en) 2012-12-07 2013-11-28 Image generating apparatus and image generating method

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
JP2012268173 2012-12-07
JP2012-268173 2012-12-07
JP2013-167437 2013-08-12
JP2013167437 2013-08-12
JP2013-188641 2013-09-11
JP2013188641A JP6362062B2 (en) 2012-12-07 2013-09-11 Image generating apparatus and image generating method
JP2013-204636 2013-09-30
JP2013204636A JP2015057682A (en) 2013-08-12 2013-09-30 Image generation device and image generation method

Publications (1)

Publication Number Publication Date
WO2014088049A1 true WO2014088049A1 (en) 2014-06-12

Family

ID=54056024

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/JP2013/082650 WO2014088048A1 (en) 2012-12-07 2013-11-28 Image generating apparatus and image generating method
PCT/JP2013/082652 WO2014088049A1 (en) 2012-12-07 2013-11-28 Image generating apparatus and image generating method

Family Applications Before (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/082650 WO2014088048A1 (en) 2012-12-07 2013-11-28 Image generating apparatus and image generating method

Country Status (3)

Country Link
US (2) US9881373B2 (en)
EP (2) EP2929508A1 (en)
WO (2) WO2014088048A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110426400A (en) * 2019-07-18 2019-11-08 成都新西旺自动化科技有限公司 For touch screen can operating space automatic polisher and its automatic method for polishing
CN110853022A (en) * 2019-11-14 2020-02-28 腾讯科技(深圳)有限公司 Pathological section image processing method, device and system and storage medium

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015104763A1 (en) * 2014-01-07 2015-07-16 ソニー株式会社 Analysis system, analysis program, and analysis method
JP6278741B2 (en) * 2014-02-27 2018-02-14 株式会社キーエンス Image measuring instrument
JP6290651B2 (en) * 2014-02-27 2018-03-07 株式会社キーエンス Image measuring instrument
JP2015192238A (en) * 2014-03-27 2015-11-02 キヤノン株式会社 Image data generation device and image data generation method
JP6422967B2 (en) * 2014-06-10 2018-11-14 オリンパス株式会社 Image processing apparatus, imaging apparatus, microscope system, image processing method, and image processing program
JP2016046642A (en) * 2014-08-21 2016-04-04 キヤノン株式会社 Information processing system, information processing method, and program
DE102014114864B4 (en) * 2014-10-14 2016-06-02 Carl Zeiss Sms Gmbh Method and apparatus for determining a lateral offset of a pattern on a substrate relative to a desired position
WO2016120441A2 (en) * 2015-01-30 2016-08-04 Ventana Medical Systems, Inc. Quality metrics for automatic evaluation of dual ish images
JP6626257B2 (en) 2015-03-03 2019-12-25 キヤノン株式会社 Image display device, imaging device, image display method, program, storage medium
JP6636252B2 (en) * 2015-03-19 2020-01-29 株式会社メガチップス Projection system, projector device, imaging device, and program
JP6324338B2 (en) 2015-03-25 2018-05-16 株式会社日立ハイテクノロジーズ Cell diagnosis support apparatus, cell diagnosis support method, remote diagnosis support system, and service providing system
KR102392597B1 (en) 2015-10-15 2022-04-29 삼성전자주식회사 Method of measuring thickness of object, method of processing image including object and electronic system performing the same
EP3371776B1 (en) * 2015-11-03 2019-08-28 Ventana Medical Systems, Inc. Computer-implemented composite tissue image with real-time adjustable interface
JP6598660B2 (en) 2015-12-01 2019-10-30 キヤノン株式会社 Image processing apparatus and image processing method
JP2017099616A (en) * 2015-12-01 2017-06-08 ソニー株式会社 Surgical control device, surgical control method and program, and surgical system
CN108369332A (en) 2015-12-08 2018-08-03 奥林巴斯株式会社 Microscopic observation system, microscope observation method and micro- sem observation program
JP6742724B2 (en) * 2015-12-28 2020-08-19 シスメックス株式会社 Cell region determination method, cell imaging system, cell image processing device, and computer program
KR102534875B1 (en) * 2016-12-08 2023-05-22 한국전자통신연구원 Method for generating image of arbitrary view-pont using camera array and multi-focus image and apparatus thereof
US11442262B2 (en) 2017-01-16 2022-09-13 Nikon Corporation Image processing device, microscope system, image processing method, and program
US10535434B2 (en) * 2017-04-28 2020-01-14 4D Path Inc. Apparatus, systems, and methods for rapid cancer detection
US10733419B2 (en) 2017-08-29 2020-08-04 Georgia Tech Research Corporation Systems and methods for cell membrane identification and tracking, and technique automation using the same
US10423819B2 (en) * 2017-10-31 2019-09-24 Chung Yuan Christian University Method and apparatus for image processing and visualization for analyzing cell kinematics in cell culture
WO2019102272A1 (en) * 2017-11-24 2019-05-31 Sigtuple Technologies Private Limited Method and system for reconstructing a field of view
US10521963B1 (en) * 2018-06-08 2019-12-31 Verizon Patent And Licensing Inc. Methods and systems for representing a pre-modeled object within virtual reality data
CN112488944A (en) * 2020-12-02 2021-03-12 北京字跳网络技术有限公司 Sample generation and model training methods, apparatuses, devices, and computer-readable media
US11893668B2 (en) 2021-03-31 2024-02-06 Leica Camera Ag Imaging system and method for generating a final digital image via applying a profile to image information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003045244A2 (en) * 2001-11-21 2003-06-05 Koninklijke Philips Electronics Nv Method and apparatus for semi-automatic aneurysm measurement and stent planning using volume image data
US20060171582A1 (en) * 2005-01-27 2006-08-03 Ole Eichhorn Systems and methods for viewing three dimensional virtual slides
JP2007128009A (en) 2005-11-07 2007-05-24 Research Organization Of Information & Systems Imaging device and imaging method using out-of-focus structure

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2003877B1 (en) * 2006-03-31 2015-05-06 Nikon Corporation Image processing method
JP2008017303A (en) 2006-07-07 2008-01-24 Toyota Motor Corp Image display device
US7847979B2 (en) 2006-07-07 2010-12-07 Eastman Kodak Company Printer having differential filtering smear correction
TWI348120B (en) * 2008-01-21 2011-09-01 Ind Tech Res Inst Method of synthesizing an image with multi-view images
KR101367284B1 (en) * 2008-01-28 2014-02-26 삼성전자주식회사 Method and apparatus of inpainting image according to change of viewpoint
CN102293001B (en) * 2009-01-21 2014-05-14 株式会社尼康 Image processing device, image processing method and recording method
US8730435B2 (en) * 2009-07-17 2014-05-20 Jnc Corporation Liquid crystal display device having retardation film formed of liquid crystalline polyimide having photoreactive group
JP4856263B2 (en) 2009-08-07 2012-01-18 シャープ株式会社 Captured image processing system, image output method, program, and recording medium
JP2011065339A (en) 2009-09-16 2011-03-31 Pioneer Electronic Corp Image processing apparatus, image processing method, image processing program and storage medium
US8462150B2 (en) * 2010-04-14 2013-06-11 Lg Chem, Ltd. Stereoscopic image display device
JP2011239195A (en) * 2010-05-11 2011-11-24 Sanyo Electric Co Ltd Electronic apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003045244A2 (en) * 2001-11-21 2003-06-05 Koninklijke Philips Electronics Nv Method and apparatus for semi-automatic aneurysm measurement and stent planning using volume image data
US20060171582A1 (en) * 2005-01-27 2006-08-03 Ole Eichhorn Systems and methods for viewing three dimensional virtual slides
JP2007128009A (en) 2005-11-07 2007-05-24 Research Organization Of Information & Systems Imaging device and imaging method using out-of-focus structure

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
KAZUYA KODAMA; AKIRA KUBOTA: "Efficient Reconstruction of All-in-Focus Images Through Shifted Pinholes from Multi-Focus Images for Dense Light Field Synthesis and Rendering", IEEE TRANS. IMAGE PROCESSING, vol. 22, no. 11, November 2013 (2013-11-01), pages 15
KAZUYA KODAMA; AKIRA KUBOTA: "Scene Refocusing Based on Linear Coupling on a Frequency Region", IMAGE MEDIA PROCESSING SYMPOSIUM (IMPS 2012, vol. I-3, no. 02, October 2012 (2012-10-01), pages 45 - 46
KAZUYA KODAMA; AKIRA KUBOTA: "Virtual Bokeh Reconstruction from a Single System of Lenses", THE JOURNAL OF THE INSTITUTE OF IMAGE INFORMATION AND TELEVISION ENGINEERS, vol. 65, no. 3, March 2011 (2011-03-01), pages 372 - 381
MARC LEVOY ET AL: "Light field microscopy", ACM TRANSACTIONS ON GRAPHICS, vol. 25, 1 January 2006 (2006-01-01), pages 924, XP055043351, ISSN: 0730-0301, DOI: 10.1145/1179352.1141976 *
NAMIKO TORIZAWA; MASANOBU TAKAHASHI; MASAYUKI NAKANO: "Using Multi-imaging Technique for Cell Membrane Extraction in Hepatic Histologic Images", IEICE GENERAL CONFERENCE, March 2009 (2009-03-01), pages D-16 - 9

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110426400A (en) * 2019-07-18 2019-11-08 成都新西旺自动化科技有限公司 For touch screen can operating space automatic polisher and its automatic method for polishing
CN110853022A (en) * 2019-11-14 2020-02-28 腾讯科技(深圳)有限公司 Pathological section image processing method, device and system and storage medium
CN110853022B (en) * 2019-11-14 2020-11-06 腾讯科技(深圳)有限公司 Pathological section image processing method, device and system and storage medium
US11967069B2 (en) 2019-11-14 2024-04-23 Tencent Technology (Shenzhen) Company Limited Pathological section image processing method and apparatus, system, and storage medium

Also Published As

Publication number Publication date
US20150324997A1 (en) 2015-11-12
WO2014088048A1 (en) 2014-06-12
EP2929507A1 (en) 2015-10-14
US9881373B2 (en) 2018-01-30
US20150310613A1 (en) 2015-10-29
EP2929508A1 (en) 2015-10-14

Similar Documents

Publication Publication Date Title
US9881373B2 (en) Image generating apparatus and image generating method
US20240119595A1 (en) Computer supported review of tumors in histology images and post operative tumor margin assessment
US20150279033A1 (en) Image data generating apparatus and image data generating method
Veta et al. Assessment of algorithms for mitosis detection in breast cancer histopathology images
US10176567B2 (en) Physical registration of images acquired by Fourier Ptychography
EP2008243B1 (en) System for preparing an image for segmentation
JP6791245B2 (en) Image processing device, image processing method and image processing program
FR2862788A1 (en) Subject`s e.g. human, image data analyzing method for e.g. X-ray system, involves analyzing temporal change image of patient via computer aided detection algorithm, to identify feature of interest in image
JP6362062B2 (en) Image generating apparatus and image generating method
US11854281B2 (en) System, method, and computer-accessible medium for processing brain images and extracting neuronal structures
Boorboor et al. Visualization of neuronal structures in wide-field microscopy brain images
Oger et al. A general framework for the segmentation of follicular lymphoma virtual slides
US8064679B2 (en) Targeted edge detection method and apparatus for cytological image processing applications
Piccinini et al. Extended depth of focus in optical microscopy: Assessment of existing methods and a new proposal
EP2780888A1 (en) Image processing
JP2015057682A (en) Image generation device and image generation method
Win et al. Automated segmentation and isolation of touching cell nuclei in cytopathology smear images of pleural effusion using distance transform watershed method
Merchant et al. Three-dimensional imaging
Lobachev et al. Compensating anisotropy in histological serial sections with optical flow-based interpolation.
Shuvo et al. Multi-focus image fusion for confocal microscopy using u-net regression map
JP2015191362A (en) Image data generation apparatus and image data generation method
Meijering et al. Quantitative biological image analysis
Ghahremani End-to-End Deep Learning Frameworks for Segmentation, Classification, and Visualization in Optical Microscopy Applications
US20230098732A1 (en) Systems and methods to process electronic images to selectively hide structures and artifacts for digital pathology image review
De Haan Computational deep learning microscopy

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13811016

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14649181

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2013811016

Country of ref document: EP