WO2014028355A2 - Log-chromaticity clustering pipeline for use in an image process - Google Patents

Log-chromaticity clustering pipeline for use in an image process Download PDF

Info

Publication number
WO2014028355A2
WO2014028355A2 PCT/US2013/054457 US2013054457W WO2014028355A2 WO 2014028355 A2 WO2014028355 A2 WO 2014028355A2 US 2013054457 W US2013054457 W US 2013054457W WO 2014028355 A2 WO2014028355 A2 WO 2014028355A2
Authority
WO
WIPO (PCT)
Prior art keywords
image
log
orientation
chromaticity
cpu
Prior art date
Application number
PCT/US2013/054457
Other languages
French (fr)
Other versions
WO2014028355A3 (en
Inventor
Jean-Francois Lalonde
Patrick Buehler
Bruce Allen Maxwell
Casey Arthur Smith
Andrew Neil Stein
Richard Mark Friedhoff
Original Assignee
Tandent Vision Science, Inc.
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 US13/588,706 external-priority patent/US8842907B2/en
Priority claimed from US13/588,720 external-priority patent/US8842910B2/en
Priority claimed from US13/588,667 external-priority patent/US8849018B2/en
Priority claimed from US13/588,688 external-priority patent/US8811732B2/en
Application filed by Tandent Vision Science, Inc. filed Critical Tandent Vision Science, Inc.
Publication of WO2014028355A2 publication Critical patent/WO2014028355A2/en
Publication of WO2014028355A3 publication Critical patent/WO2014028355A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/507Depth or shape recovery from shading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • 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/10024Color image

Definitions

  • the present invention provides an improvement and enhancement to the fundamental teachings of the Friedhoff Patents, and includes a method and system comprising image techniques that accurately and correctly generate intrinsic images, including techniques to provide increased accuracy and precision in the determination of image characteristics used in the generation of the intrinsic images.
  • an automated, computerized method for processing an image.
  • the method comprises the steps of providing an image file depicting an image defined by image locations, in a computer memory, generating a bi- illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, providing a set of estimates for an orientation of the bi-illuminant chromaticity plane and generating a plurality of normal maps, each normal map providing an indication of at least one orientation, each at least one orientation calculated as a function of the set of estimates for an orientation.
  • a computer system comprises a CPU and a memory storing an image file containing an image defined by image locations.
  • the CPU is arranged and configured to execute a routine to generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide a set of estimates for the orientation of the bi-illuminant chromaticity plane and generate a plurality of normal maps, each normal map providing an indication of at least one orientation, each at least one orientation calculated as a function of the set of estimates for an orientation.
  • a computer program product disposed on a computer readable media.
  • the computer program product includes computer executable process steps operable to control a computer to: provide an image file depicting an image defined by image locations, in a computer memory, generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide a set of estimates for the orientation of the bi-illuminant
  • each normal map providing an indication of at least one orientation, each at least one orientation calculated as a function of the set of estimates for an orientation.
  • computer systems which include one or more computers configured (e.g., programmed) to perform the methods described above.
  • non-transitory computer readable media are provided which have stored thereon computer executable process steps operable to control a computer(s) to implement the embodiments described above.
  • the present invention contemplates a computer readable media as any product that embodies information usable in a computer to execute the methods of the present invention, including instructions implemented as a hardware circuit, for example, as in an integrated circuit chip.
  • the automated, computerized methods can be performed by a digital computer, analog computer, optical sensor, state machine, sequencer, integrated chip or any device or apparatus that can be designed or programed to carry out the steps of the methods of the present invention.
  • Figure 1 is a block diagram of a computer system arranged and configured to perform operations related to images.
  • Figure 2 shows an n X m pixel array image file for an image stored in the computer system of figure 1.
  • Figure 3 a is a flow chart for identifying Type C token regions in the image file of figure 2, according to a feature of the present invention.
  • Figure 3b is an original image used as an example in the identification of Type C tokens.
  • Figure 3c shows Type C token regions in the image of figure 3b.
  • Figure 3d shows Type B tokens, generated from the Type C tokens of figure 3 c, according to a feature of the present invention.
  • Figure 4 is a flow chart for a routine to test Type C tokens identified by the routine of the flow chart of figure 3 a, according to a feature of the present invention.
  • Figure 5 is a graphic representation of a log color space chromaticity plane according to a feature of the present invention.
  • Figure 6 is a flow chart for determining a list of colors depicted in an input image.
  • Figure 7a is a flow chart for determining an orientation for a log-chromaticity space.
  • Figure 7b is a flow chart for an additional exemplary embodiment of the present invention, for determining an optimized orientation for a log-chromaticity space.
  • Figure 7c is a flow chart for a log-chromaticity normal optimization technique, according to a feature of the present invention.
  • Figure 7d is a flow chart for implementing a log-chromaticity normal optimization technique when a normal is estimated based upon a user selected lit-dark pairs of pixel blocks.
  • Figure 7e is a flow chart illustrating an entropy minimization technique according to a feature of the present invention.
  • Figure 7f is a flow chart showing the use of a system of linear equations to estimate spatially varying normals.
  • Figure 7g shows an example of a token map having four tokens for use in the system of linear equations of figure 7f,
  • Figure 7h is a flow chart for a multi-clustering merge step.
  • Figure 8 is a flow chart for determining log-chromaticity coordinates for the colors of an input image, as determined through execution of the routine of figure 6.
  • Figure 9 is a flow chart for augmenting the iog-chromaticity coordinates, as determined through execution of the routine of figure 8.
  • Figure 10 is a flow chart for clustering the log-chromaticity coordinates, according to a feature of the present invention.
  • Figure 10a is an illustration of a grid for a spatial hash, according to a feature of the present invention.
  • Figure 11 is a flow chart for assigning the log-chromaticity coordinates to clusters determined through execution of the routine of figure 10.
  • Figure 12 is a flow chart for detecting regions of uniform reflectance based on the log-chromaticity clustering.
  • Figure 14 illustrates intrinsic images including an illumination image and a material image corresponding to the original image of figure 3b
  • Figure 15 is a flow chart for an edge preserving blur post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention.
  • Figure 16 is a flow chart for an artifact reduction post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention.
  • Figure 17 is a flow chart for a BIDR model enforcement post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention.
  • Figure 18 is a graph in RGB color space showing colors for a material, from a fully shaded color value to a fully lit color value, as predicted by a bi-illuminant dichromatic reflection model.
  • FIG. 1 there is shown a block diagram of a computer system 10 arranged and configured to perform operations related to images.
  • a CPU 12 is coupled to a device such as, for example, a digital camera 14 via, for example, a USB port.
  • the digital camera 14 operates to download images stored locally on the camera 14, to the CPU 12.
  • the CPU 12 stores the downloaded images in a memory 16 as image files 18.
  • the image files 18 can be accessed by the CPU 12 for display on a monitor 20, or for print out on a printer 22.
  • the CPU 12 can be implemented as a microprocessor embedded in a device such as, for example, the digital camera 14 or a robot.
  • the CPU 12 can also be equipped with a real time operating system for real time operations related to images, in connection with, for example, a robotic operation or an interactive operation with a user.
  • each image file 18 comprises an n X m pixel array.
  • Each pixel, p is a picture element corresponding to a discrete portion of the overall image. All of the pixels together define the image represented by the image file 18.
  • Each pixel comprises a digital value corresponding to a set of color bands, for example, red, green and blue color components (RGB) of the picture element.
  • RGB red, green and blue color components
  • the present invention is applicable to any multi-band image, where each band corresponds to a piece of the electro-magnetic spectrum.
  • the pixel array includes n rows of m columns each, starting with the pixel p (1,1) and ending with the pixel p(n, m).
  • the CPU 12 retrieves the corresponding image file 18 from the memory 1 , and operates the monitor 20 or printer 22, as the case may be, as a function of the digital values of the pixels in the image file 18, as is generally known.
  • the CPU 12 operates to analyze the RGB values of the pixels of a stored image file 18 to achieve various objectives, such as, for example, to identify regions of an image that correspond to a single material depicted in a scene recorded in the image file 18.
  • a fundamental observation underlying a basic discovery of the present invention is that an image comprises two components, material and illumination. All changes in an image are caused by one or the other of these components.
  • a method for detecting of one of these components, for example, material provides a mechanism for distinguishing material or object geometry, such as object edges, from illumination and shadow boundaries.
  • the intrinsic images correspond to an original image, for example, an image depicted in an input image file 18.
  • the intrinsic images include, for example, an illumination image, to capture the intensity and color of light incident upon each point on the surfaces depicted in the image, and a material reflectance image, to capture reflectance properties of surfaces depicted in the image (the percentage of each wavelength of light a surface reflects).
  • the separation of illumination from material in the intrinsic images provides the CPU 12 with images optimized for more effective and accurate further processing.
  • processing is performed at a token level.
  • a token is a connected region of an image wherein the pixels of the region are related to one another in a manner relevant to identification of image features and characteristics such as an identification of materials and illumination.
  • the pixels of a token can be related in terms of either homogeneous factors, such as, for example, close correlation of color among the pixels, or inhomogeneous factors, such as, for example, differing color values related geometrically in a color space such as RGB space, commonly referred to as a texture.
  • the present invention utilizes spatio-spectral information relevant to contiguous pixels of an image depicted in an image file 18 to identify token regions.
  • the spatio-spectral information includes spectral relationships among contiguous pixels, in terms of color bands, for example the RGB values of the pixels, and the spatial extent of the pixel spectral characteristics relevant to a single material.
  • tokens are each classified as either a Type A token, a Type B token or a Type C token
  • a Type A token is a connected image region comprising contiguous pixels that represent the largest possible region of the image encompassing a single material in the scene (uniform reflectance).
  • a Type B token is a connected image region comprising contiguous pixels that represent a region of the image encompassing a single material in the scene, though not necessarily the maximal region of uniform reflectance
  • a Type B token can also be defined as a collection of one or more image regions or pixels, all of which have the same reflectance (material color) though not necessarily all pixels which correspond to that material color.
  • a Type C token comprises a connected image region of similar image properties among the contiguous pixels of the token, where similarity is defined with respect to a noise model for the imaging system used to record the image.
  • FIG 3a there is shown a flow chart for identifying Type C token regions in the scene depicted in the image file 18 of figure 2, according to a feature of the present invention.
  • Type C tokens can be readily identified in an image, utilizing the steps of figure 3 a, and then analyzed and processed to construct Type B tokens, according to a feature of the present invention.
  • a 1 st order uniform, homogeneous Type C token comprises a single robust color measurement among contiguous pixels of the image.
  • the CPU 12 sets up a region map in memory.
  • the CPU 12 clears the region map and assigns a region ID, which is initially set at 1.
  • Nstart can be any integer > 0, for example it can be set at set at 11 or 15 pixels.
  • a seed test is begun.
  • the pixel is then tested in decision block 104 to determine if the selected pixel is part of a good seed.
  • the test can comprise a comparison of the color value of the selected pixel to the color values of a preselected number of its neighboring pixels as the seed, for example, the N x N array.
  • the color values comparison can be with respect to multiple color band values (RGB in our example) of the pixel.
  • imax can be set at a number of pixels in an image ending at pixel (n, m), as shown in figure 2.
  • the routine of figure 3a parses the entire image at a first value of N before repeating the routine for a reduced value of N.
  • step 104 When a good seed (an N x N array with approximately equal pixel values) is found (block 104), the token is grown from the seed.
  • step 1 12 the CPU 12 pushes the pixels from the seed onto a queue. All of the pixels in the queue are marked with the current region ID in the region map. The CPU 12 then inquires as to whether the queue is empty (decision block 1 14). If the queue is not empty, the routine proceeds to step 1 16.
  • step 116 the CPU 12 pops the front pixel off the queue and proceeds to step 1 18.
  • step 1 18 the CPU 12 marks "good' neighbors around the subject pixel, that is neighbors approximately equal in color value to the subject pixel, with the current region ID. All of the marked good neighbors are placed in the region map and also pushed onto the queue. The CPU 12 then returns to the decision block 1 14. The routine of steps 1 14, 1 16, 1 18 is repeated until the queue is empty. At that time, all of the pixels forming a token in the current region will have been identified and marked in the region map as a Type C token.
  • step 120 the CPU 12 increments the region ID for use with identification of a next token.
  • the CPU 12 then returns to step 106 to repeat the routine in respect of the new current token region.
  • FIG. 3 b is an original image used as an example in the identification of tokens.
  • the image shows areas of the color blue and the blue in shadow, and of the color teal and the teal in shadow.
  • Figure 3 c shows token regions corresponding to the region map, for example, as identified through execution of the routine of figure 3a (Type C tokens), in respect to the image of figure 3b.
  • the token regions are color coded to illustrate the token makeup of the image of figure 3b, including penumbra regions between the full color blue and teal areas of the image and the shadow of the colored areas.
  • each Type C token comprises a region of the image having a single robust color measurement among contiguous pixels of the image
  • the token may grow across material boundaries.
  • different materials connect together in one Type C token via a neck region often located on shadow boundaries or in areas with varying illumination crossing different materials with similar hue but different intensities.
  • a neck pixel can be identified by examining characteristics of adjacent pixels. When a pixel has two contiguous pixels on opposite sides that are not within the corresponding token, and two contiguous pixels on opposite sides that are within the corresponding token, the pixel is defined as a neck pixel.
  • Figure 4 shows a flow chart for a neck test for Type C tokens.
  • the CPU 12 examines each pixel of an identified token to determine whether any of the pixels under examination forms a neck.
  • the routine of figure 4 can be executed as a subroutine directly after a particular token is identified during execution of the routine of figure 3a. All pixels identified as a neck are marked as "ungrowable.”
  • decision block 124 the CPU 12 determines if any of the pixels were marked. [0055] If no, the CPU 12 exits the routine of figure 4 and returns to the routine of figure 3a (step 126).
  • step 128 the CPU 12 proceeds to step 128 and operates to regrow the token from a seed location selected from among the unmarked pixels of the current token, as per the routine of figure 3a, without changing the counts for seed size and region ID.
  • the CPU 12 does not include any pixel previously marked as ungrowable. After the token is regrown, the previously marked pixels are unmarked so that other tokens may grow into them.
  • the CPU 12 returns to step 122 to test the newly regrown token.
  • Neck testing identifies Type C tokens that cross material boundaries, and regrows the identified tokens to provide single material Type C tokens suitable for use in creating Type B tokens.
  • Figure 3d shows Type B tokens generated from the Type C tokens of figure 3c, according to a feature of the present invention.
  • the present invention provides a novel exemplary technique using log-chromaticity clustering, for constructing Type B tokens for an image file 18.
  • Log chromaticity is a technique for developing an illumination invariant chromaticity space.
  • 7,596,266 can be used to provide illumination invariant log-chromaticity representation values for each color of an image, for example, as represented by Type C tokens.
  • Logarithmic values of the color band values of the image pixels are plotted on a log- color space graph.
  • the logarithmic values are then projected to a log-chromaticity projection plane oriented as a function of a bi-illuminant dichromatic reflection model (BIDR model), to provide a log-chromaticity value for each pixel, as taught in U. S. Patent No. 7,596,266.
  • the BIDR Model predicts that differing color measurement values fall within a cylinder in RGB space, from a dark end (in shadow) to a bright end (lit end), along a positive siope, when the color change is due to an illumination change forming a shadow over a single material of a scene depicted in the image.
  • Figure 5 is a graphic representation of a log color space, bi-illuminant chromaticity plane according to a feature of the invention disclosed in U. S, Patent No. 7,596,266.
  • the co-ordinates of the plane, u, v can be defined by a projection of the green axis onto the chromaticity plane as the u axis, and the cross product of u and N being defined as the v axis.
  • each log value for the materials A, B, C is projected onto the chromaticity plane, and will therefore have a corresponding u, v co-ordinate value in the plane that is a chromaticity value, as shown in figure 5.
  • the RGB values of each pixel in an image file 18 can be mapped by the CPU 12 from the image file value p(n, m, R, G, B) to a log value, then, through a projection to the chromaticity plane, to the corresponding u, v value, as shown in figure 5.
  • Each pixel p(n, m, R, G, B) in the image file 18 is then replaced by the CPU 12 by a two dimensional chromaticity value: p(n, m, u, v), to provide a chromaticity representation of the original RGB image.
  • the N color values are replaced by N - 1 chromaticity values.
  • the chromaticity representation is a truly accurate illumination invariant representation because the BIDR model upon which the representation is based, accurately and correctly represents the illumination flux that caused the original image.
  • log- chromaticity values are calculated for each color depicted in an image file 18 input to the CPU 12 for identification of regions of the uniform reflectance (Type B tokens).
  • each pixel of a Type C token will be of approximately the same color value, for example, in terms of RGB values, as all the other constituent pixels of the same Type C token, within the noise level of the equipment used to record the image.
  • an average of the color values for the constituent pixels of each particular Type C token can be used to represent the color value for the respective Type C token in the log-chromaticity analysis.
  • Figure 6 is a flow chart for determining a list of colors depicted in an input image, for example, an image file 18.
  • an input image file 18 is input to the CPU 12 for processing.
  • the CPU 12 determines the colors depicted in the input image file 18.
  • the CPU 12 calculates an average color for each Type C token determined by the CPU 12 through execution of the routine of figure 3a, as described above, for a list of colors.
  • the CPU 12 can be operated to optionally require a minimum token size, in terms of the number of constituent pixels of the token, or a minimum seed size (the N x N array) used to determine Type C tokens according to the routine of figure 3 a, for the analysis.
  • the minimum size requirements are implemented to assure that color measurements in the list of colors for the image are an accurate depiction of color in a scene depicted in the input image, and not an artifact of blend pixels.
  • Blend pixels are pixels between two differently colored regions of an image. If the colors between the two regions are plotted in RGB space, there is a linear transition between the colors, with each blend pixel, moving from one region to the next, being a weighted average of the colors of the two regions. Thus, each blend pixel does not represent a true color of the image. If blend pixels are present, relatively small Type C tokens, consisting of blend pixels, can be identified for areas of an image between two differently colored regions. By requiring a size minimum, the CPU 12 can eliminate tokens consisting of blend pixel from the analysis.
  • the CPU 12 can alternatively collect colors at the pixel level, that is, the RGB values of the pixels of the input image file 18, as shown in figure 2.
  • the CPU 12 can be operated to optionally require each pixel of the image file 18 used in the analysis to have a minimum stability or local standard deviation via a filter output, for a more accurate list of colors.
  • second derivative energy can be used to indicate the stability of pixels of an image.
  • the CPU 12 calculates a second derivative at each pixel, or a subset of pixels disbursed across the image to cover all illumination conditions of the image depicted in an input image file 18, using a Difference of Gaussians, Laplacian of Gaussian, or similar filter.
  • the second derivative energy for each pixel examined can then be calculated by the CPU 12 as the average of the absolute value of the second derivative in each color band (or the absolute value of the single value in a grayscale image), the sum of squares of the values of the second derivatives in each color band (or the square of the single value in a grayscale image), the maximum squared second derivative value across the color bands (or the square of the single value in a grayscale image), or any similar method.
  • the CPU 12 analyzes the energy values of the pixels. There is an inverse relationship between second derivative energy and pixel stability, the higher the energy, the less stable the corresponding pixel.
  • step 206 the CPU 12 outputs a list or lists of color (after executing one or both of steps 202 and/or 204). According to a feature of the related invention, all of the further processing can be executed using the list from either step 202 or 204, or vary the list used (one or the other of the lists from steps 202 or 204) at each subsequent step.
  • Figure 7a is a flow chart for determining an orientation for a log-chromaticity representation, according to a feature of the related invention. For example, the CPU 12 determines an orientation for the normal N, for a log-chromaticity plane, as shown in figure 5. In step 210, the CPU 12 receives a list of colors for an input file 18, such as a list output in step 206 of the routine of figure 6. In step 212, the CPU 12 determines an orientation for a log-chromaticity plane.
  • orientation of the chromaticity plane is represented by N, N being a vector normal to the chromaticity representation, for example, the chromaticity plane of figure 5.
  • the orientation is estimated by the CPU 12 thorough execution of any one of several techniques. For example, the CPU 12 can determine estimates based upon entropy minimization, manual selection of lit/shadowed regions of a same material by a user or the use of a characteristic spectral ratio (which corresponds to the orientation N) for an image of an input image file 18, as fully disclosed in U. S. Patent No. 7,596,266.
  • the log-chromaticity normal, N defines a sub-space with one less dimension than the input space.
  • the normal N defines a three dimensional log-chromaticity space.
  • step 214 the CPU 12 outputs an orientation for the normal N.
  • the normal N defines an orientation for a u, v plane in a three dimensional RGB space.
  • processing techniques are implemented to provide increased accuracy and precision in the determination of the normal, N, and, further, to calculate spatially varying log- chromaticity normals, to account for varying conditions that can exist in a scene depicted in an image file 18.
  • Figure 7b shows a flow chart for improving accuracy in the generation of illumination invariant (same reflectance) log-chromaticity
  • step 1000 an image file 18 is input to the CPU 12, for example, the input file 18 processed in the routine of figure 6.
  • one or more values (1-K) for the normal N are either automatically estimated by the CPU 12 and/or provided by user input, as shown in sub-steps 1002a-d.
  • Each normal is associated with corresponding pixel positions for the pixels used to calculate the respective normal, N, for example, from among pixels p(l , 1) to p(n, m) of an image file 18 being processed, as shown in figure 2.
  • a user designates, for example, via a touch screen action, one or more sets of lit-dark pairs of pixel blocks, the pairs each corresponding to lit and shadowed regions of a same material, respectively, depicted in the image of the image file 18 being processed.
  • Each pixel block includes, for example, an n x n array of pixels.
  • the CPU 12 operates to automatically estimate one or more values for the normal, N.
  • a linear token is a nonhomogeneous token comprising a connected region of the image wherein adjacent pixels of the region have differing color measurement values that fall within a cylinder in RGB space, from a dark end (in shadow) to a bright end (lit end) of a single material, along a positive slope (see, for example, figure 18, showing colors for a material, from a fully shaded color value to a fully lit color value, as predicted by a bi-illuminant dichromatic reflection model).
  • the cylinder configuration is predicted by the bi-illuminant dichromatic reflection model (BIDR model).
  • the BIDR model predicts the correct colors for a material, in a shadow penumbra, from full shadow to fully lit.
  • Each linear token therefore, provides a candidate image region that likely corresponds to a set of pixels extending through a penumbra across a single material depicted in the image,
  • U. S. Patent No. 7,995,058 discloses a technique for analyzing pixels of an image to identify contiguous pixels forming linear tokens throughout the image.
  • the CPU 12 is operated to execute the technique taught in U. S. Patent No. 7,995,058, to identify a set of linear tokens in the image being processed.
  • the characteristic spectral ratio(s) for calculating a normal(s), N, for the log-chromaticity plane can be based upon color information provided by either one or both of the lit-dark pairs of pixel blocks selected by a user (step 002a) and/or the pixels defining the linear tokens identified by the CPU 12 (step 1002b).
  • the CPU 12 fits a line to a plot, for example, in an RGB space, of the pixels of the respective linear token (see, for example, figure 18). The slope of the line can be used to represent an Svector. As in the previous example, the CPU 12 then proceeds to use the line slope information to calculate Svector based N value for each linear token.
  • Steps 1002c and d provide additional automatic methods for calculating a log- chromaticity plane orientation.
  • the automatic calculation is based upon X-j unctions
  • the automatic calculation is based upon Type B tokens.
  • An X-junction is a region of an image wherein an illumination boundary crosses a material object boundary. Accordingly, each X-junction includes two materials, with each material including lit and shadowed regions, for example, as depicted by four adjacent Type C tokens. Type C tokens are identified by the CPU 12 via execution of the routine of figure 3a, as described above (step 1004).
  • U. S. Patent No. 7,672,530 teaches a technique for automatically identifying X- j unctions in an image by analysis of token neighbor relationships indicative of spatio- spectral features of an image.
  • the CPU 12 is operated to implement the technique of U. S. Patent No, 7,672,530 to perform iterations through Type C token neighbor relationships to identify a region where spectral ratios indicate a crossing of
  • illumination and material object boundaries for example spectral ratios based upon - Dark vector ), wherein the vectors are sample pixels from each side of a boundary between neighboring Type C tokens).
  • each Type B token is a connected image region comprising contiguous pixels that represent a region of the image encompassing a single material in the scene.
  • each type B token potentially covers a region of the image wherein one material extends from a fully lit end to an end in full shadow. Accordingly, a Type B token can be used to determine an Svector for use in the calculation of a normal N.
  • a Bright pixel for use in the calculation of an Svector can be selected from the 95 th percentile among the pixels of a Type B token, and a Dark pixel selected from the 5 th percentile.
  • Each normal, 1 -K based upon either a user selection and/or calculated by the CPU 12, is associated with pixel positions P corresponding to the pixels used to calculate the respective normal, N.
  • P For each normal based upon a user-selected lit-dark pair, P includes the pixels of each n x n array of pixels of each selected lit and dark pixel block.
  • P For each of the normals based upon linear tokens, P includes the pixels of the respective linear token.
  • P includes the pixels of the Type C tokens defining a respective X-junction.
  • P includes the pixels of the respective Type B token.
  • step 1006 the CPU 12 operates to optimize each of the 1-K normals.
  • Each of the 1-K normals is estimated utilizing relatively few of the pixels (for example, the pixel positions P) of the entire image.
  • Figure 7c is a flow chart for implementing a log- chromaticity normal optimization technique (step 1006), according to a feature of the present invention, to provide a more robust estimate of each normal relative to the entire set of pixels forming the image being processed.
  • the CPU 12 executes the routine of figure 7c once for each of the 1-K normals selected by a user and/or calculated by the CPU 12, to optimize each one of the respective 1-K normals relative to all of the pixels of the image being processed.
  • step 2000 one of the 1-K normals, is input to the CPU 12, (for example, as estimated by one of the example techniques (corresponding to steps 1002a-c) (shown next to step 2000, in figure 7c)), together with the pixel positions P used to calculate the respective normal.
  • step 2002 the CPU 12 calculates a weight w for each pixel of the image being processed I, (an image file 18, also input to the CPU 12 (step 2002a)).
  • the weight for each pixel of the image in the exemplary embodiment of the present invention, is determined as a function of each of a spatial distance between the respective pixel and the set of pixels P used to calculate the respective normal and a spectral distance between the pixel and the set of pixels P .
  • the weight w at a particular pixelrage in the image /, relative to P is computed based upon a set of M distance functions (M ⁇ I- k), d k - (prada P), between the pixel p s and P.
  • a d k (pcountry P) value for each pixel corresponds to one of a d spatial distance value and a d spectra , distance value for that pixel.
  • Each d ⁇ P) value is calculated for each pixel p t of the image by the CPU 12.
  • the spatial distance value measures a Euclidean norm in the spatial extent of the image, as shown, for example, in figure 2.
  • the spectral distance measures a distance in a color space, such as, for example, the log color space shown in figure 5.
  • min (p e P) is the closest pixel in P to the pixel p t in terms of a Euclidean distance
  • ⁇ p, -p ⁇ 2 denotes the Euclidean norm.
  • min (p £ P) is the closest pixel in P to the pixel p, in terms of spectral distance in a log-RGB space
  • / (p,) is the log-RGB value
  • / ( ,) - 1( p) ⁇ 2 is the norm of the spectral distance.
  • the CPU 12 Upon the calculation of a spatial distance and spectral distance for each pixel, the CPU 12 operates to determine a weight for each pixel as a function of the calculated distances. Each of the spatial and spectral distances for each pixel is converted by the CPU 12 to a weight w ki e 10, 1 1 , for example, by implementing a soft threshold function, such as a sigmoid:
  • x k are parameters defining the softness and position of the threshold function, respectively.
  • the parameter values can be set, as follows:
  • a single weight w,-, for each particular pixel p i is calculated as a function of of the corresponding spatial and spectral weights, as follows:
  • steps 2010a, b a set of lit, dark n x n pixel blocks, as selected by a user, and the image being processed, are input to the CPU 12.
  • step 2012 the CPU 12 operates to fit a sigmoid on a line extending between the centroid of the lit n x n pixel block (P to ) and the centroid (p dark . cemroid) °f me dark n x n pixel block (P dark ).
  • a user selects lit/dark pairs that are lit and shadowed regions of a same material.
  • a user can select pairs of pixel blocks that are at different materials within the image.
  • An analysis based upon a sigmoid fit can be used to verify that the line is crossing a shadow boundary extending over a single material.
  • a parametric model of illumination is used to determine if the line / extending between the centroid of the lit pixel block and the centroid of the dark pixel block overlaps a shadow boundary extending across a single material.
  • Fitting the model to find the parameters (e.g. and ⁇ ) that minimize the difference between the model and the observed image data can be implemented via a non-linear optimization procedure such as, for example, the Levenberg-Marquardt algorithm.
  • a fit quality q for the set of pixels P, forming the line can be defined to be inversely proportional to the residual between the final fitted model and the original image data /.
  • the CPU 12 can use the root mean squared error measure:
  • the CPU 12 determines if the fit quality q
  • step 2012 calculates a distance, d, ine , to measure a spatial distance from each pixel p t in the image being processed / to the line /, as follows:
  • the CPU 12 sets c , e (p i5 P,) - ⁇ , for each pixel of the image / (step 2018).
  • step 2022 the CPU 12 computes the spatial distance, d spalia f i , P), for each pixel, as a function of d ⁇ ip ⁇ ,) (calculated in steps 2016 or 2018) and d poiril (pcetate P) calculated in step 2020, as follows:
  • the CPU 12 computes and outputs a weight for each pixel, according to the steps executed by the CPU 12 in the general case, described above, using the spatial distance, as calculated for the case of a user-selected normal, and the spectral distance, as calculated in the general case.
  • step 2004 the CPU 12 finds an optimized normal based upon a method to minimize a weighted entropy, using the weight calculation from step 2002.
  • step 2004a a list of colors based upon Type C tokens, for example, as determined in step 202 of figure 6, is input to the CPU 12, for use in the weighted entropy minimization technique.
  • Figure 7e is a flow chart illustrating an entropy minimization technique, according to a feature of the present invention.
  • step 2500 the list of colors (step 2004a of figure 7c) and an initial normal value (one of the 1-K estimates) are input to the CPU 12.
  • step 2502 the CPU 12 operates to project each color from the list of colors to a chromaticity plane defined by the normal N.
  • the projection step is executed as per the routine of figure 8, as described in detail below.
  • step 2504 the CPU 12 operates to estimate the entropy of the projected colors.
  • Entropy is inversely proportional to order, the lower the entropy, the higher the order of the system under review.
  • the entropy of the projection of points onto the plane is a measure of how well the pairs line up for all materials in an image file 18, for example, the image file 18 for the image being processed /. The lower the entropy, the higher the order of the
  • U. S. Patent No. 7,596,266 teaches a method for finding an optimal alignment for the normal N for the chromaticity plane, by utilizing an entropy minimization technique.
  • a histogram for the chromaticity plane shows the distribution of log color space projections among a grid of bins. The wider the distribution across the plane of the histogram, the higher the entropy.
  • the entropy equation based upon the bins of a histogram (H) is computed as a function of the weight calculations performed in step 2002 of figure 7c, as follows:
  • p b is the value of each bin of the histogram, calculated to provide an indication of the percentage of the distribution of log RGB values across the chromaticity plane in the bin
  • w b is the sum of the weights of the pixels located in a bin (one w b sum value for each bin).
  • the CPU 12 executes a search strategy for candidate values for the normal, after the entropy calculation based upon the initial normal estimate (one of the 1- normal estimates).
  • the CPU 12 can execute any known search technique to select a series of orientations for the chromaticity plane, relative to the initial value, and thereafter, select the orientation for the plane having the lowest entropy.
  • Such known search techniques include, for example, exhaustive search, univariate search, and simulated annealing search methods described in the literature.
  • the univariate search technique is described in Hooke & Jeeves, "Direct Search Solution of Numerical and Statistical Problems," Journal of the ACM, Vol. 8, pp 212-229, April, 1961.
  • Step 2506 is implemented as a decision block.
  • the search technique is operated to identify a fixed number of candidate normals, if the search process is not yet complete, the CPU 12 outputs a newly selected normal value, identified via the search process (step 2508). The CPU 12 then proceeds to repeat steps 2502 and 2504, using the new candidate normal, to calculate an entropy measure for the image.
  • the CPU 12 operates to select and output the normal corresponding to the bin color distribution having the lowest entropy (showing the highest order for the chromaticity plane, and, thus, the most accurate projection of image colors).
  • step 2006 the CPU 12 outputs the optimized value for the one of the 1-K estimated normals input to the routine of figure 7c.
  • the CPU 12 executes the routine of figure 7c (step 1006 of figure 7b) once for each of the 1 -K normals selected by a user and/or calculated by the CPU 12, to optimize each one of the respective 1-K normals relative to all of the pixels of the image being processed.
  • step 1008 includes sub-steps 1008a-c.
  • the CPU 12 operates to generate a normal image or map for one or more of the optimized values for the 1-K normals.
  • the CPU 12 designates a normal value, for use in a projection to the chromaticity plane.
  • the number of sub-steps can be 1-M, wherein M is a variable.
  • M can be set to equal K such that there is a single normal map for each one of the optimized 1-K normals.
  • the CPU 12 assigns the same optimized one of the 1-K normals for each pixel or Type C token in the respective map, with one map for each one of 1-K normals.
  • the optimized one of the 1-K normals can also be an average of all of the K normals to provide a single normal map, with the average value for the normal assigned to each pixel in the image.
  • additional maps can be generated for the 1 -K normals, including spatially varying normal values to
  • a normal map can contain a normal for each image location, each normal being based upon all or some of the 1 -K normal estimates, such as the k nearest neighboring normals to an image location (pixel or Type C token) (&-NN), where A: is a number set at a value equal to all or a sub-set of the number of 1-K normals, and/or each normal being calculated using a linear system of equations based upon constraints placed upon relationships among the 1-K normals.
  • the CPU 12 computes for each image location (pixel or Type C token), the distance between that location and each of the k nearest normals to the respective location.
  • the value for k is set to a number equal to all or any sub-set of the 1-K number of optimized normal estimates found in step 1006 of figure 7b.
  • the CPU 12 then converts the calculated distances into corresponding weights for use in computing a normal for each image location, as a function of the k nearest normal estimates.
  • the distance function for each image location (for example, each pixel p i ) to each one of the k nearest normals to that location, is a weighted linear combination of M individual distance functions, as follows:
  • M is set to 2
  • d (p postal P x ) is the distance between a particular pixel p, and one of the h nearest normals
  • P x are the pixels used to estimate the one of the k nearest normals
  • each d, (p i; P x ) includes a spatial distance, d spalj pate P x ) and a spectral distance, d speclral (p i; , P x ), each calculated as in the optimization method.
  • ⁇ ⁇ and ⁇ 2 are parameters set to control the relative importance between the spatial and spectral distances in the weighted distance calculation.
  • d (p postal P x ) is the weighted distance to the current one of the k nearest normals in the summation
  • max x k d (p t , P x ) is the distance to the furthest one of the k normals
  • a normal map can then be output by the CPU 12 with an n, normal value determined as a function of the A NN algorithm, for each pixel location in the image /.
  • the CPU 12 executes one or more of sub-steps 1008a-c of figure 7b by building a system of linear equations based upon a series of constraints between, for example, n t normal values for image locations determined as a function of the £-NN algorithm, to generate a normal map.
  • Figure 7f is a flow chart showing the use of a system of linear equations to estimate spatially varying normals for each token t in the image /.
  • steps 600a-d information and parameters relevant to the linear equations are input to the CPU 12.
  • a smoothness weight w smooth « 1 is input to the CPU 12.
  • the set of weights E is determined based upon an edge detection.
  • an edge detection For example, normals determined using the k-NN algorithm can be used to generate a log-chromaticity representation for the image, for example, by operating the CPU 12 to execute the routine of figure 8. The resulting representation will be an illumination invariant version of the original image.
  • Each of the set of values E and the weight w smooth are used to define a set of weight values for use in smoothness constraints (step 602) such that a weight ⁇ ; for a corresponding token is set to w smoolh when the e i for the token is 1 , and set to 1 when the e, is 0.
  • the smoothness constraint takes the form shown in step 604, as follows: wherein x, and Xj are normals to be determined for two adjacent tokens, the constraint encourages the two normals to be the same when neither one of the adjacent tokens is an edge token.
  • step 600c a data weight value, w dala , is input to the CPU 12.
  • the weight is used in a data constraint that encourages a normal for an image location to stay close to an estimate for the normal value determined in a previously executed method, for example, the £-NN method. Then weight sets the relative importance of the data constraint.
  • step 606 a set of normal estimates V- ⁇ v y , v 2 ...
  • v p ⁇ is input to the CPU 12, wherein each v ( is, for example, a &-NN estimate for a normal for an image token
  • a weight w anchor for an anchor constraint, is input to the CPU 12.
  • the anchor constraint focuses on tokens that include pixels used to estimate the 1 -K normals.
  • an input to the CPU 12 includes the set of 1-K normals N, including all of the normals estimated by a user selection and/or calculated by the CPU 12, and the associated token positions ⁇ T, ... T N ⁇ , each token position including constituent pixels P corresponding to the pixels used to calculate a respective one of the 1 -K normals, as described above.
  • the anchor constraint encourages tokens used to estimate a normal to stay at that normal value.
  • the[ L] matrix includes a concatenation of each left- hand side of each of the smoothness, data and anchor constraints, with each instance of each constraint forming a row across the matrix.
  • the [r] matrix includes a concatenation of each right hand side of each of the smoothness, data and anchor constraints, with each instance of each constraint forming a row across the matrix.
  • step 620 the CPU 12 solves for [x], a matrix of optimized normals, one for each image location, for example, Type C tokens, wherein each normal is a vector, for example a 3 -vector in the RGB color space of the exemplary embodiment of the present invention.
  • the solution can be implemented as a known least-squares algorithm.
  • Figure 7g shows an example of a token map having four tokens analyzed in the system of linear equations of figure 7f.
  • four tokens , b, c and d include one token (b) identified as an edge token, and one token (d) identified as a token used to estimate a normal n b .
  • the matrix shown in figure 7g represents an application of smoothness constraints to the set of tokens ⁇ , 6, c and d and an anchor constraint to the token d.
  • the CPU 12 can solve the matrix equation to provide a set of normals, x a , x b , x c , and ⁇ ⁇ one for each of the tokens a, b, c and d, respectively.
  • each sub-step lOlOa-c the CPU executes the routines of figures 8-1 1, to generate a log-chromaticity clustering map corresponding to a respective one of the M normal maps,
  • Each clustering map provides a same reflectance map since the pixels or Type C tokens (step 1004) included in each identified cluster relate to a single material reflectance, independent of illumination.
  • Each cluster map includes a list of cluster group memberships cross-referenced to the pixels or Type C tokens of the image being processed /.
  • Figure 8 is a flow chart for determining log-chromaticity coordinates for the colors of an input image, as identified in steps 202 or 204 of the routine of figure 6.
  • a list of colors is input to the CPU 12.
  • the list of colors can comprise either the list generated through execution of step 202 of the routine of figure 6, or the list generated through execution of step 204.
  • one of the maps for one of the optimized 1-K log-chromaticity orientations for the normal, N, determined through execution of the routine of figures 7b, is also input to the CPU 12.
  • step 224 the CPU 12 operates to calculate a log value for each color in the list of colors and plots the log values in a three dimensional log space at respective (log R, log G, log B) coordinates, as illustrated in figure 5.
  • Materials A, B and C denote log values for specific colors from the list of colors input to the CPU 12 in step 220.
  • a log- chromaticity plane is also calculated by the CPU 12, in the three dimensional log space, with u, v coordinates and an orientation set by N, input to the CPU 12 in step 222.
  • the orientation N used for each particular color is set to correspond to the normal indicated for the corresponding pixel or Type C token in the respective normal map.
  • Each u, v coordinate in the log-chromaticity plane can also be designated by a corresponding (log R, log G, log B) coordinate in the three dimensional log space.
  • the CPU 12 then projects the log values for the colors A, B and C onto the log-chromaticity plane (oriented, in each case, according to the normal N listed in the normal map for the pixel (or Type C token) corresponding to the color) to determine a u, v log-chromaticity coordinate for each color.
  • Each u, v log-chromaticity coordinate can be expressed by the corresponding (log R, log G, log B) coordinate in the three dimensional log space.
  • the CPU 12 outputs a list of the log-chromaticity coordinates in step 226.
  • the list cross-references each color to a u, v log-chromaticity coordinate and to the pixels (or a Type C token) having the respective color (depending upon the list of colors used in the analysis (either step 202(tokens) or 204 (pixels))).
  • Figure 9 is a flow chart for optionally augmenting the log-chromaticity coordinates for pixels or Type C tokens with extra dimensions, according to a feature of the related invention.
  • step 230 the list of log-chromaticity coordinates, determined for the colors of the input image through execution of the routine of figure 8, is input to the CPU 12.
  • step 232 the CPU 12 accesses the input image file 18, for use in the augmentation.
  • step 234 the CPU 12 optionally operates to augment each log-chromaticity coordinate with a tone mapping intensity for each corresponding pixel (or Type C token).
  • the tone mapping intensity is determined using any known tone mapping technique.
  • An augmentation with tone mapping intensity information provides a basis for clustering pixels or tokens that are grouped according to both similar log- chromaticity coordinates and similar tone mapping intensities. This improves the accuracy of a clustering step.
  • step 236 the CPU 12 optionally operates to augment each log-chromaticity coordinate with x, y coordinates for the corresponding pixel (or an average of the x, y coordinates for the constituent pixels of a Type C token) (see figure 2 showing a P (1,1) to P (N, M) pixel arrangement ).
  • a clustering step with x, y coordinate information will provide groups in a spatially limited arrangement, when that characteristic is desired.
  • the augmented information can, in each case, be weighted by a factor w, and w 2> w 3 respectively, to specify the relative importance and scale of the different dimensions in the augmented coordinates.
  • the weight factors W ] and w 2 , w 3 are user-specified. Accordingly, the (log R, log G, log B) coordinates for a pixel or Type C token is augmented to (log R, log G, log B, T*w, x*w 2 y*w 3 ) where T, x and y are the tone mapped intensity, the x coordinate and the y coordinate, respectively.
  • step 2308 the CPU 12 outputs a list of the augmented coordinates.
  • the augmented log-chromaticity coordinates provide accurate illumination invariant representations of the pixels, or for a specified regional arrangement of an input image, such as, for example, Type C tokens.
  • the illumination invariant characteristic of the log- chromaticity coordinates is relied upon as a basis to identify regions of an image of a single material or reflectance, such as, for example, Type B tokens.
  • FIG 10 is a flow chart for clustering the log-chromaticity coordinates, according to a feature of the present invention.
  • step 240 the list of augmented log- chromaticity coordinates is input the CPU 12.
  • step 242 the CPU 12 operates to cluster the log-chromaticity coordinates.
  • the clustering step can be implemented via, for example, a known k-means clustering. Any known clustering technique can be used to cluster the log-chromaticity coordinates to determine groups of similar log-chromaticity coordinate values, according to the related invention.
  • the CPU 12 correlates each log-chromaticity coordinate to the group to which the respective coordinate belongs.
  • the clustering step 242 is implemented as a function of an index of the type used in database management, for example, a hash index, a spatial hash index, b-trees or any other known index commonly used in a database management system.
  • an index of the type used in database management for example, a hash index, a spatial hash index, b-trees or any other known index commonly used in a database management system.
  • FIG 10a is an illustration of a grid for a spatial hash, according to a feature of an exemplary embodiment of the present invention.
  • a spatial hash divides an image being processed into a grid of buckets, each bucket being dimensioned to be spatialThresh x spatialThresh.
  • the grid represents a histogram of the u, v log-chromaticity values for the cluster groups. As each cluster is created, a reference to the cluster is placed in the appropriate bucket of the grid.
  • Each new pixel or token of the image being processed is placed in the grid, in the bucket it would occupy, as if the item (pixel or token) was a new group in the clustering process.
  • the pixel or token is then examined relative to the clusters in, for example, a 3 x 3 grid of buckets surrounding the bucket occupied by the item being examined.
  • the item is added to the cluster group within the 3 x 3 gird, for example, if the item is within a threshold for a clusterMean.
  • the CPU 12 also operates to calculate a center for each group identified in the clustering step. For example, the CPU 12 can determine a center for each group relative to a (log R, log G, log B, log T) space.
  • step 244 the CPU 12 outputs a list of the cluster group memberships for the log-chromaticity coordinates (cross referenced to either the corresponding pixels or Type C tokens) and/or a list of cluster group centers,
  • the list of cluster group memberships can be augmented with a user input of image characteristics. For example, a user can specify pixels or regions of the image that are of the same material reflectance.
  • the CPU 12 operates to overlay the user specified pixels or regions of same reflectance onto the clustering group membership information.
  • the CPU 12 can use the list of colors from either the list generated through execution of step 202 of the routine of figure 6, or the list generated through execution of step 204.
  • the CPU 12 can be operated to use the same set of colors as used in the clustering method (one of the list of colors corresponding to step 202 or to the list of colors corresponding to step 204), or apply a different set of colors (the other of the list of colors corresponding to step 202 or the list of colors corresponding to step 204). If a different set of colors is used, the CPU 12 proceeds to execute the routine of figure 11.
  • Figure 1 1 is a flow chart for assigning the log-chromaticity coordinates to clusters determined through execution of the routine of figure 10, when a different list of colors is used after the identification of the cluster groups, according to a feature of the present invention.
  • the CPU 12 once again executes the routine of figure 8, this time in respect to the new list of colors.
  • step 250 of the routine of figure 11 is executed to determine the log-chromaticity coordinates for the colors of the pixels in the input image file 18.
  • step 252 the list of cluster centers is input to the CPU 12.
  • the CPU 12 operates to classify each of the log-chromaticity coordinates identified in step 250, according to the nearest cluster group center.
  • step 256 the CPU 12 outputs a list of the cluster group memberships for the log-chromaticity coordinates based upon the new list of colors, with a cross reference to either corresponding pixels or Type C tokens, depending upon the list of colors used in step 250 (the list of colors generated in step 202 or the list of colors generated in step 204).
  • the CPU 12 Upon completion of sub-steps lOlOa-c, the CPU 12 outputs a set of log- chromaticity clustering maps, each including a list of cluster group memberships (from either steps 244 or 256 of the routines of figures 8-1 1) for the pixels or Type C tokens of the image, and each one of the log-chromaticity clustering maps corresponding to one of the normal maps generated in sub-steps 1008a-c.
  • the CPU 12 operates to merge the cluster group membership lists obtained from the multiple executions of the routines of figures 8-11 in sub-steps lOlOa-c, into a single composite cluster group membership list.
  • Figure 7h is a flow chart for a multi-clustering merge step to provide a routine to implement step 1012 of figure 7b.
  • step 700 the set of log-chromaticity clustering maps generated in steps lOlOa-c of figure 7b is input to the CPU 12.
  • step 702 the CPU 12 determines if the input set of log-chromaticity clustering maps includes more than one map. In the simplest case, when K equals one optimized normal, there can be a case when only one cluster map is generated. In that case, the CPU 12 returns the single log-chromaticity clustering map as an output (step 704).
  • step 706 the CPU 12 operates to compute a score S for each cluster of each cluster map.
  • the score is a measure of how likely a particular cluster includes lit and shadowed pixels of a single material reflectance.
  • the score is obtained in a two step method applied to each cluster of each cluster map.
  • the CPU 12 identifies the minimum and maximum RGB values, V [ and v 2 among the pixels (or among the average color values for Type C tokens) of a particular cluster.
  • the CPU 12 computes the Euclidean distance between V [ and v 2 as the score for the respective cluster.
  • the CPU 12 generates a single cluster map by examining the cluster membership for each ⁇ x, y> location in the image plane (see, for example, figure 2) (i.e.
  • the single resulting cluster map therefor includes, as a cluster membership for each ⁇ x, y> location, the cluster for that location with the highest score, indicating the cluster for the location having the highest likelihood of including lit and shadowed pixels of a single material reflectance, and thus, providing the most accurate log-chromaticity representation for each respective pixel.
  • step 1014 the CPU 12 outputs the single cluster map.
  • Figure 12 is a flow chart for detecting regions of uniform reflectance based on the log-chromaticity clustering according to a feature of the present invention.
  • step 260 the input image file 18 is once again provided to the CPU 12.
  • step 262 one of the pixels or Type C tokens, depending upon the list of colors used in step 250, is input to the CPU 12.
  • step 264 the cluster membership information contained in the single composite cluster map, obtained from the merge performed in figure 7h, is input to the CPU 12.
  • step 266 the CPU 12 operates to merge each of the pixels, or specified regions of an input image, such as, for example, Type C tokens, having a same cluster group membership into a single region of the image to represent a region of uniform reflectance (Type B token).
  • the CPU 12 performs such a merge operation for all of the pixels or tokens, as the case may be, for the input image file 18.
  • step 268 the CPU 12 outputs a list of all regions of uniform reflectance (and also of similar tone mapping intensities and x, y coordinates, if the log-chromaticity coordinates were augmented in steps 234 and/or 236). It should be noted that each region of uniform reflectance (Type B token) determined according to the features of the present invention, potentially has significant illumination variation across the region.
  • U. S. Patent No. 8,139,867 teaches a constraint/solver model for segregating illumination and material in an image, including an optimized solution based upon a same material constraint.
  • a same material constraint as taught in U. S. Patent No. 8,139,867, utilizes Type C tokens and Type B tokens, as can be determined according to the teachings of the present invention.
  • the constraining relationship is that all Type C tokens that are part of the same Type B token are constrained to be of the same material.
  • This constraint enforces the definition of a Type B token, that is, a connected image region comprising contiguous pixels that represent a region of the image encompassing a single material in the scene, though not necessarily the maximal region corresponding to that material.
  • Type C tokens that lie within the same Type B token are by the definition imposed upon Type B tokens, of the same material, though not necessarily of the same illumination.
  • the Type C tokens are therefore constrained to correspond to observed differences in appearance that are caused by varying illumination.
  • the I value for each Type C token is the average color value for the recorded color values of the constituent pixels of the token.
  • the a, b and c, Type C tokens of the example can correspond to the blue Type B token illustrated in figure 3d.
  • the various values for the log (I) ( 4 , 4) 5 m me [b] matrix are known from the average recorded pixel color values for the constituent pixels of the adjacent Type C tokens a, b and c.
  • the [A] matrix of 0's, l's and -l's, is defined by the set of equations expressing the same material constraint, as described above.
  • the number of rows in the [A] matrix, from top to bottom, corresponds to the number of actual constraints imposed on the tokens, in this case three, the same material constraint between the three adjacent Type C tokens a, b and c.
  • each value is either a vector of three values corresponding to the color bands (such as red, green, and blue) of our example or can be a single value, such as in a grayscale image.
  • Intrinsic illumination and material images can be now be generated for the region defined by tokens a, b and c, by replacing each pixel in the original image by the calculated illumination values and material values, respectively.
  • Implementation of the constraint/solver model according to the techniques and teachings of U. S. Patent No. 8,139,867, utilizing the Type C tokens and Type B tokens obtained via a log-chromaticity clustering technique according to the present invention provides a highly effective and efficient method for generating intrinsic images corresponding to an original input image.
  • the intrinsic images can be used to enhance the accuracy and efficiency of image processing, image analysis and computer vision applications.
  • the intrinsic images generated from the performance of the exemplary embodiments of the present invention can include artifacts that distort the appearance of a scene depicted in the image being processed.
  • the artifacts can be introduced through execution of the intrinsic image generations methods of the present invention, or through user modifications such as the user input of image characteristics discussed above. Accordingly, according to a feature of the present invention, various post processing techniques can be implemented to reduce the artifacts.
  • Figure 15 is a flow chart for an edge preserving blur post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention, to improve the quality of the illumination and material reflectance aspects depicted in the intrinsic images.
  • the CPU 12 receives as an input an original image (an image file 18), and the corresponding intrinsic material reflectance and illumination images determined by the CPU 12 through solution of the matrix equation shown in figure 13, as described above.
  • the CPU 12 operates to perform an edge-preserving blur of the illumination in the illumination image by applying an edge preserving smoothing filter.
  • the edge preserving smoothing filter can be any one of the known filters such as, for example, a bilateral filter, a guided filter, a mean-shift filter, a median filter, anisotropic diffusion and so on.
  • the filter can be applied one or more times to the illumination image.
  • a bilateral filter is applied to the illumination image twice.
  • several different types of filters can be applied in succession, for example, a median filter followed by a bilateral filter.
  • step 306 the CPU 12 outputs intrinsic material reflectance and illumination images, as modified by the CPU 12 through execution of the routine of figure 15.
  • a smoothing filter applied to the illumination image results in several improvements to the appearance of the intrinsic images when used in, for example, such applications as computer graphics.
  • texture mapping is used to achieve certain special effects. Artists consider it desirable in the performance of texture mapping to have some fine scale texture form the illumination in the material reflectance image.
  • the fine scale texture is moved to the material reflectance image upon a recalculation of the material image in step 304, as will be described below.
  • step 302 smoothing the illumination in step 302 places some of the shading illumination (illumination intensity variation due to curvature of a surface) back into the material reflectance image, giving the material image some expression of curvature. That results in an improved material depiction more suitable for artistic rendering in a computer graphics application.
  • step 302 forces the reflectance variation back into the material image.
  • FIG 16 is a flow chart for an artifact reduction post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention, to improve the quality of the illumination and material reflectance aspects depicted in the intrinsic images.
  • the CPU 12 receives as an input an original image (an image file 18), and the corresponding intrinsic material reflectance and illumination images determined by the CPU 12 through solution of the matrix equation shown in figure 13, as described above.
  • the intrinsic images can be previously modified by the CPU 12 through execution of the routine of figure 15.
  • step 402 the CPU 12 operates to calculate derivatives (the differences between adjacent pixels) for the pixels of each of the original image and the material reflectance image. Variations between adjacent pixels, in the horizontal and vertical directions, are caused by varying illumination and different materials in the scene depicted in the original image.
  • the CPU 12 operates to factor the original image into intrinsic illumination and material reflectance images, some of the variation ends up in the illumination image and some ends up in the material reflectance image. Ideally, all of the variation in the illumination image is attributable to varying illumination, and all of the variation in the material reflectance image is attributable to different materials.
  • step 404 the CPU 12 operates to identify the artifacts caused by the newly appearing edges by comparing the derivatives for the material reflectance image with the derivatives for the original image.
  • the CPU 12 modifies the derivatives in the material reflectance image such that, for each derivative of the material reflectance image, the sign is preserved, but the magnitude is set at the minimum of the magnitude of the derivative in the original image and the material reflectance image.
  • the modification can be expressed by the following equation:
  • step 406 the CPU integrates the modified derivatives to calculate a new material reflectance image.
  • the new image is a material reflectance image without the newly appearing, artifact-causing edges.
  • Any known technique can be implemented to perform the integration.
  • the CPU 12 can operate to perform numerical 2D integration by solving the 2D Poisson equation using discrete cosine transforms.
  • step 408 the CPU 12 outputs intrinsic material reflectance and illumination images, as modified by the CPU 12 through execution of the routine of figure 16.
  • Figure 17 is a flow chart for a BIDR model enforcement post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention, to improve the quality of the illumination and material reflectance aspects depicted in the intrinsic images.
  • the BIDR model predicts the correct color for a material, in a shadow penumbra, from full shadow to fully lit.
  • colors for a material for example, in an RGB color space, from a fully shaded color value to a fully lit color value, generally form a line in the color space.
  • the material is illuminated by an ambient illuminant, while when fully lit, the material is illuminated by the ambient ilmminant and the direct or incident illuminant present in the scene at the time the digital image of an image file 18 was recorded.
  • the illumination values in an image also define a line extending from the color of the ambient illuminant to the color of the combined ambient and direct illuminants.
  • the illumination line predicted by the BIDR model corresponds to the normal, N of the log color space chromaticity plane illustrated in figure 5.
  • the illumination line prediction of the BIDR model is used to correct such inaccuracies by modifying the illumination to be linear in log(RGB) space.
  • step 500 the CPU 12 receives as input a BIDR illumination orientation, corresponding to the normal N illustrated in figure 5.
  • N is determined by the CPU 12 through execution of the routine of figure 7, as described above.
  • the N determined through execution of the routine of figure 7 is used in both the clustering process described above, and in the BIDR model enforcement post processing technique illustrated in figure 17.
  • the orientation N is determined by the CPU 12 in a separate step before the execution of the routine of figure 17, through execution of the routine of figure 7.
  • the CPU 12 can operate relative to either the original image or the illumination image.
  • the processing is based upon a user input, as described above, the user can make a selection from either the original image or the illumination image.
  • the CPU 12 also receives as input an original image (an image file 18), and the corresponding intrinsic material reflectance and illumination images determined by the CPU 12 through solution of the matrix equation shown in figure 13, also as described above.
  • the intrinsic images can be previously modified by the CPU 12 through execution of the routine(s) of either one, or both figures 15 and 16.
  • the CPU 12 determines the full illumination color in the illumination image.
  • the full illumination color (ambient + direct) can be the brightest color value depicted in the illumination image.
  • the brightest value can be inaccurate due to noise in the image or other outliers.
  • a more accurate determination is made by finding all illumination color values in a preselected range of percentiles of the intensities, for example, the 87 th through 92 nd percentiles, and calculating an average of those values. The average is used as the full illumination color value.
  • Such an approach provides a robust estimate of the bright end of the illumination variation in the intrinsic illumination image.
  • step 504 the CPU 12 operates to modify all of the pixels of the illumination image by projecting all of the illumination colors depicted by the pixels in the illumination image to the nearest point on a line having the orientation N (input to the CPU 12 in step 500) and passing through the full illumination color determined in step 302.
  • the color of each pixel of the illumination image is modified to conform to the closest value required by the BIDR model prediction.
  • the special case can be handled by the CPU 12 according to a number of different methods.
  • the modification is completed as with all the other pixels, by projecting each high intensity pixel to the nearest value on the illumination line.
  • each high intensity pixel is replaced by a pixel set at the full illumination color value.
  • each high intensity pixel is kept at the color value as in the original image.
  • An additional method is implemented by using a weighted average for each high intensity pixel, of values determined according to the first and third methods, or of values determined according to the second and third methods.
  • the weights would favor values calculated according to either the first or second methods when the values are similar to high intensity pixels that are not significantly brighter than the full illumination color value calculated in step 502.
  • Values calculated via the third method are favored when values for high intensity pixels that are significantly brighter than the full illumination color value.
  • a sigmoid function is constructed such that all the weight is on the value determined either according to the first or second methods, when the intensity of the high intensity pixel is at or near the full illumination color value, with a smooth transition to an equally weighted value, between a value determined either according to the first or second methods and a value determined according to the third method, as the intensity increases. That is followed by a further smooth transition to full weight on a value determined according to the third method, as the intensity increase significantly beyond the full illumination color value.
  • step 508 the CPU 12 outputs intrinsic material reflectance and illumination images modified to strictly adhere to the predictions of the BIDR model.
  • the above-described post processing techniques can be executed in a log(RGB) space. Also, the various techniques can be executed in the order described above. Once one or more of the post processing techniques have been executed, the final modified intrinsic images can be white balanced and/or scaled, as desired, and output by the CPU 12.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

In a first exemplary embodiment of the present invention, an automated, computerized method is provided for processing an image. According to a feature of the present invention, the method comprises the steps of providing an image file depicting an image defined by image locations, in a computer memory, generating a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, providing a set of estimates for the orientation of the bi-illuminant chromaticity plane and calculating an orientation for each one of the image locations as a function of the set of estimates for the orientation.

Description

LOG-CHROMATICITY CLUSTERING PIPELINE
FOR USE IN AN IMAGE PROCESS
Background of the Invention
[0001] Many significant and commercially important uses of modern computer technology relate to images. These include image processing, image analysis and computer vision applications. In computer vision applications, such as, for example, object recognition and optical character recognition, it has been found that a separation of illumination and material aspects of an image can significantly improve the accuracy of computer performance. Significant pioneer inventions related to the illumination and material aspects of an image are disclosed in U. S. Patent No. 7,873,219 to Richard Mark Friedhoff, entitled Differentiation Of Illumination And Reflection Boundaries and U. S. Patent No. 7,672,530 to Richard Mark Friedhoff et al., entitled Method And System For Identifying Illumination Flux In An Image (hereinafter the Friedhoff Patents).
Summary of the Invention
[0002] The present invention provides an improvement and enhancement to the fundamental teachings of the Friedhoff Patents, and includes a method and system comprising image techniques that accurately and correctly generate intrinsic images, including techniques to provide increased accuracy and precision in the determination of image characteristics used in the generation of the intrinsic images.
[0003] In a first exemplary embodiment of the present invention, an automated, computerized method is provided for processing an image. According to a feature of the present invention, the method comprises the steps of providing an image file depicting an image defined by image locations, in a computer memory, generating a bi- illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, providing a set of estimates for an orientation of the bi-illuminant chromaticity plane and generating a plurality of normal maps, each normal map providing an indication of at least one orientation, each at least one orientation calculated as a function of the set of estimates for an orientation.
[0004] In a second exemplary embodiment of the present invention, a computer system is provided. The computer system comprises a CPU and a memory storing an image file containing an image defined by image locations. According to a feature of the present invention, the CPU is arranged and configured to execute a routine to generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide a set of estimates for the orientation of the bi-illuminant chromaticity plane and generate a plurality of normal maps, each normal map providing an indication of at least one orientation, each at least one orientation calculated as a function of the set of estimates for an orientation.
[0005] In a third exemplary embodiment of the present invention, a computer program product, disposed on a computer readable media is provided. The computer program product includes computer executable process steps operable to control a computer to: provide an image file depicting an image defined by image locations, in a computer memory, generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide a set of estimates for the orientation of the bi-illuminant
chromaticity plane and generate a plurality of normal maps, each normal map providing an indication of at least one orientation, each at least one orientation calculated as a function of the set of estimates for an orientation.
[0006] In accordance with yet further embodiments of the present invention, computer systems are provided, which include one or more computers configured (e.g., programmed) to perform the methods described above. In accordance with other embodiments of the present invention, non-transitory computer readable media are provided which have stored thereon computer executable process steps operable to control a computer(s) to implement the embodiments described above. The present invention contemplates a computer readable media as any product that embodies information usable in a computer to execute the methods of the present invention, including instructions implemented as a hardware circuit, for example, as in an integrated circuit chip. The automated, computerized methods can be performed by a digital computer, analog computer, optical sensor, state machine, sequencer, integrated chip or any device or apparatus that can be designed or programed to carry out the steps of the methods of the present invention.
Brief Description of the Drawings
[0007] Figure 1 is a block diagram of a computer system arranged and configured to perform operations related to images.
[0008] Figure 2 shows an n X m pixel array image file for an image stored in the computer system of figure 1.
[0009] Figure 3 a is a flow chart for identifying Type C token regions in the image file of figure 2, according to a feature of the present invention.
[0010] Figure 3b is an original image used as an example in the identification of Type C tokens.
[0011] Figure 3c shows Type C token regions in the image of figure 3b.
[0012] Figure 3d shows Type B tokens, generated from the Type C tokens of figure 3 c, according to a feature of the present invention.
[0013] Figure 4 is a flow chart for a routine to test Type C tokens identified by the routine of the flow chart of figure 3 a, according to a feature of the present invention. [0014] Figure 5 is a graphic representation of a log color space chromaticity plane according to a feature of the present invention,
[0015] Figure 6 is a flow chart for determining a list of colors depicted in an input image.
[0016] Figure 7a is a flow chart for determining an orientation for a log-chromaticity space.
[0017] Figure 7b is a flow chart for an additional exemplary embodiment of the present invention, for determining an optimized orientation for a log-chromaticity space.
[0018] Figure 7c is a flow chart for a log-chromaticity normal optimization technique, according to a feature of the present invention.
[0019] Figure 7d is a flow chart for implementing a log-chromaticity normal optimization technique when a normal is estimated based upon a user selected lit-dark pairs of pixel blocks.
[0020] Figure 7e is a flow chart illustrating an entropy minimization technique according to a feature of the present invention.
[0021] Figure 7f is a flow chart showing the use of a system of linear equations to estimate spatially varying normals.
[0022] Figure 7g shows an example of a token map having four tokens for use in the system of linear equations of figure 7f,
[0023] Figure 7h is a flow chart for a multi-clustering merge step. [0024] Figure 8 is a flow chart for determining log-chromaticity coordinates for the colors of an input image, as determined through execution of the routine of figure 6.
[0025] Figure 9 is a flow chart for augmenting the iog-chromaticity coordinates, as determined through execution of the routine of figure 8.
[0026] Figure 10 is a flow chart for clustering the log-chromaticity coordinates, according to a feature of the present invention.
[0027] Figure 10a is an illustration of a grid for a spatial hash, according to a feature of the present invention.
[0028] Figure 11 is a flow chart for assigning the log-chromaticity coordinates to clusters determined through execution of the routine of figure 10.
[0029] Figure 12 is a flow chart for detecting regions of uniform reflectance based on the log-chromaticity clustering.
[0030] Figure 13 is a representation of an [A] [x] = [b] matrix relationship used to identify and separate illumination and material aspects of an image, according to a same-material constraint, for generation of intrinsic images.
[0031] Figure 14 illustrates intrinsic images including an illumination image and a material image corresponding to the original image of figure 3b,
[0032] Figure 15 is a flow chart for an edge preserving blur post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention. [0033] Figure 16 is a flow chart for an artifact reduction post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention.
[0034] Figure 17 is a flow chart for a BIDR model enforcement post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention.
[0035] Figure 18 is a graph in RGB color space showing colors for a material, from a fully shaded color value to a fully lit color value, as predicted by a bi-illuminant dichromatic reflection model.
Detailed Description of the Preferred Embodiments
[0036] Referring now to the drawings, and initially to figure 1 , there is shown a block diagram of a computer system 10 arranged and configured to perform operations related to images. A CPU 12 is coupled to a device such as, for example, a digital camera 14 via, for example, a USB port. The digital camera 14 operates to download images stored locally on the camera 14, to the CPU 12. The CPU 12 stores the downloaded images in a memory 16 as image files 18. The image files 18 can be accessed by the CPU 12 for display on a monitor 20, or for print out on a printer 22.
[0037] Alternatively, the CPU 12 can be implemented as a microprocessor embedded in a device such as, for example, the digital camera 14 or a robot. The CPU 12 can also be equipped with a real time operating system for real time operations related to images, in connection with, for example, a robotic operation or an interactive operation with a user.
[0038] As shown in figure 2, each image file 18 comprises an n X m pixel array. Each pixel, p, is a picture element corresponding to a discrete portion of the overall image. All of the pixels together define the image represented by the image file 18. Each pixel comprises a digital value corresponding to a set of color bands, for example, red, green and blue color components (RGB) of the picture element. The present invention is applicable to any multi-band image, where each band corresponds to a piece of the electro-magnetic spectrum. The pixel array includes n rows of m columns each, starting with the pixel p (1,1) and ending with the pixel p(n, m). When displaying or printing an image, the CPU 12 retrieves the corresponding image file 18 from the memory 1 , and operates the monitor 20 or printer 22, as the case may be, as a function of the digital values of the pixels in the image file 18, as is generally known.
[0039] In an image operation, the CPU 12 operates to analyze the RGB values of the pixels of a stored image file 18 to achieve various objectives, such as, for example, to identify regions of an image that correspond to a single material depicted in a scene recorded in the image file 18. A fundamental observation underlying a basic discovery of the present invention, is that an image comprises two components, material and illumination. All changes in an image are caused by one or the other of these components. A method for detecting of one of these components, for example, material, provides a mechanism for distinguishing material or object geometry, such as object edges, from illumination and shadow boundaries.
[0040] Such a mechanism enables techniques that can be used to generate intrinsic images. The intrinsic images correspond to an original image, for example, an image depicted in an input image file 18. The intrinsic images include, for example, an illumination image, to capture the intensity and color of light incident upon each point on the surfaces depicted in the image, and a material reflectance image, to capture reflectance properties of surfaces depicted in the image (the percentage of each wavelength of light a surface reflects). The separation of illumination from material in the intrinsic images provides the CPU 12 with images optimized for more effective and accurate further processing. [0041] Pursuant to a feature of the present invention, processing is performed at a token level. A token is a connected region of an image wherein the pixels of the region are related to one another in a manner relevant to identification of image features and characteristics such as an identification of materials and illumination. The pixels of a token can be related in terms of either homogeneous factors, such as, for example, close correlation of color among the pixels, or inhomogeneous factors, such as, for example, differing color values related geometrically in a color space such as RGB space, commonly referred to as a texture. The present invention utilizes spatio-spectral information relevant to contiguous pixels of an image depicted in an image file 18 to identify token regions. The spatio-spectral information includes spectral relationships among contiguous pixels, in terms of color bands, for example the RGB values of the pixels, and the spatial extent of the pixel spectral characteristics relevant to a single material.
[0042] According to one exemplary embodiment of the present invention, tokens are each classified as either a Type A token, a Type B token or a Type C token, A Type A token is a connected image region comprising contiguous pixels that represent the largest possible region of the image encompassing a single material in the scene (uniform reflectance). A Type B token is a connected image region comprising contiguous pixels that represent a region of the image encompassing a single material in the scene, though not necessarily the maximal region of uniform reflectance
corresponding to that material. A Type B token can also be defined as a collection of one or more image regions or pixels, all of which have the same reflectance (material color) though not necessarily all pixels which correspond to that material color. A Type C token comprises a connected image region of similar image properties among the contiguous pixels of the token, where similarity is defined with respect to a noise model for the imaging system used to record the image.
[0043] Referring now to figure 3a, there is shown a flow chart for identifying Type C token regions in the scene depicted in the image file 18 of figure 2, according to a feature of the present invention. Type C tokens can be readily identified in an image, utilizing the steps of figure 3 a, and then analyzed and processed to construct Type B tokens, according to a feature of the present invention.
[0044] A 1st order uniform, homogeneous Type C token comprises a single robust color measurement among contiguous pixels of the image. At the start of the identification routine, the CPU 12 sets up a region map in memory. In step 100, the CPU 12 clears the region map and assigns a region ID, which is initially set at 1. An iteration for the routine, corresponding to a pixel number, is set at i = 0, and a number for an N x N pixel array, for use as a seed to determine the token, is set an initial value, N = Nstart. Nstart can be any integer > 0, for example it can be set at set at 11 or 15 pixels.
[0045] At step 102, a seed test is begun. The CPU 12 selects a first pixel, i = 1, pixel (1, 1) for example (see figure 2), the pixel at the upper left corner of a first N x N sample of the image file 18. The pixel is then tested in decision block 104 to determine if the selected pixel is part of a good seed. The test can comprise a comparison of the color value of the selected pixel to the color values of a preselected number of its neighboring pixels as the seed, for example, the N x N array. The color values comparison can be with respect to multiple color band values (RGB in our example) of the pixel. If the comparison does not result in approximately equal values (within the noise levels of the recording device) for the pixels in the seed, the CPU 12 increments the value of i (step 106), for example, i = 2, pixel (1, 2), for a next N x N seed sample, and then tests to determine if i = imax (decision block 108).
[0046] If the pixel value is at imax, a value selected as a threshold for deciding to reduce the seed size for improved results, the seed size, N, is reduced (step 110), for example, from N = 15 to N = 12. In an exemplary embodiment of the present invention, imax can be set at a number of pixels in an image ending at pixel (n, m), as shown in figure 2. In this manner, the routine of figure 3a parses the entire image at a first value of N before repeating the routine for a reduced value of N.
[0Θ47] After reduction of the seed size, the routine returns to step 102, and continues to test for token seeds. An Nstop value (for example, N = 2) is also checked in step 1 10 to determine if the analysis is complete. If the value of N is at Nstop , the CPU 12 has completed a survey of the image pixel arrays and exits the routine.
[0048] If the value of i is less than imax , and N is greater than Nstop, the routine returns to step 102, and continues to test for token seeds.
[0049] When a good seed (an N x N array with approximately equal pixel values) is found (block 104), the token is grown from the seed. In step 1 12, the CPU 12 pushes the pixels from the seed onto a queue. All of the pixels in the queue are marked with the current region ID in the region map. The CPU 12 then inquires as to whether the queue is empty (decision block 1 14). If the queue is not empty, the routine proceeds to step 1 16.
[0050] In step 116, the CPU 12 pops the front pixel off the queue and proceeds to step 1 18. In step 1 18, the CPU 12 marks "good' neighbors around the subject pixel, that is neighbors approximately equal in color value to the subject pixel, with the current region ID. All of the marked good neighbors are placed in the region map and also pushed onto the queue. The CPU 12 then returns to the decision block 1 14. The routine of steps 1 14, 1 16, 1 18 is repeated until the queue is empty. At that time, all of the pixels forming a token in the current region will have been identified and marked in the region map as a Type C token.
[0051] When the queue is empty, the CPU 12 proceeds to step 120. At step 120, the CPU 12 increments the region ID for use with identification of a next token. The CPU 12 then returns to step 106 to repeat the routine in respect of the new current token region.
[0052] Upon arrival at N = Nstop, step 110 of the flow chart of figure 3 a, or completion of a region map that coincides with the image, the routine will have completed the token building task. Figure 3 b is an original image used as an example in the identification of tokens. The image shows areas of the color blue and the blue in shadow, and of the color teal and the teal in shadow. Figure 3 c shows token regions corresponding to the region map, for example, as identified through execution of the routine of figure 3a (Type C tokens), in respect to the image of figure 3b. The token regions are color coded to illustrate the token makeup of the image of figure 3b, including penumbra regions between the full color blue and teal areas of the image and the shadow of the colored areas.
[0053] While each Type C token comprises a region of the image having a single robust color measurement among contiguous pixels of the image, the token may grow across material boundaries. Typically, different materials connect together in one Type C token via a neck region often located on shadow boundaries or in areas with varying illumination crossing different materials with similar hue but different intensities. A neck pixel can be identified by examining characteristics of adjacent pixels. When a pixel has two contiguous pixels on opposite sides that are not within the corresponding token, and two contiguous pixels on opposite sides that are within the corresponding token, the pixel is defined as a neck pixel.
[0054] Figure 4 shows a flow chart for a neck test for Type C tokens. In step 122, the CPU 12 examines each pixel of an identified token to determine whether any of the pixels under examination forms a neck. The routine of figure 4 can be executed as a subroutine directly after a particular token is identified during execution of the routine of figure 3a. All pixels identified as a neck are marked as "ungrowable." In decision block 124, the CPU 12 determines if any of the pixels were marked. [0055] If no, the CPU 12 exits the routine of figure 4 and returns to the routine of figure 3a (step 126).
[0056] If yes, the CPU 12 proceeds to step 128 and operates to regrow the token from a seed location selected from among the unmarked pixels of the current token, as per the routine of figure 3a, without changing the counts for seed size and region ID.
During the regrowth process, the CPU 12 does not include any pixel previously marked as ungrowable. After the token is regrown, the previously marked pixels are unmarked so that other tokens may grow into them.
[0057] Subsequent to the regrowth of the token without the previously marked pixels, the CPU 12 returns to step 122 to test the newly regrown token. Neck testing identifies Type C tokens that cross material boundaries, and regrows the identified tokens to provide single material Type C tokens suitable for use in creating Type B tokens.
[0058] Figure 3d shows Type B tokens generated from the Type C tokens of figure 3c, according to a feature of the present invention. The present invention provides a novel exemplary technique using log-chromaticity clustering, for constructing Type B tokens for an image file 18. Log chromaticity is a technique for developing an illumination invariant chromaticity space.
[0059] A method and system for separating illumination and reflectance using a log- chromaticity representation is disclosed in U. S. Patent No, 7,596,266, which is hereby expressly incorporated by reference. The techniques taught in U. S. Patent No.
7,596,266 can be used to provide illumination invariant log-chromaticity representation values for each color of an image, for example, as represented by Type C tokens.
Logarithmic values of the color band values of the image pixels are plotted on a log- color space graph. The logarithmic values are then projected to a log-chromaticity projection plane oriented as a function of a bi-illuminant dichromatic reflection model (BIDR model), to provide a log-chromaticity value for each pixel, as taught in U. S. Patent No. 7,596,266. The BIDR Model predicts that differing color measurement values fall within a cylinder in RGB space, from a dark end (in shadow) to a bright end (lit end), along a positive siope, when the color change is due to an illumination change forming a shadow over a single material of a scene depicted in the image.
[0060] Figure 5 is a graphic representation of a log color space, bi-illuminant chromaticity plane according to a feature of the invention disclosed in U. S, Patent No. 7,596,266. The alignment of the chromaticity plane is determined by a vector N, normal to the chromaticity plane, and defined as N = log(Brightvector) - log(Darkvector) = log(l + 1/Svector). The co-ordinates of the plane, u, v can be defined by a projection of the green axis onto the chromaticity plane as the u axis, and the cross product of u and N being defined as the v axis. In our example, each log value for the materials A, B, C is projected onto the chromaticity plane, and will therefore have a corresponding u, v co-ordinate value in the plane that is a chromaticity value, as shown in figure 5.
[0061] Thus, according to the technique disclosed in U. S. Patent No. 7,596,266, the RGB values of each pixel in an image file 18 can be mapped by the CPU 12 from the image file value p(n, m, R, G, B) to a log value, then, through a projection to the chromaticity plane, to the corresponding u, v value, as shown in figure 5. Each pixel p(n, m, R, G, B) in the image file 18 is then replaced by the CPU 12 by a two dimensional chromaticity value: p(n, m, u, v), to provide a chromaticity representation of the original RGB image. In general, for an N band image, the N color values are replaced by N - 1 chromaticity values. The chromaticity representation is a truly accurate illumination invariant representation because the BIDR model upon which the representation is based, accurately and correctly represents the illumination flux that caused the original image.
[0062] According to the invention disclosed and claimed in related application Serial No. 12/927,244, filed November 10, 2010, entitled System and Method for Identifying Complex Tokens in an Image (expressly incorporated by reference herein and hereinafter referred to as "related invention"), published as US 2012/01 14232, log- chromaticity values are calculated for each color depicted in an image file 18 input to the CPU 12 for identification of regions of the uniform reflectance (Type B tokens). For example, each pixel of a Type C token will be of approximately the same color value, for example, in terms of RGB values, as all the other constituent pixels of the same Type C token, within the noise level of the equipment used to record the image. Thus, an average of the color values for the constituent pixels of each particular Type C token can be used to represent the color value for the respective Type C token in the log-chromaticity analysis.
[0063] Figure 6 is a flow chart for determining a list of colors depicted in an input image, for example, an image file 18. In step 200, an input image file 18 is input to the CPU 12 for processing. In steps 202 and 204, the CPU 12 determines the colors depicted in the input image file 18. In step 202, the CPU 12 calculates an average color for each Type C token determined by the CPU 12 through execution of the routine of figure 3a, as described above, for a list of colors. The CPU 12 can be operated to optionally require a minimum token size, in terms of the number of constituent pixels of the token, or a minimum seed size (the N x N array) used to determine Type C tokens according to the routine of figure 3 a, for the analysis. The minimum size requirements are implemented to assure that color measurements in the list of colors for the image are an accurate depiction of color in a scene depicted in the input image, and not an artifact of blend pixels.
[0064] Blend pixels are pixels between two differently colored regions of an image. If the colors between the two regions are plotted in RGB space, there is a linear transition between the colors, with each blend pixel, moving from one region to the next, being a weighted average of the colors of the two regions. Thus, each blend pixel does not represent a true color of the image. If blend pixels are present, relatively small Type C tokens, consisting of blend pixels, can be identified for areas of an image between two differently colored regions. By requiring a size minimum, the CPU 12 can eliminate tokens consisting of blend pixel from the analysis.
[0065] In step 204, the CPU 12 can alternatively collect colors at the pixel level, that is, the RGB values of the pixels of the input image file 18, as shown in figure 2. The CPU 12 can be operated to optionally require each pixel of the image file 18 used in the analysis to have a minimum stability or local standard deviation via a filter output, for a more accurate list of colors. For example, second derivative energy can be used to indicate the stability of pixels of an image.
[0066] In this approach, the CPU 12 calculates a second derivative at each pixel, or a subset of pixels disbursed across the image to cover all illumination conditions of the image depicted in an input image file 18, using a Difference of Gaussians, Laplacian of Gaussian, or similar filter. The second derivative energy for each pixel examined can then be calculated by the CPU 12 as the average of the absolute value of the second derivative in each color band (or the absolute value of the single value in a grayscale image), the sum of squares of the values of the second derivatives in each color band (or the square of the single value in a grayscale image), the maximum squared second derivative value across the color bands (or the square of the single value in a grayscale image), or any similar method. Upon the calculation of the second derivative energy for each of the pixels, the CPU 12 analyzes the energy values of the pixels. There is an inverse relationship between second derivative energy and pixel stability, the higher the energy, the less stable the corresponding pixel.
[0067] In step 206, the CPU 12 outputs a list or lists of color (after executing one or both of steps 202 and/or 204). According to a feature of the related invention, all of the further processing can be executed using the list from either step 202 or 204, or vary the list used (one or the other of the lists from steps 202 or 204) at each subsequent step. [0068] Figure 7a is a flow chart for determining an orientation for a log-chromaticity representation, according to a feature of the related invention. For example, the CPU 12 determines an orientation for the normal N, for a log-chromaticity plane, as shown in figure 5. In step 210, the CPU 12 receives a list of colors for an input file 18, such as a list output in step 206 of the routine of figure 6. In step 212, the CPU 12 determines an orientation for a log-chromaticity plane.
[0069] As taught in U. S. Patent No. 7,596,266, and as noted above, orientation of the chromaticity plane is represented by N, N being a vector normal to the chromaticity representation, for example, the chromaticity plane of figure 5. The orientation is estimated by the CPU 12 thorough execution of any one of several techniques. For example, the CPU 12 can determine estimates based upon entropy minimization, manual selection of lit/shadowed regions of a same material by a user or the use of a characteristic spectral ratio (which corresponds to the orientation N) for an image of an input image file 18, as fully disclosed in U. S. Patent No. 7,596,266.
[0070] For a higher dimensional set of colors, for example, an RYGB space (red, yellow, green, blue), the log-chromaticity normal, N, defines a sub-space with one less dimension than the input space. Thus, in the four dimensional RYGB space, the normal N defines a three dimensional log-chromaticity space. When the four dimensional RYGB values are projected into the three dimensional log-chromaticity space, the projected values within the log-chromaticity space are unaffected by illumination variation.
[0071] In step 214, the CPU 12 outputs an orientation for the normal N. As illustrated in the example of figure 5, the normal N defines an orientation for a u, v plane in a three dimensional RGB space.
[0072] According to further exemplary embodiments of the present invention, processing techniques are implemented to provide increased accuracy and precision in the determination of the normal, N, and, further, to calculate spatially varying log- chromaticity normals, to account for varying conditions that can exist in a scene depicted in an image file 18. Figure 7b shows a flow chart for improving accuracy in the generation of illumination invariant (same reflectance) log-chromaticity
representation values for each color of the image using one or more normals, N, to orient the log-chromaticity plane.
[0073] In step 1000, an image file 18 is input to the CPU 12, for example, the input file 18 processed in the routine of figure 6. In step 1002, one or more values (1-K) for the normal N are either automatically estimated by the CPU 12 and/or provided by user input, as shown in sub-steps 1002a-d. Each normal is associated with corresponding pixel positions for the pixels used to calculate the respective normal, N, for example, from among pixels p(l , 1) to p(n, m) of an image file 18 being processed, as shown in figure 2.
[0074] To implement sub-step 1002a, a user designates, for example, via a touch screen action, one or more sets of lit-dark pairs of pixel blocks, the pairs each corresponding to lit and shadowed regions of a same material, respectively, depicted in the image of the image file 18 being processed. Each pixel block includes, for example, an n x n array of pixels. In sub-steps 1002b-d, the CPU 12 operates to automatically estimate one or more values for the normal, N.
[0075] For example, in step 1002b, the CPU 12 operates to identify linear tokens that are then used to estimate normal values. A linear token is a nonhomogeneous token comprising a connected region of the image wherein adjacent pixels of the region have differing color measurement values that fall within a cylinder in RGB space, from a dark end (in shadow) to a bright end (lit end) of a single material, along a positive slope (see, for example, figure 18, showing colors for a material, from a fully shaded color value to a fully lit color value, as predicted by a bi-illuminant dichromatic reflection model). The cylinder configuration is predicted by the bi-illuminant dichromatic reflection model (BIDR model).
[0076] As described above, the BIDR model predicts the correct colors for a material, in a shadow penumbra, from full shadow to fully lit. Each linear token, therefore, provides a candidate image region that likely corresponds to a set of pixels extending through a penumbra across a single material depicted in the image,
[0077] U. S. Patent No. 7,995,058 discloses a technique for analyzing pixels of an image to identify contiguous pixels forming linear tokens throughout the image. In step 1002b, the CPU 12 is operated to execute the technique taught in U. S. Patent No. 7,995,058, to identify a set of linear tokens in the image being processed.
[0078] As noted above, the orientation for the log-chromaticity plane is defined as N - log(l + 1/Svector), wherein Svector is a characteristic spectral ratio defined as Sve(.lor =
Oai vect ( ng tv o - Dark^^), with the vectors corresponding to, for example, the RGB values for a fully lit pixel (Bright) and a pixel in full shadow (Dark), respectively, for a material (see U. S. Patent No, 7,596,266), Accordingly, the characteristic spectral ratio(s) for calculating a normal(s), N, for the log-chromaticity plane can be based upon color information provided by either one or both of the lit-dark pairs of pixel blocks selected by a user (step 002a) and/or the pixels defining the linear tokens identified by the CPU 12 (step 1002b).
[0079] In the case of the lit-dark pairs of pixel blocks selected by a user, the CPU 12 can calculate an average color value, for example, a median, for each n x n block of pixels for each lit and dark pair selected by a user. The result is an average Bright color and Dark color for each selected pair. The CPU 12 then proceeds to use the average values to calculate an Svector based N value for each pair executing the N = log(l + 1 /Svector) equation. [0080] In the case of the identified linear tokens, in each case, the CPU 12 fits a line to a plot, for example, in an RGB space, of the pixels of the respective linear token (see, for example, figure 18). The slope of the line can be used to represent an Svector. As in the previous example, the CPU 12 then proceeds to use the line slope information to calculate Svector based N value for each linear token.
[0081] Steps 1002c and d provide additional automatic methods for calculating a log- chromaticity plane orientation. In step 1002c, the automatic calculation is based upon X-j unctions, and in step 1002d, the automatic calculation is based upon Type B tokens.
[0082] An X-junction is a region of an image wherein an illumination boundary crosses a material object boundary. Accordingly, each X-junction includes two materials, with each material including lit and shadowed regions, for example, as depicted by four adjacent Type C tokens. Type C tokens are identified by the CPU 12 via execution of the routine of figure 3a, as described above (step 1004).
[0083] U. S. Patent No. 7,672,530 teaches a technique for automatically identifying X- j unctions in an image by analysis of token neighbor relationships indicative of spatio- spectral features of an image. The CPU 12 is operated to implement the technique of U. S. Patent No, 7,672,530 to perform iterations through Type C token neighbor relationships to identify a region where spectral ratios indicate a crossing of
illumination and material object boundaries (for example spectral ratios based upon
Figure imgf000020_0001
- Darkvector), wherein the vectors are sample pixels from each side of a boundary between neighboring Type C tokens).
[0084] An average, for example, a median, for the spectral ratios along the
illumination boundary of each identified X-junction is used as the Svector to calculate a normal N for each X-junction. [0085] in step 1002d the automatic calculation is based upon Type B tokens, for example, as identified by the CPU 12 through execution of the routines of figures 8-12, as will be described below. As noted above, each Type B token is a connected image region comprising contiguous pixels that represent a region of the image encompassing a single material in the scene. Thus, each type B token potentially covers a region of the image wherein one material extends from a fully lit end to an end in full shadow. Accordingly, a Type B token can be used to determine an Svector for use in the calculation of a normal N.
[0086] For example, a Bright pixel for use in the calculation of an Svector can be selected from the 95th percentile among the pixels of a Type B token, and a Dark pixel selected from the 5th percentile.
[0087] Each normal, 1 -K, based upon either a user selection and/or calculated by the CPU 12, is associated with pixel positions P corresponding to the pixels used to calculate the respective normal, N. For each normal based upon a user-selected lit-dark pair, P includes the pixels of each n x n array of pixels of each selected lit and dark pixel block. For each of the normals based upon linear tokens, P includes the pixels of the respective linear token. For each of the normals based upon an X-junction, P includes the pixels of the Type C tokens defining a respective X-junction. For each of the normals based upon Type B tokens, P includes the pixels of the respective Type B token.
[0088] In step 1006, the CPU 12 operates to optimize each of the 1-K normals. Each of the 1-K normals is estimated utilizing relatively few of the pixels (for example, the pixel positions P) of the entire image. Figure 7c is a flow chart for implementing a log- chromaticity normal optimization technique (step 1006), according to a feature of the present invention, to provide a more robust estimate of each normal relative to the entire set of pixels forming the image being processed. The CPU 12 executes the routine of figure 7c once for each of the 1-K normals selected by a user and/or calculated by the CPU 12, to optimize each one of the respective 1-K normals relative to all of the pixels of the image being processed.
[0089] In step 2000, one of the 1-K normals, is input to the CPU 12, (for example, as estimated by one of the example techniques (corresponding to steps 1002a-c) (shown next to step 2000, in figure 7c)), together with the pixel positions P used to calculate the respective normal.
[0090] In step 2002 the CPU 12 calculates a weight w for each pixel of the image being processed I, (an image file 18, also input to the CPU 12 (step 2002a)). The weight for each pixel of the image, in the exemplary embodiment of the present invention, is determined as a function of each of a spatial distance between the respective pixel and the set of pixels P used to calculate the respective normal and a spectral distance between the pixel and the set of pixels P .
[0091] In a general case for the exemplary embodiment of the present invention, the weight w at a particular pixel „ in the image /, relative to P, is computed based upon a set of M distance functions (M~ I- k), dk - (p„ P), between the pixel ps and P.
[Θ092] When the k value for M equals two, for example, the spatial distance and spectral distance functions of the exemplary embodiment, a dk(p„ P) value for each pixel corresponds to one of a dspatial distance value and a dspectra, distance value for that pixel. Each d^^ P) value is calculated for each pixel pt of the image by the CPU 12. The spatial distance value measures a Euclidean norm in the spatial extent of the image, as shown, for example, in figure 2. The spectral distance measures a distance in a color space, such as, for example, the log color space shown in figure 5.
[0093] For the spatial distance: dspatjgfp„ P) = min (p€ P) ||pf - p\2
wherein min (p e P) is the closest pixel in P to the pixel pt in terms of a Euclidean distance, and \\p, -p\\2 denotes the Euclidean norm. [0094] For the spectral distance: dspeclra!p^ P) = min (p e P) \\I (p,) - I(p)\\2 wherein min (p £ P) is the closest pixel in P to the pixel p, in terms of spectral distance in a log-RGB space, / (p,) is the log-RGB value and ||/ ( ,) - 1( p)\\2 is the norm of the spectral distance.
[0095] Upon the calculation of a spatial distance and spectral distance for each pixel, the CPU 12 operates to determine a weight for each pixel as a function of the calculated distances. Each of the spatial and spectral distances for each pixel is converted by the CPU 12 to a weight wki e 10, 1 1 , for example, by implementing a soft threshold function, such as a sigmoid:
w {dk(p, P)) = 1/1 + exp(-p, (<¾p„ P) - τ,))
wherein and xk are parameters defining the softness and position of the threshold function, respectively. Thus, in the exemplary embodiment of the present invention, when M~ 2, for each pixel p„ a weight is calculated based upon the spatial distance for the pixel: wspaliai
Figure imgf000023_0001
P)) and an additional weight is calculated based upon the spectral distance: wspec!fal (dspeclral(pt, )).
[0096] In the exemplary embodiment of the present invention, the parameter values can be set, as follows:
spatial 0·5
^spatial 10 τ spectral = 11
[0097] A single weight w,-, for each particular pixel pi is calculated as a function of of the corresponding spatial and spectral weights, as follows:
w, = Π (k = U M) wt, ½(p, P))
[0098] When M -2, w, = wspal l d^ p,, P)) x wspeclral (dsp ra{pt! P)) [0099] In the case of a normal calculated based upon user selected Ht-dark pairs of pixel blocks, a different algorithm can be implemented to determine the spatial weight of each pixel. The concept of the weight algorithm used when the estimate for the normal is based upon user selected lit, dark pairs relates to the fact that a line extending between the centroid of the selected lit pixel block and the centroid of the selected dark pixel block provides more candidate pixels P, (the additional pixels forming the line) for the pixel positions P, resulting in a more robust estimate for the weight of the normal. Figure 7d is a flow chart for implementing a log-chromaticity normal optimization technique when the normal is estimated based upon user selected lit-dark pairs of pixel blocks.
[0100] In steps 2010a, b, a set of lit, dark n x n pixel blocks, as selected by a user, and the image being processed, are input to the CPU 12.
[0101] In step 2012, the CPU 12 operates to fit a sigmoid on a line extending between the centroid
Figure imgf000024_0001
of the lit n x n pixel block (Pto) and the centroid (pdark. cemroid) °f me dark n x n pixel block (Pdark). Ideally, a user selects lit/dark pairs that are lit and shadowed regions of a same material. However, a user can select pairs of pixel blocks that are at different materials within the image. An analysis based upon a sigmoid fit can be used to verify that the line is crossing a shadow boundary extending over a single material.
[0102] In an exemplary embodiment of the present invention, a parametric model of illumination is used to determine if the line / extending between the centroid of the lit pixel block and the centroid of the dark pixel block overlaps a shadow boundary extending across a single material. For example, the model for an illumination transition is a sigmoid σ: σ(χ) = α/1 + exp(-y(x - xce„)) + s
wherein x is a point along the line /, oc is a scale factor, γ is the slope of the sigmoid (rate of change in intensity with respect to the x position), xcen is the offset along and s is an intensity offset. [0103] Fitting the model to find the parameters (e.g. and γ) that minimize the difference between the model and the observed image data, can be implemented via a non-linear optimization procedure such as, for example, the Levenberg-Marquardt algorithm. A fit quality q for the set of pixels P, forming the line can be defined to be inversely proportional to the residual between the final fitted model and the original image data /. For example, the CPU 12 can use the root mean squared error measure:
Figure imgf000025_0001
[0104] In the decision block 2014, the CPU 12 determines if the fit quality q
calculated in step 2012, is greater than a threshold value, indicating that the line crosses a shadow boundary over a single material. If yes, the CPU 12 proceeds to step 2016 to compute a distance, d,ine, to measure a spatial distance from each pixel pt in the image being processed / to the line /, as follows:
first, calculate the quantity δ:
Figure imgf000025_0002
when δ < 0, then d^ip^ P,) = \\p, - plH.cenlroi J
when 0 < δ < 1 , then:
cenlroid 'Pdark -centroid (Pdark-cenlroid -cenlroid ~ Pdark-cenlroid) I when δ≥ 1, then: dlt p,, ,) = \\p, -pdark. centroidW
[0105] If no, the CPU 12 sets c ,e(pi5 P,) -∞, for each pixel of the image / (step 2018).
[0106] After the performance of either steps 2016 or 2018, the CPU 12 proceeds to step 2020. In step 2020, the CPU 12 calculates a distance d^ p^ P), to measure the spatial distance between each pixel p, and P (the pixels of PUl and Pdark without the pixels of the line , as follows: d^ip^ P) = min (p e Plit,Pdatk ) \\p, -p\\2 (corresponding to the spatial distance calculated in the general case, as described above).
[0107] In step 2022, the CPU 12 computes the spatial distance, dspaliaf i, P), for each pixel, as a function of d^ip^ ,) (calculated in steps 2016 or 2018) and dpoiril(p„ P) calculated in step 2020, as follows:
dspalial(pt, P) = min
Figure imgf000026_0001
P)).
wherein min {d^ip^ Ρ,), άροίηΙ(ρ^ P)) is the minimum of the two distances.
[0108] In steps 2024 and 2026, the CPU 12 computes and outputs a weight for each pixel, according to the steps executed by the CPU 12 in the general case, described above, using the spatial distance, as calculated for the case of a user-selected normal, and the spectral distance, as calculated in the general case.
[0109] Referring once again to figure 7c, after the performance of step 2002, to compute a weight for each pixel, the CPU 12 proceeds to step 2004. In step 2004, the CPU 12 finds an optimized normal based upon a method to minimize a weighted entropy, using the weight calculation from step 2002. In step 2004a, a list of colors based upon Type C tokens, for example, as determined in step 202 of figure 6, is input to the CPU 12, for use in the weighted entropy minimization technique.
[0110] Figure 7e is a flow chart illustrating an entropy minimization technique, according to a feature of the present invention. In step 2500, the list of colors (step 2004a of figure 7c) and an initial normal value (one of the 1-K estimates) are input to the CPU 12. In step 2502, the CPU 12 operates to project each color from the list of colors to a chromaticity plane defined by the normal N. The projection step is executed as per the routine of figure 8, as described in detail below.
[0111] In step 2504, the CPU 12 operates to estimate the entropy of the projected colors. Entropy is inversely proportional to order, the lower the entropy, the higher the order of the system under review. At an optimal orientation for the chromaticity plane, all bright and dark pixel pairs for a single material depicted in an image file 18, should project to the same point on the chromaticity plane, a high order, or low entropy state. The entropy of the projection of points onto the plane is a measure of how well the pairs line up for all materials in an image file 18, for example, the image file 18 for the image being processed /. The lower the entropy, the higher the order of the
chromaticity plane, and, thus, the more accurate the projections of bright/dark pairs.
[0112] U. S. Patent No. 7,596,266, teaches a method for finding an optimal alignment for the normal N for the chromaticity plane, by utilizing an entropy minimization technique. As described in detail in U. S. Patent No. 7,596,266, at each orientation selected for the chromaticity plane, a histogram for the chromaticity plane shows the distribution of log color space projections among a grid of bins. The wider the distribution across the plane of the histogram, the higher the entropy.
[0113] According to a feature of the present invention, the entropy equation based upon the bins of a histogram (H) is computed as a function of the weight calculations performed in step 2002 of figure 7c, as follows:
H =∑i wbpb logpb/∑b wb,
wherein pb is the value of each bin of the histogram, calculated to provide an indication of the percentage of the distribution of log RGB values across the chromaticity plane in the bin, and wb is the sum of the weights of the pixels located in a bin (one wb sum value for each bin).
[0114] In step 2506, the CPU 12 executes a search strategy for candidate values for the normal, after the entropy calculation based upon the initial normal estimate (one of the 1- normal estimates). The CPU 12 can execute any known search technique to select a series of orientations for the chromaticity plane, relative to the initial value, and thereafter, select the orientation for the plane having the lowest entropy. Such known search techniques include, for example, exhaustive search, univariate search, and simulated annealing search methods described in the literature. For example, the univariate search technique is described in Hooke & Jeeves, "Direct Search Solution of Numerical and Statistical Problems," Journal of the ACM, Vol. 8, pp 212-229, April, 1961. A paper describing simulated annealing is Kirkpatrick, Gelatt, and Vecchi, "Optimization by Simulated Annealing," Science 220 (1983) 671-680. Various other search techniques are described in Reeves, ed., Modern Heuristic Techniques for Combinatorial Problems, Wiley (1993).
[0115] Step 2506 is implemented as a decision block. The search technique is operated to identify a fixed number of candidate normals, if the search process is not yet complete, the CPU 12 outputs a newly selected normal value, identified via the search process (step 2508). The CPU 12 then proceeds to repeat steps 2502 and 2504, using the new candidate normal, to calculate an entropy measure for the image.
(0116] In the event that the search process is complete, the CPU 12 operates to select and output the normal corresponding to the bin color distribution having the lowest entropy (showing the highest order for the chromaticity plane, and, thus, the most accurate projection of image colors).
[0117] Returning once again to figure 7c, the output of the normal value
corresponding to the lowest entropy completes step 2004. In step 2006, the CPU 12 outputs the optimized value for the one of the 1-K estimated normals input to the routine of figure 7c. As noted above, the CPU 12 executes the routine of figure 7c (step 1006 of figure 7b) once for each of the 1 -K normals selected by a user and/or calculated by the CPU 12, to optimize each one of the respective 1-K normals relative to all of the pixels of the image being processed.
[0118] Upon completion of step 1006, the CPU 12 proceeds to step 1008. As shown in figure 7b, step 1008 includes sub-steps 1008a-c. In each sub-step 1008a-c, the CPU 12 operates to generate a normal image or map for one or more of the optimized values for the 1-K normals. In each normal map, for each pixel (or Type C token (input in step 1004)) of the image /, the CPU 12 designates a normal value, for use in a projection to the chromaticity plane. The number of sub-steps can be 1-M, wherein M is a variable. For example, M can be set to equal K such that there is a single normal map for each one of the optimized 1-K normals. In the alternative, there can be multiple normal maps, each based upon some or all of the 1-K normals.
[0119] In the simplest case, the CPU 12 assigns the same optimized one of the 1-K normals for each pixel or Type C token in the respective map, with one map for each one of 1-K normals. The optimized one of the 1-K normals can also be an average of all of the K normals to provide a single normal map, with the average value for the normal assigned to each pixel in the image. In other cases, additional maps can be generated for the 1 -K normals, including spatially varying normal values to
accommodate varying conditions that can exist throughout an image (see the examples illustrated next to step 1008c in figure 7b).
[0120] For example, a normal map can contain a normal for each image location, each normal being based upon all or some of the 1 -K normal estimates, such as the k nearest neighboring normals to an image location (pixel or Type C token) (&-NN), where A: is a number set at a value equal to all or a sub-set of the number of 1-K normals, and/or each normal being calculated using a linear system of equations based upon constraints placed upon relationships among the 1-K normals.
[0121] In a £-NN algorithm, the CPU 12 computes for each image location (pixel or Type C token), the distance between that location and each of the k nearest normals to the respective location. The value for k is set to a number equal to all or any sub-set of the 1-K number of optimized normal estimates found in step 1006 of figure 7b. The CPU 12 then converts the calculated distances into corresponding weights for use in computing a normal for each image location, as a function of the k nearest normal estimates. [0122] In an exemplary embodiment of the present invention, the distance function for each image location (for example, each pixel pi ) to each one of the k nearest normals to that location, is a weighted linear combination of M individual distance functions, as follows:
d (p„ P =∑ (from / = 1 to M) d, , Px)
wherein, similar to the optimization method of the routine of figure 7c, M is set to 2, and d, (p„ Px) is the distance between a particular pixel p, and one of the h nearest normals, Px are the pixels used to estimate the one of the k nearest normals, and each d, (pi; Px) includes a spatial distance, dspalj p„ Px) and a spectral distance, dspeclral(pi;, Px), each calculated as in the optimization method.
[0123] Moreover, in the case of M= 2, the weighted distance function for each pixel pt is expressed, as follows:
d (pt, Px) = λ, dspatial(p„ Px) + λ2 dspectral{pt, Px)
wherein λι and λ2 are parameters set to control the relative importance between the spatial and spectral distances in the weighted distance calculation.
[0124] In the example of finding a normal based upon a Jc-NN algorithm when the image locations are pixels ?„ upon calculating a weighted distance d (pt, Px) for each pixel pj, the CPU 12 can proceed to a computation of a normal ni for each pixel location, as follows:
n, =∑ (from x = 1 to k) wx nx
wherein nx is one of the k nearest normals, and the weight for the pixel relative to the one normal, wx =1 - d (pt, J)/maxx = , k d p„ Px) + e wherein d (p„ Px) is the weighted distance to the current one of the k nearest normals in the summation, maxx = k d (pt, Px) is the distance to the furthest one of the k normals and e is a small weight added to the distance to the furthest one of the normals to keep wx non-zero, for example, e = 0.01. [0125] A normal map can then be output by the CPU 12 with an n, normal value determined as a function of the A NN algorithm, for each pixel location in the image /.
[0126] In a further exemplary embodiment of the present invention, the CPU 12 executes one or more of sub-steps 1008a-c of figure 7b by building a system of linear equations based upon a series of constraints between, for example, nt normal values for image locations determined as a function of the £-NN algorithm, to generate a normal map. Figure 7f is a flow chart showing the use of a system of linear equations to estimate spatially varying normals for each token t in the image /.
[0127] In steps 600a-d, information and parameters relevant to the linear equations are input to the CPU 12. For example, in step 600a, a set of values E represents an edge value et, one value for each token in the image, where e, = 1 if the corresponding token of the image overlaps a material edge, and et = 0 if otherwise. In step 600b a smoothness weight wsmooth « 1 is input to the CPU 12.
[0128] In an exemplary embodiment of the present invention, the set of weights E is determined based upon an edge detection. For example, normals determined using the k-NN algorithm can be used to generate a log-chromaticity representation for the image, for example, by operating the CPU 12 to execute the routine of figure 8. The resulting representation will be an illumination invariant version of the original image. A Canny edge detection algorithm can then be used to identify pixels forming an edge in the representation. Each edge pixel is assigned a 1 value. Then each token for the image / being processed (step 1004 of figure 7b) including a majority of constituent pixels with a 1 value is assigned an e, = 1, and all other tokens are assigned an et = 0.
[0129] Each of the set of values E and the weight wsmooth are used to define a set of weight values for use in smoothness constraints (step 602) such that a weight α; for a corresponding token is set to wsmoolh when the ei for the token is 1 , and set to 1 when the e, is 0. The smoothness constraint takes the form shown in step 604, as follows:
Figure imgf000032_0001
wherein x, and Xj are normals to be determined for two adjacent tokens, the constraint encourages the two normals to be the same when neither one of the adjacent tokens is an edge token.
(0130] In step 600c, a data weight value, wdala, is input to the CPU 12. The weight is used in a data constraint that encourages a normal for an image location to stay close to an estimate for the normal value determined in a previously executed method, for example, the £-NN method. Then weight sets the relative importance of the data constraint. In step 606, a set of normal estimates V- {vy, v2 ... vp}, is input to the CPU 12, wherein each v( is, for example, a &-NN estimate for a normal for an image token The constraint takes the form as shown in step 608: wdala x, = v(, wherein J , is the normal to be determined for the corresponding token t.
[0131] In step 600d, a weight wanchor, for an anchor constraint, is input to the CPU 12. The anchor constraint focuses on tokens that include pixels used to estimate the 1 -K normals. To that end, in step 610, an input to the CPU 12 includes the set of 1-K normals N, including all of the normals estimated by a user selection and/or calculated by the CPU 12, and the associated token positions {T, ... TN}, each token position including constituent pixels P corresponding to the pixels used to calculate a respective one of the 1 -K normals, as described above. The anchor constraint encourages tokens used to estimate a normal to stay at that normal value. The constraint takes the form as shown in step 612: wanchor x, = nj wherein the weight wanchor sets the relative importance of the anchor constraint, is the normal to be determined for the corresponding token, and n, is the one of the 1-K normals estimates associated with the token.
[0132] In steps 614 and 616, the CPU 12 concatenates the left-hand and right-hand sides of the constraint equations of steps 604, 608 and 612, respectively, in an [L][x] = [r] matrix equation. In step 614, the[ L] matrix includes a concatenation of each left- hand side of each of the smoothness, data and anchor constraints, with each instance of each constraint forming a row across the matrix. In step 616, the [r] matrix includes a concatenation of each right hand side of each of the smoothness, data and anchor constraints, with each instance of each constraint forming a row across the matrix.
[0133] In step 618, the an [A][x] = [b] matrix is built by the CPU 12 according to the following relationships: [A] = [LT] [L] and [b] = [LT] [r], wherein [LT] is the transpose of [L] and [x] is a set of normals N= {x; ... xn} to be determined by a solution to the matrix equation.
[0134] In step 620, the CPU 12 solves for [x], a matrix of optimized normals, one for each image location, for example, Type C tokens, wherein each normal is a vector, for example a 3 -vector in the RGB color space of the exemplary embodiment of the present invention. The solution can be implemented as a known least-squares algorithm.
[0135] In step 622, the CPU 12 outputs the set of normals iV= {x( ... *„}.
[0136] Figure 7g shows an example of a token map having four tokens analyzed in the system of linear equations of figure 7f. In the example, four tokens , b, c and d include one token (b) identified as an edge token, and one token (d) identified as a token used to estimate a normal nb. The matrix shown in figure 7g represents an application of smoothness constraints to the set of tokens α, 6, c and d and an anchor constraint to the token d. The CPU 12 can solve the matrix equation to provide a set of normals, xa, xb, xc, and χφ one for each of the tokens a, b, c and d, respectively.
[0137] Upon completion of steps 1008a-c of figure 7b, the CPU 12 proceeds to sub- steps l OlOa-c. In each sub-step lOlOa-c, the CPU executes the routines of figures 8-1 1, to generate a log-chromaticity clustering map corresponding to a respective one of the M normal maps, Each clustering map provides a same reflectance map since the pixels or Type C tokens (step 1004) included in each identified cluster relate to a single material reflectance, independent of illumination. Each cluster map includes a list of cluster group memberships cross-referenced to the pixels or Type C tokens of the image being processed /.
[0138] Figure 8 is a flow chart for determining log-chromaticity coordinates for the colors of an input image, as identified in steps 202 or 204 of the routine of figure 6. In step 220, a list of colors is input to the CPU 12. The list of colors can comprise either the list generated through execution of step 202 of the routine of figure 6, or the list generated through execution of step 204. In step 222, one of the maps for one of the optimized 1-K log-chromaticity orientations for the normal, N, determined through execution of the routine of figures 7b, is also input to the CPU 12.
[0139] In step 224, the CPU 12 operates to calculate a log value for each color in the list of colors and plots the log values in a three dimensional log space at respective (log R, log G, log B) coordinates, as illustrated in figure 5. Materials A, B and C denote log values for specific colors from the list of colors input to the CPU 12 in step 220. A log- chromaticity plane is also calculated by the CPU 12, in the three dimensional log space, with u, v coordinates and an orientation set by N, input to the CPU 12 in step 222. The orientation N used for each particular color is set to correspond to the normal indicated for the corresponding pixel or Type C token in the respective normal map. Each u, v coordinate in the log-chromaticity plane can also be designated by a corresponding (log R, log G, log B) coordinate in the three dimensional log space.
[0140] According to a feature of the related invention, the CPU 12 then projects the log values for the colors A, B and C onto the log-chromaticity plane (oriented, in each case, according to the normal N listed in the normal map for the pixel (or Type C token) corresponding to the color) to determine a u, v log-chromaticity coordinate for each color. Each u, v log-chromaticity coordinate can be expressed by the corresponding (log R, log G, log B) coordinate in the three dimensional log space. The CPU 12 outputs a list of the log-chromaticity coordinates in step 226. The list cross-references each color to a u, v log-chromaticity coordinate and to the pixels (or a Type C token) having the respective color (depending upon the list of colors used in the analysis (either step 202(tokens) or 204 (pixels))).
[0141] Figure 9 is a flow chart for optionally augmenting the log-chromaticity coordinates for pixels or Type C tokens with extra dimensions, according to a feature of the related invention. In step 230, the list of log-chromaticity coordinates, determined for the colors of the input image through execution of the routine of figure 8, is input to the CPU 12. In step 232, the CPU 12 accesses the input image file 18, for use in the augmentation.
[0142] In step 234, the CPU 12 optionally operates to augment each log-chromaticity coordinate with a tone mapping intensity for each corresponding pixel (or Type C token). The tone mapping intensity is determined using any known tone mapping technique. An augmentation with tone mapping intensity information provides a basis for clustering pixels or tokens that are grouped according to both similar log- chromaticity coordinates and similar tone mapping intensities. This improves the accuracy of a clustering step.
[0143] In step 236, the CPU 12 optionally operates to augment each log-chromaticity coordinate with x, y coordinates for the corresponding pixel (or an average of the x, y coordinates for the constituent pixels of a Type C token) (see figure 2 showing a P (1,1) to P (N, M) pixel arrangement ). Thus, a clustering step with x, y coordinate information will provide groups in a spatially limited arrangement, when that characteristic is desired.
[0144] In each of steps 234 and 236, the augmented information can, in each case, be weighted by a factor w, and w2> w3 respectively, to specify the relative importance and scale of the different dimensions in the augmented coordinates. The weight factors W] and w2, w3 are user-specified. Accordingly, the (log R, log G, log B) coordinates for a pixel or Type C token is augmented to (log R, log G, log B, T*w, x*w2 y*w3) where T, x and y are the tone mapped intensity, the x coordinate and the y coordinate, respectively.
[0145] In step 238, the CPU 12 outputs a list of the augmented coordinates. The augmented log-chromaticity coordinates provide accurate illumination invariant representations of the pixels, or for a specified regional arrangement of an input image, such as, for example, Type C tokens. According to a feature of the related invention and the present invention, the illumination invariant characteristic of the log- chromaticity coordinates is relied upon as a basis to identify regions of an image of a single material or reflectance, such as, for example, Type B tokens.
[0146] Figure 10 is a flow chart for clustering the log-chromaticity coordinates, according to a feature of the present invention. In step 240, the list of augmented log- chromaticity coordinates is input the CPU 12. In step 242, the CPU 12 operates to cluster the log-chromaticity coordinates. According to the teachings of the related invention, the clustering step can be implemented via, for example, a known k-means clustering. Any known clustering technique can be used to cluster the log-chromaticity coordinates to determine groups of similar log-chromaticity coordinate values, according to the related invention. According to the teachings of each of the related invention and the present invention, the CPU 12 correlates each log-chromaticity coordinate to the group to which the respective coordinate belongs.
[0147] According to a feature of the present invention, the clustering step 242 is implemented as a function of an index of the type used in database management, for example, a hash index, a spatial hash index, b-trees or any other known index commonly used in a database management system. By implementing the clustering step 242 as a function of an index, the number of comparisons required to identify a cluster group for each pixel or token of an image is minimized. Accordingly, the clustering step can be executed by the CPU 12 in a minimum amount of time, to expedite the entire image process.
[0148] Figure 10a is an illustration of a grid for a spatial hash, according to a feature of an exemplary embodiment of the present invention. As shown in figure 10a, a spatial hash divides an image being processed into a grid of buckets, each bucket being dimensioned to be spatialThresh x spatialThresh. The grid represents a histogram of the u, v log-chromaticity values for the cluster groups. As each cluster is created, a reference to the cluster is placed in the appropriate bucket of the grid.
[0149] Each new pixel or token of the image being processed is placed in the grid, in the bucket it would occupy, as if the item (pixel or token) was a new group in the clustering process. The pixel or token is then examined relative to the clusters in, for example, a 3 x 3 grid of buckets surrounding the bucket occupied by the item being examined. The item is added to the cluster group within the 3 x 3 gird, for example, if the item is within a threshold for a clusterMean.
[0150] The CPU 12 also operates to calculate a center for each group identified in the clustering step. For example, the CPU 12 can determine a center for each group relative to a (log R, log G, log B, log T) space.
[0151] In step 244, the CPU 12 outputs a list of the cluster group memberships for the log-chromaticity coordinates (cross referenced to either the corresponding pixels or Type C tokens) and/or a list of cluster group centers,
[0152] Pursuant to a further feature of the present invention, the list of cluster group memberships can be augmented with a user input of image characteristics. For example, a user can specify pixels or regions of the image that are of the same material reflectance. The CPU 12 operates to overlay the user specified pixels or regions of same reflectance onto the clustering group membership information. [0153] As noted above, in the execution of the clustering method, the CPU 12 can use the list of colors from either the list generated through execution of step 202 of the routine of figure 6, or the list generated through execution of step 204. In applying the identified cluster groups to an input image, the CPU 12 can be operated to use the same set of colors as used in the clustering method (one of the list of colors corresponding to step 202 or to the list of colors corresponding to step 204), or apply a different set of colors (the other of the list of colors corresponding to step 202 or the list of colors corresponding to step 204). If a different set of colors is used, the CPU 12 proceeds to execute the routine of figure 11.
[0154] Figure 1 1 is a flow chart for assigning the log-chromaticity coordinates to clusters determined through execution of the routine of figure 10, when a different list of colors is used after the identification of the cluster groups, according to a feature of the present invention. In step 250, the CPU 12 once again executes the routine of figure 8, this time in respect to the new list of colors. For example, if the list of colors generated in step 202 (colors based upon Type C tokens) was used to identify the cluster groups, and the CPU 12 then operates to classify log-chromaticity coordinates relative to cluster groups based upon the list of colors generated in step 204 (colors based upon pixels), step 250 of the routine of figure 11 is executed to determine the log-chromaticity coordinates for the colors of the pixels in the input image file 18.
[0155] In step 252, the list of cluster centers is input to the CPU 12. In step 254, the CPU 12 operates to classify each of the log-chromaticity coordinates identified in step 250, according to the nearest cluster group center. In step 256, the CPU 12 outputs a list of the cluster group memberships for the log-chromaticity coordinates based upon the new list of colors, with a cross reference to either corresponding pixels or Type C tokens, depending upon the list of colors used in step 250 (the list of colors generated in step 202 or the list of colors generated in step 204). [0156] Upon completion of sub-steps lOlOa-c, the CPU 12 outputs a set of log- chromaticity clustering maps, each including a list of cluster group memberships (from either steps 244 or 256 of the routines of figures 8-1 1) for the pixels or Type C tokens of the image, and each one of the log-chromaticity clustering maps corresponding to one of the normal maps generated in sub-steps 1008a-c. In step 1012, the CPU 12 operates to merge the cluster group membership lists obtained from the multiple executions of the routines of figures 8-11 in sub-steps lOlOa-c, into a single composite cluster group membership list.
[0157] Figure 7h is a flow chart for a multi-clustering merge step to provide a routine to implement step 1012 of figure 7b. In step 700, the set of log-chromaticity clustering maps generated in steps lOlOa-c of figure 7b is input to the CPU 12. In a decision block (step 702) the CPU 12 determines if the input set of log-chromaticity clustering maps includes more than one map. In the simplest case, when K equals one optimized normal, there can be a case when only one cluster map is generated. In that case, the CPU 12 returns the single log-chromaticity clustering map as an output (step 704).
[0158] In the event the set of log-chromaticity clustering maps includes more than one map, the CPU 12 proceeds to step 706. In step 706, the CPU 12 operates to compute a score S for each cluster of each cluster map. The score is a measure of how likely a particular cluster includes lit and shadowed pixels of a single material reflectance. In an exemplary embodiment of the present invention, the score is obtained in a two step method applied to each cluster of each cluster map.
[0159] In a first step, the CPU 12 identifies the minimum and maximum RGB values, V[ and v2 among the pixels (or among the average color values for Type C tokens) of a particular cluster. In the second step, the CPU 12 computes the Euclidean distance between V[ and v2 as the score for the respective cluster. [0160] In step 708, the CPU 12 generates a single cluster map by examining the cluster membership for each <x, y> location in the image plane (see, for example, figure 2) (i.e. the cluster group wherein the u, v coordinates of the chromaticity plane corresponding to the <x, y> location, has been placed), as indicated in each one of the set of log-chromaticity clustering maps, to select the one membership cluster for the respective <x, y> location, from among the entire set of log-chromaticity clustering maps, having the highest score. The single resulting cluster map therefor includes, as a cluster membership for each <x, y> location, the cluster for that location with the highest score, indicating the cluster for the location having the highest likelihood of including lit and shadowed pixels of a single material reflectance, and thus, providing the most accurate log-chromaticity representation for each respective pixel.
[0161] Referring once again to figure 7b, in step 1014, the CPU 12 outputs the single cluster map.
[0162] Figure 12 is a flow chart for detecting regions of uniform reflectance based on the log-chromaticity clustering according to a feature of the present invention. In step 260, the input image file 18 is once again provided to the CPU 12. In step 262, one of the pixels or Type C tokens, depending upon the list of colors used in step 250, is input to the CPU 12. In step 264, the cluster membership information contained in the single composite cluster map, obtained from the merge performed in figure 7h, is input to the CPU 12.
[0163] In step 266, the CPU 12 operates to merge each of the pixels, or specified regions of an input image, such as, for example, Type C tokens, having a same cluster group membership into a single region of the image to represent a region of uniform reflectance (Type B token). The CPU 12 performs such a merge operation for all of the pixels or tokens, as the case may be, for the input image file 18. In step 268, the CPU 12 outputs a list of all regions of uniform reflectance (and also of similar tone mapping intensities and x, y coordinates, if the log-chromaticity coordinates were augmented in steps 234 and/or 236). It should be noted that each region of uniform reflectance (Type B token) determined according to the features of the present invention, potentially has significant illumination variation across the region.
[0164] U. S. Patent No. 8,139,867 teaches a constraint/solver model for segregating illumination and material in an image, including an optimized solution based upon a same material constraint. A same material constraint, as taught in U. S. Patent No. 8,139,867, utilizes Type C tokens and Type B tokens, as can be determined according to the teachings of the present invention. The constraining relationship is that all Type C tokens that are part of the same Type B token are constrained to be of the same material. This constraint enforces the definition of a Type B token, that is, a connected image region comprising contiguous pixels that represent a region of the image encompassing a single material in the scene, though not necessarily the maximal region corresponding to that material. Thus, all Type C tokens that lie within the same Type B token are by the definition imposed upon Type B tokens, of the same material, though not necessarily of the same illumination. The Type C tokens are therefore constrained to correspond to observed differences in appearance that are caused by varying illumination.
[0165] Figure 13 is a representation of an [A] [x] = [b] matrix relationship used to identify and separate illumination and material aspects of an image, according to a same-material constraint, as taught in U. S. Patent No. 8,139,867. Based upon the basic equation I = ML (I = the recorded image value, as stored in an image file 18, M = material reflectance, and L = illumination), log(I) = log (ML) = log (M) + log(L). This can be restated as / = m + I, wherein / represents log(l), m represents log(M) and / represents log(L). In the constraining relationship of a same material, in an example where three Type C tokens, a, b and c, (as shown in figure 13) are within a region of single reflectance, as defined by a corresponding Type B token defined by a, b and c, then ma = mb = mc. For the purpose of this example, the I value for each Type C token is the average color value for the recorded color values of the constituent pixels of the token. The a, b and c, Type C tokens of the example can correspond to the blue Type B token illustrated in figure 3d.
[0166] Since: ma = ia - la, mb = ib - lb, and mc = ic - 4, these mathematical relationships can be expressed , in a same material constraint, as (1)4 + (-1)4 + (0)4 = (4 - 4), (1)4 +
(0)4 + (-1)4 - (4 - 4) and (0)4 + (1)4 + (-1)4 = (4 - 4)·
[0167] Thus, in the matrix equation of figure 13, the various values for the log (I) ( 4, 4)5 m me [b] matrix, are known from the average recorded pixel color values for the constituent pixels of the adjacent Type C tokens a, b and c. The [A] matrix of 0's, l's and -l's, is defined by the set of equations expressing the same material constraint, as described above. The number of rows in the [A] matrix, from top to bottom, corresponds to the number of actual constraints imposed on the tokens, in this case three, the same material constraint between the three adjacent Type C tokens a, b and c. The number of columns in the [A] matrix, from left to right, corresponds to the number of unknowns to be solved for, again, in this case, the three illumination values for the three tokens. Therefore, the values for the illumination components of each Type C token a, b and c, in the [x] matrix, can be solved for in the matrix equation, by the CPU 12. It should be noted that each value is either a vector of three values corresponding to the color bands (such as red, green, and blue) of our example or can be a single value, such as in a grayscale image.
[0168] Once the illumination values are known, the material color can be calculated by the CPU 12 using the I = ML equation. Intrinsic illumination and material images can be now be generated for the region defined by tokens a, b and c, by replacing each pixel in the original image by the calculated illumination values and material values, respectively. An example of an illumination image and material image, corresponding to the original image shown in figure 3b, is illustrated in figure 14. [0169] Implementation of the constraint/solver model according to the techniques and teachings of U. S. Patent No. 8,139,867, utilizing the Type C tokens and Type B tokens obtained via a log-chromaticity clustering technique according to the present invention, provides a highly effective and efficient method for generating intrinsic images corresponding to an original input image. The intrinsic images can be used to enhance the accuracy and efficiency of image processing, image analysis and computer vision applications.
[0170] However, the intrinsic images generated from the performance of the exemplary embodiments of the present invention can include artifacts that distort the appearance of a scene depicted in the image being processed. The artifacts can be introduced through execution of the intrinsic image generations methods of the present invention, or through user modifications such as the user input of image characteristics discussed above. Accordingly, according to a feature of the present invention, various post processing techniques can be implemented to reduce the artifacts.
[0171] Figure 15 is a flow chart for an edge preserving blur post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention, to improve the quality of the illumination and material reflectance aspects depicted in the intrinsic images. In step 300, the CPU 12 receives as an input an original image (an image file 18), and the corresponding intrinsic material reflectance and illumination images determined by the CPU 12 through solution of the matrix equation shown in figure 13, as described above.
[0172] In step 302, the CPU 12 operates to perform an edge-preserving blur of the illumination in the illumination image by applying an edge preserving smoothing filter. The edge preserving smoothing filter can be any one of the known filters such as, for example, a bilateral filter, a guided filter, a mean-shift filter, a median filter, anisotropic diffusion and so on. The filter can be applied one or more times to the illumination image. In an exemplary embodiment, a bilateral filter is applied to the illumination image twice. In addition, several different types of filters can be applied in succession, for example, a median filter followed by a bilateral filter.
[0173] In step 304, the CPU 12 recalculates the intrinsic material reflectance image based upon the I = ML equation, and using the original image of the image file 18 and the illumination image, as modified in step 302. In step 306, the CPU 12 outputs intrinsic material reflectance and illumination images, as modified by the CPU 12 through execution of the routine of figure 15.
[0174] A smoothing filter applied to the illumination image results in several improvements to the appearance of the intrinsic images when used in, for example, such applications as computer graphics. For example, in computer graphics, texture mapping is used to achieve certain special effects. Artists consider it desirable in the performance of texture mapping to have some fine scale texture form the illumination in the material reflectance image. By smoothing the illumination image, in step 302, the fine scale texture is moved to the material reflectance image upon a recalculation of the material image in step 304, as will be described below.
[0175] In addition, smoothing the illumination in step 302 places some of the shading illumination (illumination intensity variation due to curvature of a surface) back into the material reflectance image, giving the material image some expression of curvature. That results in an improved material depiction more suitable for artistic rendering in a computer graphics application.
[0176] Moreover, small reflectance variation sometimes erroneously ends up in the illumination image. The smoothing in step 302 forces the reflectance variation back into the material image.
[0177] Figure 16 is a flow chart for an artifact reduction post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention, to improve the quality of the illumination and material reflectance aspects depicted in the intrinsic images. In step 400, the CPU 12 receives as an input an original image (an image file 18), and the corresponding intrinsic material reflectance and illumination images determined by the CPU 12 through solution of the matrix equation shown in figure 13, as described above. Optionally, the intrinsic images can be previously modified by the CPU 12 through execution of the routine of figure 15.
[0178] In step 402, the CPU 12 operates to calculate derivatives (the differences between adjacent pixels) for the pixels of each of the original image and the material reflectance image. Variations between adjacent pixels, in the horizontal and vertical directions, are caused by varying illumination and different materials in the scene depicted in the original image. When the CPU 12 operates to factor the original image into intrinsic illumination and material reflectance images, some of the variation ends up in the illumination image and some ends up in the material reflectance image. Ideally, all of the variation in the illumination image is attributable to varying illumination, and all of the variation in the material reflectance image is attributable to different materials.
[0179] Thus, by removing the illumination variation, variations in the material reflectance image should be strictly less than variations in the original image.
However, inaccuracies in the process for generating the intrinsic images can result in new edges appearing in the material reflectance image.
[0180] In step 404, the CPU 12 operates to identify the artifacts caused by the newly appearing edges by comparing the derivatives for the material reflectance image with the derivatives for the original image. The CPU 12 modifies the derivatives in the material reflectance image such that, for each derivative of the material reflectance image, the sign is preserved, but the magnitude is set at the minimum of the magnitude of the derivative in the original image and the material reflectance image. The modification can be expressed by the following equation:
derivativeReflectanceNew = min(abs(derivativeReflectance01d),
abs(derivativeOriginalimage)) * sign(derivativeRefiectanceOld)
[0181] In step 406, the CPU integrates the modified derivatives to calculate a new material reflectance image. The new image is a material reflectance image without the newly appearing, artifact-causing edges. Any known technique can be implemented to perform the integration. For example, the CPU 12 can operate to perform numerical 2D integration by solving the 2D Poisson equation using discrete cosine transforms.
[0182] In step 408, the CPU 12 recalculates the intrinsic illumination image based upon the I = ML equation, and using the original image of the image file 18 and the material reflectance image, as modified in steps 404 and 406. In step 408, the CPU 12 outputs intrinsic material reflectance and illumination images, as modified by the CPU 12 through execution of the routine of figure 16.
[0183] Figure 17 is a flow chart for a BIDR model enforcement post processing technique applied to the intrinsic images illustrated in figure 14, according to a feature of the present invention, to improve the quality of the illumination and material reflectance aspects depicted in the intrinsic images.
[0184] As described above, the BIDR model predicts the correct color for a material, in a shadow penumbra, from full shadow to fully lit. As shown in figure 18, according to the prediction of the BIDR model, colors for a material, for example, in an RGB color space, from a fully shaded color value to a fully lit color value, generally form a line in the color space. In full shadow, the material is illuminated by an ambient illuminant, while when fully lit, the material is illuminated by the ambient ilmminant and the direct or incident illuminant present in the scene at the time the digital image of an image file 18 was recorded. [0185] According to the BIDR model, the illumination values in an image also define a line extending from the color of the ambient illuminant to the color of the combined ambient and direct illuminants. In log color space, the illumination line predicted by the BIDR model corresponds to the normal, N of the log color space chromaticity plane illustrated in figure 5.
[0186] Various inaccuracies in the generation of the illumination and material intrinsic images, as described above, can also result, for example, in illumination values in the generated intrinsic illumination image that diverge from the line for the illumination values predicted by the BIDR model. According to the present invention, the illumination line prediction of the BIDR model is used to correct such inaccuracies by modifying the illumination to be linear in log(RGB) space.
[0187] Referring once again to figure 17, in step 500, the CPU 12 receives as input a BIDR illumination orientation, corresponding to the normal N illustrated in figure 5. In the exemplary embodiment of the present invention, N is determined by the CPU 12 through execution of the routine of figure 7, as described above. In that case, the N determined through execution of the routine of figure 7 is used in both the clustering process described above, and in the BIDR model enforcement post processing technique illustrated in figure 17.
[0188] In the event the illumination and material reflectance images are generated via a method different from the log-chromaticity clustering technique of the exemplary embodiment, the orientation N is determined by the CPU 12 in a separate step before the execution of the routine of figure 17, through execution of the routine of figure 7. When N is determined in a separate step, the CPU 12 can operate relative to either the original image or the illumination image. In addition, when the processing is based upon a user input, as described above, the user can make a selection from either the original image or the illumination image. [0189] Moreover, in step 500, the CPU 12 also receives as input an original image (an image file 18), and the corresponding intrinsic material reflectance and illumination images determined by the CPU 12 through solution of the matrix equation shown in figure 13, also as described above. Optionally, the intrinsic images can be previously modified by the CPU 12 through execution of the routine(s) of either one, or both figures 15 and 16.
[0190] In step 502, the CPU 12 determines the full illumination color in the illumination image. The full illumination color (ambient + direct) can be the brightest color value depicted in the illumination image. However, the brightest value can be inaccurate due to noise in the image or other outliers. In a preferred exemplary embodiment of the present invention, a more accurate determination is made by finding all illumination color values in a preselected range of percentiles of the intensities, for example, the 87th through 92nd percentiles, and calculating an average of those values. The average is used as the full illumination color value. Such an approach provides a robust estimate of the bright end of the illumination variation in the intrinsic illumination image.
[0191] In step 504, the CPU 12 operates to modify all of the pixels of the illumination image by projecting all of the illumination colors depicted by the pixels in the illumination image to the nearest point on a line having the orientation N (input to the CPU 12 in step 500) and passing through the full illumination color determined in step 302. Thus, the color of each pixel of the illumination image is modified to conform to the closest value required by the BIDR model prediction.
[0192] A special case exists for the pixels of the illumination image having an intensity that is greater than the full illumination color value, as calculated in step 502. The special case can be handled by the CPU 12 according to a number of different methods. In a first method, the modification is completed as with all the other pixels, by projecting each high intensity pixel to the nearest value on the illumination line. In a second method, each high intensity pixel is replaced by a pixel set at the full illumination color value. According to a third method, each high intensity pixel is kept at the color value as in the original image.
[0193] An additional method is implemented by using a weighted average for each high intensity pixel, of values determined according to the first and third methods, or of values determined according to the second and third methods. The weights would favor values calculated according to either the first or second methods when the values are similar to high intensity pixels that are not significantly brighter than the full illumination color value calculated in step 502. Values calculated via the third method are favored when values for high intensity pixels that are significantly brighter than the full illumination color value. Such a weighting scheme is useful when the I = ML equation for image characteristics is inaccurate, for example, in the presence of specular reflections.
[0194] Any known technique can be implemented to determine the relative weights for illumination values. In an exemplary embodiment of the present invention, a sigmoid function is constructed such that all the weight is on the value determined either according to the first or second methods, when the intensity of the high intensity pixel is at or near the full illumination color value, with a smooth transition to an equally weighted value, between a value determined either according to the first or second methods and a value determined according to the third method, as the intensity increases. That is followed by a further smooth transition to full weight on a value determined according to the third method, as the intensity increase significantly beyond the full illumination color value.
[0195] In step 506, the CPU 12 recalculates the intrinsic material reflectance image based upon the I = ML equation, and using the original image of the image file 18 and the illumination image, as modified in step 504. In step 508, the CPU 12 outputs intrinsic material reflectance and illumination images modified to strictly adhere to the predictions of the BIDR model.
[0196] For best results, the above-described post processing techniques can be executed in a log(RGB) space. Also, the various techniques can be executed in the order described above. Once one or more of the post processing techniques have been executed, the final modified intrinsic images can be white balanced and/or scaled, as desired, and output by the CPU 12.
[0197] In the preceding specification, the invention has been described with reference to specific exemplary embodiments and examples thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the claims that follow. The specification and drawings are accordingly to be regarded in an illustrative manner rather than a restrictive sense.

Claims

What is claimed is:
1. An automated, computerized method for processing an image, comprising the steps of:
providing an image file depicting an image defined by image locations, in a computer memory;
generating a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image;
providing a set of estimates for an orientation of the bi-illuminant chromaticity plane; and
generating a plurality of normal maps, each normal map providing an indication of at least one orientation, each at least one orientation calculated as a function of the set of estimates for an orientation.
2. The method of claim 1 including the further step of calculating a set of log- chromaticity cluster maps, each one of the set of log-chromaticity cluster maps being based upon a corresponding one of the plurality of normal maps.
3. The method of claim 1 wherein the step of generating a plurality of normal maps is carried out by executing a technique based upon at least one of a &-NN algorithm and a system of linear equations representing constraints between values based upon selected ones of the set of estimates for an orientation, relative to selected ones of the plurality of normal maps.
4. The method of claim 1 wherein the image locations comprise pixels.
5. The method of claim 1 wherein the image locations comprise tokens.
6. A computer system which comprises:
a CPU; and
a memory storing an image file containing an image defined by image locations; the CPU arranged and configured to execute a routine to generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide a set of estimates for an orientation of the bi-illuminant chromaticity plane and generate a plurality of normal maps, each normal map providing an indication of at least one orientation, each at least one orientation calculated as a function of the set of estimates for an orientation.
7. A computer program product, disposed on a non-transitory computer readable media, the product including computer executable process steps operable to control a computer to: provide an image file depicting an image defined by image locations, in a computer memory, generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide a set of estimates for an orientation of the bi-illuminant chromaticity plane and generate a plurality of normal maps, each normal map providing an indication of at least one orientation, each at least one orientation calculated as a function of the set of estimates for an orientation.
8. The computer program product of claim 9 including the further process step to calculate a set of log-chromaticity cluster maps, each one of the set of log-chromaticity cluster maps being based upon a corresponding one of the plurality of normal maps.
9. The computer program product of claim 9 wherein the process step to generate a plurality of normal maps is carried out by executing a technique based upon at least one of a k-NN algorithm and a system of linear equations representing constraints between values based upon selected ones of the set of estimates for an orientation, relative to selected ones of the plurality of normal maps.
10. The computer program product of claim 9 wherein the image locations comprise pixels.
11. The computer program product of claim 9 wherein the image locations comprise tokens.
12. A computer program product, disposed on a non-transitory computer readable media, the product including computer executable process steps operable to control a computer to: provide an image file depicting an image defined by image locations, in a computer memory, generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide a set of estimates for an orientation of the bi-illuminant chromaticity plane and generate a normal map, the normal map providing an indication of an average orientation calculated as a function of the set of estimates for an orientation.
13. A computer program product, disposed on a non-transitory computer readable media, the product including computer executable process steps operable to control a computer to: provide an image file depicting an image defined by image locations, in a computer memory, generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide a set of estimates for an orientation of the bi-illuminant chromaticity plane, the set of estimates provided by user input, calculation based upon at least one of a linear token, an x-j unction and a Type B token, or combinations thereof, and generate a plurality of normal maps, each normal map providing an indication of at least one orientation, each at least one orientation calculated as a function of the set of estimates for an orientation.
14. A computer program product, disposed on a non-transitory computer readable media, the product including computer executable process steps operable to control a computer to: provide an image file depicting an image defined by image locations, in a computer memory, generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide a set of estimates for an orientation of the bi-illuminant chromaticity plane, each one of the set of estimates being based upon one of a set of subsets of the image locations, execute a distance function between each one of the image locations and at least one selected one of the sub-sets of the image locations used to calculate the set of estimates to obtain a distance function result, and for each one of the image locations, calculate an orientation based upon the set of estimates and the distance function result.
15. The computer program product of claim 16 wherein the distance function is based upon a spatial distance and a spectral distance between each one of the image locations and the at least one selected one of the sub-sets of the image locations.
16. An automated, computerized method for processing an image, comprising the steps of:
providing an image file depicting an image defined by image locations, in a computer memory;
generating a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image;
providing a set of estimates for an orientation of the bi-illuminant chromaticity plane; and
calculating a single orientation for each one of the image locations as a function of the set of estimates for the orientation.
17. A computer system which comprises:
a CPU; and
a memory storing an image file containing an image defined by image locations;
the CPU arranged and configured to execute a routine to generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide a set of estimates for an orientation of the bi-illuminant chromaticity plane and calculate a single orientation for each one of the image locations as a function of the set of estimates for an orientation.
18. A computer program product, disposed on a non-transitory computer readable media, the product including computer executable process steps operable to control a computer to: provide an image file depicting an image defined by image locations, in a computer memory, generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide a set of estimates for an orientation of the bi-illuminant chromaticity plane and calculate a single orientation for each one of the image locations as a function of the set of estimates for an orientation.
19. An automated, computerized method for processing an image, comprising the steps of:
providing an image file depicting an image defined by image locations, in a computer memory;
generating a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image;
providing an estimate for an orientation of the bi-illuminant chromaticity plane; and optimizing the estimate of an orientation as a function of a minimization of a weighted entropy.
20. A computer system which comprises:
a CPU; and
a memory storing an image file containing an image defined by image locations;
the CPU arranged and configured to execute a routine to generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide an estimate for an orientation of the bi-illuminant chromaticity plane and optimize the estimate of an orientation as a function of a minimization of a weighted entropy.
21. A computer program product, disposed on a non-transitory computer readable media, the product including computer executable process steps operable to control a computer to: provide an image file depicting an image defined by image locations, in a computer memory, generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, provide an estimate for an orientation of the bi-illuminant chromaticity plane and optimize the estimate of an orientation as a function of a minimization of a weighted entropy.
22. An automated, computerized method for processing an image, comprising the steps of:
providing an image file depicting an image defined by image locations, in a computer memory;
generating a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image;
calculating a set of log-chromaticity cluster maps, each based upon at least one estimate for an orientation of the bi-illuminant chromaticity plane selected from a set of estimates and including a cluster for each one of the image locations; and
merging the set of log-chromaticity cluster maps to obtain a single, merged log- chromaticity cluster map.
23. A computer system which comprises:
a CPU; and
a memory storing an image file containing an image defined by image locations;
the CPU arranged and configured to execute a routine to generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, calculate a set of log- chromaticity cluster maps, each based upon at least one estimate for an orientation of the bi-illuminant chromaticity plane selected from a set of estimates and including a cluster for each one of the image locations, and merge the set of log-chromaticity cluster maps to obtain a single, merged log-chromaticity cluster map.
24. A computer program product, disposed on a non-transitory computer readable media, the product including computer executable process steps operable to control a computer to: provide an image file depicting an image defined by image locations, in a computer memory, generate a bi-illuminant chromaticity plane in a log color space for representing the image locations of the image in a log-chromaticity representation for the image, calculate a set of log-chromaticity cluster maps, each based upon at least one estimate for an orientation of the bi-illuminant chromaticity plane selected from a set of estimates and including a cluster for each one of the image locations, and merge the set of log-chromaticity cluster maps to obtain a single, merged log-chromaticity cluster map.
PCT/US2013/054457 2012-08-17 2013-08-12 Log-chromaticity clustering pipeline for use in an image process WO2014028355A2 (en)

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
US13/588,706 US8842907B2 (en) 2012-08-17 2012-08-17 Method for performing a multi-clustering merge for use in an image process
US13/588,720 2012-08-17
US13/588,720 US8842910B2 (en) 2012-08-17 2012-08-17 Spatially varying log-chromaticity normals for use in an image process
US13/588,667 US8849018B2 (en) 2012-08-17 2012-08-17 Log-chromaticity clustering pipeline for use in an image process
US13/588,688 US8811732B2 (en) 2012-08-17 2012-08-17 Weighted entropy minimization for optimizing a log-chromaticity normal for use in an image process
US13/588,688 2012-08-17
US13/588,706 2012-08-17
US13/588,667 2012-08-17

Publications (2)

Publication Number Publication Date
WO2014028355A2 true WO2014028355A2 (en) 2014-02-20
WO2014028355A3 WO2014028355A3 (en) 2014-06-19

Family

ID=50101581

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2013/054457 WO2014028355A2 (en) 2012-08-17 2013-08-12 Log-chromaticity clustering pipeline for use in an image process

Country Status (1)

Country Link
WO (1) WO2014028355A2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020009213A1 (en) * 1999-10-08 2002-01-24 Rowe Robert K. Apparatus and method of biometric identification or verification of individuals using optical spectroscopy
US20050248571A1 (en) * 2004-05-07 2005-11-10 Mctaggart Gary M System and method for displaying the effects of light illumination on a surface
US20070242878A1 (en) * 2006-04-13 2007-10-18 Tandent Vision Science, Inc. Method and system for separating illumination and reflectance using a log color space
US20090161950A1 (en) * 2007-08-01 2009-06-25 Tandent Vision Science, Inc. Image segregation system with method for handling textures
US20120183213A1 (en) * 2009-09-03 2012-07-19 National Ict Australia Limited Illumination spectrum recovery

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020009213A1 (en) * 1999-10-08 2002-01-24 Rowe Robert K. Apparatus and method of biometric identification or verification of individuals using optical spectroscopy
US20050248571A1 (en) * 2004-05-07 2005-11-10 Mctaggart Gary M System and method for displaying the effects of light illumination on a surface
US20070242878A1 (en) * 2006-04-13 2007-10-18 Tandent Vision Science, Inc. Method and system for separating illumination and reflectance using a log color space
US20090161950A1 (en) * 2007-08-01 2009-06-25 Tandent Vision Science, Inc. Image segregation system with method for handling textures
US20120183213A1 (en) * 2009-09-03 2012-07-19 National Ict Australia Limited Illumination spectrum recovery

Also Published As

Publication number Publication date
WO2014028355A3 (en) 2014-06-19

Similar Documents

Publication Publication Date Title
EP2356614B1 (en) A constraint generator for use in image segregation
US8139867B2 (en) Image segregation system architecture
US8983183B2 (en) Spatially varying log-chromaticity normals for use in an image process
US8559714B2 (en) Post processing for improved generation of intrinsic images
EP2638508B1 (en) System and method for identifying complex tokens in an image
US8260050B2 (en) Test bed for optimizing an image segregation
US20130342694A1 (en) Method and system for use of intrinsic images in an automotive driver-vehicle-assistance device
WO2010065087A1 (en) Solver for image segregation
US8249342B1 (en) Color analytics for a digital image
US8913829B2 (en) Automatic processing scale estimation for use in an image process
WO2012129000A1 (en) System and method for removing specularity from an image
US8934735B2 (en) Oriented, spatio-spectral illumination constraints for use in an image progress
US8428352B1 (en) Post processing for improved generation of intrinsic images
EP2776979B1 (en) Post processing for improved generation of intrinsic images
US8842907B2 (en) Method for performing a multi-clustering merge for use in an image process
US8849018B2 (en) Log-chromaticity clustering pipeline for use in an image process
US8811732B2 (en) Weighted entropy minimization for optimizing a log-chromaticity normal for use in an image process
US8655099B2 (en) Relationship maintenance in an image process
WO2014028355A2 (en) Log-chromaticity clustering pipeline for use in an image process
US8879836B2 (en) System and method for identifying complex tokens in an image

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: 13829211

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13829211

Country of ref document: EP

Kind code of ref document: A2