WO2010013291A1 - 画像分割装置および画像分割方法 - Google Patents

画像分割装置および画像分割方法 Download PDF

Info

Publication number
WO2010013291A1
WO2010013291A1 PCT/JP2008/002066 JP2008002066W WO2010013291A1 WO 2010013291 A1 WO2010013291 A1 WO 2010013291A1 JP 2008002066 W JP2008002066 W JP 2008002066W WO 2010013291 A1 WO2010013291 A1 WO 2010013291A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixels
weight
connection weight
determined
hue
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/JP2008/002066
Other languages
English (en)
French (fr)
Inventor
ハンス ユルゲン マタウシュ
小出哲士
山岡功佑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hiroshima University NUC
Original Assignee
Hiroshima University NUC
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
Application filed by Hiroshima University NUC filed Critical Hiroshima University NUC
Priority to US12/601,595 priority Critical patent/US7853075B2/en
Priority to PCT/JP2008/002066 priority patent/WO2010013291A1/ja
Priority to JP2008542958A priority patent/JP4229980B1/ja
Publication of WO2010013291A1 publication Critical patent/WO2010013291A1/ja
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 relates to an image dividing device and an image dividing method.
  • the image region dividing device includes an image input unit, a normalization processing unit, a saturation detection unit, a hue difference detection unit, a feature amount calculation unit, and a binarization processing unit.
  • the image input unit captures a color image, generates a target image to be subject to region division from the captured image, and indicates an R (red) component, a G (green) component, and a B (blue) component of the target image, respectively.
  • the R image, the G image, and the B image are output to the normalization processing unit.
  • the normalization processing unit takes in the three R, G, and B images output from the image input unit, and for each pixel of the target image, normalizes the R, G, and B components with brightness, Convert to Y component. Then, the normalization processing unit generates an X image in which each pixel value of the target image is an X component and a Y image in which each pixel value of the target image is a Y component, and the generated X image and Y image are Output to the saturation detector and the hue difference detector.
  • the saturation detection unit takes in the X image and Y image output from the normalization processing unit, calculates the saturation of each pixel of the target image from the X component and the Y component, and calculates the value of each pixel of the target image A saturation image as saturation is output to the feature amount calculation unit.
  • Hue detection unit captures an X image and the Y image output from the normalization processing unit obtains the hue of each pixel of the target image from the X and Y components, calculated hue difference between the hue theta c chromatic region To do. Then, the hue detection unit outputs a hue difference image having the value of each pixel of the target image as the calculated hue difference to the feature amount calculation unit.
  • the binarization processing unit When the binarization processing unit receives the feature amount image from the feature amount calculation unit, the binarization processing unit binarizes the feature amount image. Then, the binarization processing unit outputs, as the achromatic color region, the smaller feature amount of the two regions divided by binarization, and outputs the larger feature amount as the chromatic color region.
  • the conventional image region dividing apparatus uses the saturation at each point of the input image and the hue difference between the hue at each point of the input image and the hue of the chromatic color region as an achromatic region. And a chromatic color area are obtained, and the input image is divided into an achromatic color area and a chromatic color area using the obtained feature quantity.
  • the conventional image region dividing device divides an image using the saturation of each pixel of the input image and the hue difference between the hue of each pixel and the hue of the chromatic color region, the target to be divided When an object consists of an achromatic color, there exists a problem that it is difficult to divide
  • the image dividing device includes a connection weight determining circuit and an image dividing device.
  • the connection weight determination circuit determines a first connection weight that is a connection weight between the two pixels using the RGB values of the two pixels, and determines one of the two pixels. Is achromatic, a second coupling weight smaller than the first coupling weight is determined as a coupling weight between two pixels, and when both of the two pixels are chromatic colors, the first coupling weight or more is determined.
  • a connection weight determination process for determining the third connection weight as a connection weight between two pixels is executed for each pixel of one frame.
  • the image dividing circuit divides one frame into images of the respective objects based on the first to third connection weights determined by the connection weight determination circuit.
  • the connection weight determination circuit calculates the first and second saturations of the two pixels based on the RGB values of the two pixels, and calculates the calculated first and second saturations as an achromatic color and a chromatic color. It is determined whether the two pixels consist of an achromatic color or a chromatic color compared to a threshold value indicating the boundary of the two, and one of the first to third combination weights is determined based on the determination result as two pixels You may determine as a connection weight between.
  • the combination weight determination circuit may calculate the first and second saturations of the two pixels based on the RGB values of the two pixels using an adder and a shifter.
  • the combination weight determination circuit determines that both of the two pixels are achromatic when both of the calculated first and second saturations are equal to or less than the threshold value, and one of the first and second saturations is determined. Is less than or equal to the threshold value, it is determined that one of the two pixels is an achromatic color and the other of the two pixels is a chromatic color, and both the first and second saturations are less than the threshold value. May be determined that both of the two pixels are chromatic colors.
  • the connection weight determination circuit determines the first connection weight using only the RGB values of the two pixels, and one of the two pixels is achromatic. And when it is determined that the other of the two pixels has a chromatic color, the second combination weight is determined using the RGB value and saturation of the two pixels, and when it is determined that both of the two pixels have a chromatic color
  • the third coupling weight may be determined using the RGB values and hues of the two pixels.
  • the connection weight determination circuit calculates the first connection weight using only RGB values, and calculates when one of the two pixels is an achromatic color and the other of the two pixels is a chromatic color.
  • the third coupling weight may be determined by increasing the first coupling weight according to the hue difference that is the difference in hue between the two pixels.
  • connection weight determination circuit calculates the first and second hues of the two pixels based on the RGB values of the two pixels, and calculates the calculated first Alternatively, the difference between the second hues may be calculated as a hue difference, and the third combination weight may be determined using the calculated hue difference.
  • the combination weight determination circuit may calculate the first and second hues of the two pixels based on the RGB values of the two pixels using an adder and a shifter.
  • connection weight determination circuit determines from the first connection weight.
  • the second combination weight is determined with a relatively small reduction amount, and when the saturation difference is relatively large, the decrease amount from the first combination weight is set to a relatively large third combination weight. May be determined.
  • the connection weight determination circuit holds a correspondence table of RGB value differences, saturation differences, and corrected connection weights that are reduced from the first connection weight according to the saturation difference.
  • a corrected connection weight corresponding to the calculated saturation difference may be extracted from the correspondence table, and the extracted corrected connection weight may be determined as the second connection weight.
  • a third connection weight may be determined by setting a value equal to or greater than one connection weight.
  • the connection weight determination circuit may determine the first connection weight as the third connection weight when the difference between the RGB values of the two pixels indicates that it is not affected by light reflection.
  • the connection weight determination circuit holds a correspondence table of the RGB value difference, the hue difference, and the corrected connection weight that is increased from the first connection weight according to the hue difference.
  • the difference in RGB value indicates that it is affected by the reflection of light
  • the corrected combination weight corresponding to the calculated hue difference is extracted from the correspondence table, and the extracted
  • the corrected coupling weight may be determined as the third coupling weight.
  • the image dividing method also includes a first step of receiving the RGB values of the two pixels and a second step of calculating the first and second hues of the two pixels based on the received RGB values of the two pixels.
  • the third step of calculating the first and second saturations of the two pixels based on the received RGB values of the two pixels, and the absence of both the first and second saturations.
  • both the first and second saturations are equal to or less than the threshold value in the fourth step.
  • the first and second in the fifth step of determining the first coupling weight that is the coupling weight between the two pixels using only the RGB values of the two pixels When it is determined that one of the saturations is below the threshold, A sixth step of determining, as a connection weight between the two pixels, a second connection weight smaller than the first connection weight using the RGB values of the one pixel and the first and second saturations; In step 4, when it is determined that both the first and second saturations are larger than the threshold, the first and second hues are used to determine the first
  • a seventh step of determining a third connection weight equal to or higher than the connection weight as a connection weight between two pixels, and a first step to a seventh step are executed for all the pixels included in one frame. And a ninth step of dividing one frame into images of each object based on the first to third combination weights determined by executing the eighth step.
  • the sixth step is a first sub-step of calculating the first combination weight using only RGB values, and the calculated first combination weight according to a saturation difference which is a difference in saturation between two pixels. And a second sub-step for determining a second coupling weight by reducing the second coupling weight.
  • the seventh step is a third sub-step of calculating the first combination weight using only RGB values, and the first step of calculating when the two pixels are affected by light reflection.
  • a fifth sub-step of determining the calculated first coupling weight as the third coupling weight may be included.
  • the second connection weight may be determined by relatively increasing the amount of decrease from the first connection weight.
  • the pixel affected by the reflection of light may be a pixel in which the difference between the RGB values of the two pixels exists between the first value and the second value that is larger than the first value.
  • connection weight between two pixels is determined as the first connection weight using the RGB values of the two pixels when both of the two pixels are achromatic, and when one of the two pixels is achromatic.
  • the second combination weight is smaller than the first combination weight, and when both of the two pixels are chromatic, the third combination weight is determined to be equal to or greater than the first combination weight.
  • image division is performed based on the determined connection weight. As a result, region growth is suppressed in the image division in the image having the connection weight of the second connection weight, and region growth is promoted in the image division in the image having the connection weight of the third connection weight.
  • a region having a saturation difference is identified and extracted, and regions having the same hue are extracted as the same region.
  • an input image made up of color images can be accurately divided into images of each object.
  • FIG. 2 It is a schematic block diagram which shows the structure of the image division
  • FIG. 7 is a diagram in which an 8-bit gray image is obtained by normalizing a value (0 to 360 degrees) obtained by converting the RGB value of the sample image illustrated in FIG. 6 into a Hue value using Expression (1) to 256 gradations.
  • FIG. 8 is a diagram in which a value (0 to 360 degrees) converted from the RGB value of the sample image shown in FIG. 7 into a Hue value using Expression (1) is normalized to 256 gradations to obtain an 8-bit gray image.
  • FIG. 7 is a diagram in which an 8-bit gray image is obtained by normalizing a value (range 0 to 1) obtained by converting the RGB value of the sample image illustrated in FIG.
  • FIG. 8 is a diagram in which a value (range 0 to 1) converted from the RGB value of the sample image shown in FIG. 7 into an S value using Expression (2) is normalized to 256 gradations to obtain an 8-bit gray image.
  • It is a block diagram of the hue (Hue) bin. It is the schematic which shows the structure of the hue conversion circuit contained in the HS conversion circuit shown in FIG. It is a block diagram of the bin of saturation (S).
  • FIG. 3 is a schematic diagram illustrating a configuration of a saturation conversion circuit included in the HS conversion circuit illustrated in FIG. 2. It is a figure for demonstrating the method of determining a connection weight. It is a figure which shows the influence on the pixel value by reflection.
  • FIG. 1 is a schematic block diagram showing a configuration of an image dividing apparatus according to an embodiment of the present invention.
  • an image dividing device 10 according to an embodiment of the present invention includes a pixel value detecting circuit 1, a connection weight determining circuit 2, and an image dividing circuit 3.
  • the pixel value detection circuit 1 receives an input image of one frame, detects an R component, a G component, and a B component of each pixel of the received input image, and converts the detected R component, G component, and B component into RGB values. Is output to the connection weight determination circuit 2.
  • connection weight determination circuit 2 receives RGB values from the pixel value detection circuit 1, and determines connection weights between the pixels in a plurality of pixels constituting one frame based on the received RGB values by a method described later. Then, the determined combination weight is output to the image dividing circuit 3.
  • the image dividing circuit 3 receives an input image from the outside and receives a connection weight from the connection weight determination circuit 2. Then, the image dividing circuit 3 divides the input image composed of one frame into the images of the respective objects by the region growing type image dividing method using the received connection weight.
  • this region growing type image dividing method for example, a leader cell is determined from 3 ⁇ 3 pixels, and a region is grown from the determined leader cell region to a surrounding pixel region having a relatively large coupling weight. Is a method of dividing the image by repeating until no leader cell exists.
  • FIG. 2 is a schematic diagram showing the configuration of the connection weight determination circuit 2 shown in FIG.
  • the coupling weight determination circuit 2 includes D latch circuits 21, 22, 24, 26, 27, 29, FIFO circuits 23, 28, an HS conversion circuit 25, selectors 30, 31, And weight calculation units 32 to 35.
  • the D latch circuit 21 receives the RGB value from the pixel value detection circuit 1, latches the received RGB value, and outputs the latched RGB value to the D latch circuit 22 and the weight calculation units 33 and 35.
  • the D latch circuit 22 receives the RGB value from the D latch circuit 21, latches the received RGB value, and outputs the latched RGB value to the FIFO circuit 23, the weight calculation unit 32, and the selectors 30 and 31.
  • the FIFO circuit 23 receives the RGB value from the D latch circuit 22, holds the received RGB value for one clock, and then outputs the RGB value to the D latch circuit 24, the weight calculation unit 32, and the selectors 30, 31. To do.
  • the D latch circuit 24 latches the RGB value received from the FIFO circuit 23 and outputs the latched RGB value to the weight calculation units 33 and 34.
  • the HS conversion circuit 25 receives the RGB values from the pixel value detection circuit 1 and converts the received RGB values into hue and saturation by a method described later. Then, the HS conversion circuit 25 outputs the converted hue and saturation to the D latch circuit 26.
  • the D latch circuit 26 receives the hue and saturation from the HS conversion circuit 25, latches the received hue and saturation, and outputs the latched hue and saturation to the D latch circuit 27 and the weight calculation units 33 and 35. To do.
  • the D latch circuit 27 receives the hue and saturation from the D latch circuit 26, latches the received hue and saturation, and uses the latched hue and saturation as the FIFO circuit 28, the weight calculation unit 32, and the selector 30, To 31.
  • the FIFO circuit 28 receives the hue and saturation from the D latch circuit 27, holds the received hue and saturation for one clock, and then stores the hue and saturation in the D latch circuit 29, the weight calculation unit 32, and the selection. To the devices 30 and 31.
  • the D latch circuit 29 receives the hue and saturation from the FIFO circuit 28, latches the received hue and saturation, and outputs the latched hue and saturation to the weight calculation units 33 and 34.
  • the selector 30 receives RGB values from the D latch circuit 22 and the FIFO circuit 23 and receives hue and saturation from the D latch circuit 27 and the FIFO circuit 28. Then, the selector 30 selects the RGB value received from the FIFO circuit 23 and the hue and saturation received from the FIFO circuit 28 and outputs them to the weight calculation unit 34.
  • the selector 31 receives RGB values from the D latch circuit 22 and the FIFO circuit 23 and receives hue and saturation from the D latch circuit 27 and the FIFO circuit 28. The selector 31 selects the RGB value received from the D latch circuit 22 and the hue and saturation received from the D latch circuit 27 and outputs them to the weight calculation unit 35.
  • the selector 31 selects the FIFO circuit 23.
  • the RGB values received from, and the hue and saturation received from the FIFO circuit 28 are selected and output to the weight calculation unit 35.
  • the weight calculation unit 32 receives RGB values from the D latch circuit 22 and the FIFO circuit 23 and receives hue and saturation from the D latch circuit 27 and the FIFO circuit 28. Then, the weight calculation unit 32 uses the RGB value received from the D latch circuit 22 and the hue and saturation received from the D latch circuit 27 as the RGB value, hue and saturation (RGB3, HS3) corresponding to one pixel GE3. Let the RGB value received from the FIFO circuit 23 and the hue and saturation received from the FIFO circuit 28 be the RGB value, hue and saturation (RGB2, HS2) corresponding to another pixel GE2.
  • the weight calculation unit 32 performs the pixel GE2 and the pixel GE3 on the basis of the RGB value, the hue and the saturation (RGB3, HS3), and the pixel GE2 and the pixel GE3 by a method described later based on the RGB value, the hue and the saturation (RGB2, HS2). Is calculated, and the calculated connection weight is output to the image dividing circuit 3.
  • the weight calculation unit 33 receives RGB values from the D latch circuits 21 and 24 and receives hue and saturation from the D latch circuits 26 and 29. Then, the weight calculation unit 33 uses the RGB value received from the D latch circuit 21 and the hue and saturation received from the D latch circuit 26 as the RGB value, hue and saturation (RGB4, HS4) corresponding to one pixel GE4. The RGB value received from the D latch circuit 24 and the hue and saturation received from the D latch circuit 29 are set as the RGB value, hue and saturation (RGB1, HS1) corresponding to another pixel GE1.
  • the weight calculation unit 33 performs the pixel GE1 and the pixel GE4 on the basis of the RGB value, the hue and the saturation (RGB4, HS4) and the RGB value, the hue and the saturation (RGB1, HS1) by a method described later. Is calculated, and the calculated connection weight is output to the image dividing circuit 3.
  • the weight calculation unit 34 receives RGB values from the D latch circuit 24, receives hue and saturation from the D latch circuit 29, and receives RGB values, hue and saturation from the selector 30. Then, the weight calculation unit 34 uses the RGB value received from the D latch circuit 24 and the hue and saturation received from the D latch circuit 29 as the RGB value, hue and saturation (RGB1, HS1) corresponding to one pixel GE1.
  • the RGB value, hue, and saturation received from the selector 30 are the RGB value, hue, and saturation (RGB2, HS2) corresponding to another pixel GE2.
  • the weight calculation unit 34 uses the RGB value, hue, and saturation (RGB1, HS1) and the RGB value, hue, and saturation (RGB2, HS2) to perform the pixel GE1 and the pixel GE2 according to the method described later. Is calculated, and the calculated connection weight is output to the image dividing circuit 3.
  • the weight calculation unit 35 receives RGB values from the D latch circuit 21, receives hue and saturation from the D latch circuit 26, and receives RGB values, hue and saturation from the selector 31. Then, the weight calculation unit 35 uses the RGB value received from the D latch circuit 21 and the hue and saturation received from the D latch circuit 26 as RGB values corresponding to one pixel GE4, hue and saturation (RGB4, HS4).
  • the RGB value, hue, and saturation received from the selector 31 are the RGB value, hue, and saturation (RGB3, HS3) corresponding to another pixel GE3.
  • the weight calculation unit 35 performs the pixel GE3 and the pixel GE4 on the basis of the RGB value, hue and saturation (RGB4, HS4) and the RGB value, hue and saturation (RGB3, HS3) by a method described later. Is calculated, and the calculated connection weight is output to the image dividing circuit 3.
  • FIG. 3 is a conceptual diagram when the connection weight determination circuit 2 shown in FIG. 2 determines connection weights.
  • FIG. 4 is another conceptual diagram when the connection weight determination circuit 2 shown in FIG. 2 determines connection weights.
  • the connection weight determination circuit 2 determines connection weights in the pixels GE1 to GE4 arranged in 2 rows and 2 columns in one cycle.
  • the weight calculation unit 32 receives the RGB value RGB2 of the pixel GE2 from the FIFO circuit 23, and the hue of the pixel GE2 from the FIFO circuit 28.
  • the RGB value RGB3 of the pixel GE3 is received from the D latch circuit 22, and the hue and saturation HS3 of the pixel GE3 are received from the D latch circuit 27.
  • the weight calculation unit 33 receives the RGB value RGB1 of the pixel GE1 from the D latch circuit 24, receives the hue and saturation HS1 of the pixel GE1 from the D latch circuit 29, and receives the RGB value RGB4 of the pixel GE4 from the D latch circuit 21.
  • the D latch circuit 26 receives the hue and saturation HS4 of the pixel GE4.
  • the weight calculation unit 34 receives the RGB value RGB1 of the pixel GE1 from the D latch circuit 24, receives the hue and saturation HS1 of the pixel GE1 from the D latch circuit 29, and receives the RGB value RGB2 of the pixel GE2 from the selector 30; It receives the hue and saturation HS2 of the pixel GE2.
  • the weight calculation unit 35 receives the RGB value RGB4 of the pixel GE4 from the D latch circuit 21, receives the hue and saturation HS4 of the pixel GE4 from the D latch circuit 26, and receives the RGB value RGB3 of the pixel GE3 from the selector 31. It receives the hue and saturation HS3 of the pixel GE3.
  • the weight calculation units 32 to 35 synchronize the RGB values, hues and saturations of the pixels GE2 and GE3, the RGB values, hues and saturations of the pixels GE1 and GE4, and the RGB values of the pixels GE1 and GE2, respectively. Receives hue and saturation and RGB values, hue and saturation of pixels GE3 and GE4. Then, the weight calculation unit 32 determines and outputs the coupling weight between the pixel GE2 and the pixel GE3, and the weight calculation unit 33 determines and outputs the coupling weight between the pixel GE1 and the pixel GE4, and the weight calculation unit 34. Determines and outputs the coupling weight between the pixel GE1 and the pixel GE2, and the weight calculation unit 35 determines and outputs the coupling weight between the pixel GE3 and the pixel GE4.
  • the weight calculation units 32 to 35 determine and output the four connection weights shown in FIG. 3 in one cycle.
  • the weight calculation unit 32 to 35 determines and outputs the four connection weights shown in FIG. 4 in one cycle.
  • connection weight determination circuit 2 uses the RGB values, hues, and saturations of the four pixels arranged in 2 rows and 2 columns, and the 4 pixels arranged in 2 rows and 2 columns in one cycle. Determine the four connection weights in between.
  • connection weight determination circuit 2 determines the connection weight between two pixels using the RGB value, hue, and saturation of each pixel, and the reason will be described below.
  • RGB values hue and saturation are used in order to determine the connection weight between pixels, in addition to the RGB color space, hue (H: Hue), saturation (S: Saturation). ) And luminance (V: Value) is introduced.
  • the hue (H) is an element representing a color type such as R, G, B, and the like.
  • the saturation (S) is an element representing the vividness of the color, and is “0” for an achromatic color (black-gray-white).
  • luminance (V) is an element representing brightness.
  • FIG. 5 is a conceptual diagram of the HSV color space.
  • the HSV color space has a conical shape.
  • the hue (H) is drawn on an annular CRC at the bottom of the conical shape, and is represented in the range of 0 degrees to 360 degrees.
  • FIG. 5 shows a hue with red as a reference (0 degree), and red (255, 0, 0), green (0, 255, 0), and blue (0, 0, 0) in the RGB color space. 255) corresponds to a hue of 0 degrees, a hue of 120 degrees, and a hue of 240 degrees, respectively.
  • S Saturation
  • V luminance
  • the achromatic color has no hue (H) and saturation (S).
  • Equation (1) MAX represents the maximum value of the R value, G value, and B value, and MIN represents the minimum value of the R value, G value, and B value.
  • hue (H) is not defined. This is when the R value, the G value, and the B value are all equal, and because it represents an achromatic color and is around the gray straight line at the center of the cone, the Hue value at that time has no meaning. .
  • FIG. 6 is a diagram illustrating an image used for image evaluation based on hue and saturation.
  • FIG. 7 is a diagram showing another image used for image evaluation based on hue and saturation.
  • FIG. 6 shows an image including an area with low contrast
  • FIG. 7 shows an image including disturbance reflection
  • FIG. 8 is a diagram showing a result of dividing the region X shown in FIG. 6 and a result of dividing the region Y shown in FIG.
  • FIG. 9 is a diagram for explaining a problem in the conventional image division.
  • connection weight W ij; kl between two pixels is calculated by the following equations (4) and (5) using only the RGB value of each pixel.
  • connection weight W ij; kl a similarity between pixels
  • the connection weight W ij; kl is obtained by substituting the three connection weights calculated for red, green, and blue using the equation (4) into the equation (5) to obtain the three weights for red, green, and blue.
  • the connection weights the smallest one is determined as a connection weight W ij; kl between pixels.
  • the combination weights using the RGB color space do not consider the color of the pixel.
  • FIG. 9A is a graph showing an area having gradation change in units of pixels and a change in the combination weight of the gradation area when the horizontal axis is the x-axis and the vertical axis is the combination weight.
  • connection weights are also equal. If the connection weight of neighboring pixels is equal to or greater than the threshold value ⁇ z used for region growth, the region continues to expand in the direction of the arrow.
  • the sample image shown in FIG. 6 has a low contrast, a shadow is generated at the boundary due to the overlap between the desk and the human, a clear edge does not appear between the desk area and the person area, and the color smoothly changes between the two areas. This is a gradation image. Therefore, it is difficult to divide a desk and a person using the conventional image division method using an edge (see FIG. 8).
  • FIG. 10 is a diagram showing an 8-bit gray image obtained by normalizing the values (0 to 360 degrees) converted from the RGB values of the sample image shown in FIG. .
  • FIG. 11 is a diagram showing an 8-bit gray image obtained by normalizing the value (0 to 360 degrees) converted from the RGB value of the sample image shown in FIG. It is.
  • the results of evaluating the influence on the image when the D MAX-MIN value is increased by “5” from “0” are the results shown in FIGS.
  • FIG. 12 is a diagram in which the value (range 0 to 1) obtained by converting the RGB value of the sample image shown in FIG. 6 into the S value using Expression (2) is normalized to 256 gradations to obtain an 8-bit gray image. is there.
  • FIG. 13 shows an 8-bit gray image obtained by normalizing the value (range 0 to 1) obtained by converting the RGB value of the sample image shown in FIG. 7 into the S value using Expression (2) to 256 gradations.
  • FIG. 12 is a diagram in which the value (range 0 to 1) obtained by converting the RGB value of the sample image shown in FIG. 6 into the S value using Expression (2) is normalized to 256 gradations to obtain an 8-bit gray image. is there.
  • FIG. 13 shows an 8-bit gray image obtained by normalizing the value (range 0 to 1) obtained by converting the RGB value of the sample image shown in FIG. 7 into the S value using Expression (2) to 256 gradations.
  • FIG. 12 is a diagram in which the value (range 0 to 1) obtained by
  • FIG. 12 and FIG. 13 show the influence on the image when the saturation (S) as the threshold value is changed from 0 to 50 in increments of 10.
  • the images shown in FIGS. 12 and 13 are binary with a pixel having a saturation (S) smaller than the threshold value as white (255) and a pixel having a saturation greater than the threshold value as black (0). This is a converted image.
  • a pixel having a saturation (S) value smaller than 50 is treated as an achromatic color
  • a pixel having a saturation (S) value of 50 or more is treated as a chromatic color. Good results were obtained regarding the discrimination from chromatic areas. Other sample images were also evaluated, but good results were obtained when the saturation threshold was set near 50.
  • the HSV color space is not suitable for image segmentation of achromatic areas. This is because, as can be seen from FIG. 5, when the saturation is low, the hue can hardly be identified, and the Hue value has no meaning.
  • the color weight between the RGB values and the HSV values is used to determine the connection weight between the pixels, and the color regions that each color space is not good at complement each other. is there.
  • the HS conversion circuit 25 generally uses the expressions (1) and (2) to calculate the RGB. Convert values to Hue (H) and Saturation (S).
  • each of R, G, and B is 8-bit data
  • a large-capacity memory of ((2 8 ) 3 ⁇ 9) bits is necessary, and the circuit area of the decoder is increased. .
  • the calculation result is limited to the number of bins by dividing H (0 to 360 degrees) and S (0 to 1) into a plurality of bins (regions), and then the table is displayed.
  • the hue (H) and the saturation (S) are obtained by referring to them. According to this method, it is possible to realize a conversion circuit from RGB values to HSV values with a reduced circuit area without using any divider.
  • FIG. 14 is a block diagram of a hue (Hue) bin.
  • the hue (Hue) bin configuration includes a three-stage configuration, and a 360-degree Hue value is configured by 90 bins.
  • MIN is determined, and it is determined whether the fractional part of the expression corresponding to the MAX condition is positive or negative from Expression (1).
  • the fractional part is negative, it becomes “0”, and when the fractional part is positive, it becomes “1” (second stage).
  • the pixel of interest corresponds to the third bin.
  • MED represents any value of R, G, B other than MAX and MIN, that is, an intermediate value.
  • the bin number is determined from the formation result (1,0) of the 14 inequalities generated when the value of X in the expression (7) is changed from 1 to 14.
  • FIG. 15 is a schematic diagram showing a configuration of a hue conversion circuit included in the HS conversion circuit 25 shown in FIG.
  • the HS conversion circuit 25 includes a hue conversion circuit 250 shown in FIG.
  • hue conversion circuit 250 includes a determination circuit 251, data generation circuits 252 and 253, a switch 254, comparison circuits 255 to 268, and an encoder 269.
  • the determination circuit 251 receives the RGB value of each pixel from the pixel value detection circuit 1, and determines the maximum value MAX, the minimum value MIN, and the intermediate value MED of the received RGB value. Then, the determination circuit 251 outputs the determined maximum value MAX to the data generation circuit 252, outputs the intermediate value MED to the data generation circuit 253, and outputs the minimum value MIN to the data generation circuits 252 and 253.
  • the data generation circuit 253 receives the intermediate value MED and the minimum value MIN from the determination circuit 251 and calculates 15 ⁇ (MED ⁇ MIN) based on the received intermediate value MED and minimum value MIN. 15 ⁇ (MED-MIN) is output to the switch 254. That is, the data generation circuit 253 calculates A on the left side of Expression (7) and outputs the calculated A to the switch 254.
  • the switch 254 outputs 1 ⁇ (MAX ⁇ MIN) and 15 ⁇ (MED ⁇ MIN) to the comparison circuit 255, and outputs 2 ⁇ (MAX ⁇ MIN) and 15 ⁇ (MED ⁇ MIN) to the comparison circuit 256. Thereafter, 14 ⁇ (MAX-MIN) and 15 ⁇ (MED-MIN) are output to the comparison circuit 268 in the same manner.
  • the comparison circuit 255 receives 1 ⁇ (MAX-MIN) and 15 ⁇ (MED-MIN) from the switch 254, and compares 1 ⁇ (MAX-MIN) with 15 ⁇ (MED-MIN). Then, the comparison circuit 255 outputs the comparison result to the encoder 269. More specifically, the comparison circuit 255 outputs “1” to the encoder 269 when 15 ⁇ (MED ⁇ MIN) ⁇ 1 ⁇ (MAX ⁇ MIN) is established, and 15 ⁇ (MED ⁇ MIN) ⁇ 1. When x (MAX-MIN) is not established, “0” is output to the encoder 269.
  • the comparison circuit 256 receives 2 ⁇ (MAX-MIN) and 15 ⁇ (MED-MIN) from the switch 254, and compares 2 ⁇ (MAX-MIN) with 15 ⁇ (MED-MIN). Then, the comparison circuit 256 outputs the comparison result (1 or 0) to the encoder 269.
  • the comparison circuit 268 receives 14 ⁇ (MAX-MIN) and 15 ⁇ (MED-MIN) from the switch 254, and compares 14 ⁇ (MAX-MIN) with 15 ⁇ (MED-MIN). . Then, the comparison circuit 268 outputs the comparison result (1 or 0) to the encoder 269.
  • the comparison circuits 255 to 268 compare X ⁇ (MAX-MIN) with 15 ⁇ (MED-MIN) in parallel, and output the comparison result to the encoder 269. Therefore, encoder 269 receives 14-bit data indicating the comparison result from comparison circuits 255-268.
  • the encoder 269 receives the comparison result of 14 bits from the comparison circuits 255 to 268 and determines the bin number based on the received comparison result of 14 bits. More specifically, when the encoder 269 receives the comparison result of [01000000000000] from the comparison circuits 255 to 268, the encoder 269 determines the bin number as “2” and the comparison result of [000000000000] from the comparison circuits 255 to 268. When received, the bin number is determined to be “10”. The encoder 269 determines the bin number as “15” when receiving the comparison result of “00000000000000” consisting of all “0” from the comparison circuits 255-268.
  • the encoder 269 outputs the determined bin number to the D latch circuit 26 as a hue bin number.
  • each of the data generation circuits 252 and 253 is added. This can be realized by a simple circuit using a shifter and a shifter.
  • FIG. 16 is a block diagram of a chroma (S) bin.
  • saturation (S) in the range of 0 to 0.1 is assigned to 1 bin
  • saturation (S) in the range of 0.1 to 0.15 is assigned to 2 bins.
  • Saturation (S) in the range of 0.15 to 0.1625 is assigned to 3 bins
  • Saturation (S) in the range of 0.1625 to 0.1750 is assigned to 4 bins.
  • Saturation (S) in the range of 0.1750 to 0.1875 is assigned to 5 bins
  • saturation (S) in the range of 0.1875 to 0.2 is assigned to 6 bins.
  • saturation (S) in the range of 0.2 to 0.2125 is assigned to 7 bins
  • saturation (S) in the range of 0.2125 to 0.2250 is assigned to 8 bins
  • Saturation (S) in the range of 0.2250 to 0.2375 is assigned to 9 bins
  • saturation (S) in the range of 0.2375 to 0.25 is assigned to 10 bins.
  • Saturation (S) in the range of 25 to 0.30 is assigned to 11 bins
  • saturation (S) in the range of 0.3 to 1.0 is assigned to 12 bins.
  • the saturation (S) is assigned to a subdivided bin as it is near 0.2 which is the saturation boundary.
  • the conversion from RGB values to saturation (S) uses the same method as the conversion from RGB values to hue (H).
  • Equation (10) and Equation (11) are obtained, respectively.
  • FIG. 17 is a schematic diagram showing a configuration of a saturation conversion circuit included in the HS conversion circuit 25 shown in FIG.
  • the HS conversion circuit 25 includes a saturation conversion circuit 270 shown in FIG.
  • saturation conversion circuit 270 includes a determination circuit 271, data generation circuits 272 to 275, a switch 276, comparison circuits 277 to 288, and an encoder 289.
  • the determination circuit 271 receives the RGB values from the pixel value detection circuit 1, and determines the maximum value MAX and the minimum value MIN of the received RGB values. Then, the determination circuit 271 outputs the determined maximum value MAX to the data generation circuits 272 to 275, and outputs the determined minimum value MIN to the data generation circuits 274 and 275.
  • the data generation circuit 274 receives the maximum value MAX and the minimum value MIN from the determination circuit 271, calculates 20 ⁇ (MAX ⁇ MIN) using the received maximum value MAX and minimum value MIN, and calculates the calculated 20 ⁇ ( MAX-MIN) is output to the switch 276. That is, the data generation circuit 274 calculates C on the left side of Equation (10) and outputs the calculated C to the switch 276.
  • the data generation circuit 275 receives the maximum value MAX and the minimum value MIN from the decision circuit 271, calculates 80 ⁇ (MAX ⁇ MIN) using the received maximum value MAX and minimum value MIN, and calculates the calculated 80 ⁇ ( MAX-MIN) is output to the switch 276. That is, the data generation circuit 275 calculates E on the left side of Equation (11) and outputs the calculated E to the switch 276.
  • the switch 276 outputs 2 ⁇ MAX and 20 ⁇ (MAX ⁇ MIN) to the comparison circuit 277, outputs 3 ⁇ MAX and 20 ⁇ (MAX ⁇ MIN) to the comparison circuit 278, and outputs 6 ⁇ MAX and 20 ⁇ . (MAX-MIN) is output to the comparison circuit 279.
  • the switch 276 outputs 12 ⁇ MAX and 80 ⁇ (MAX ⁇ MIN) to the comparison circuit 280, and outputs 13 ⁇ MAX and 80 ⁇ (MAX ⁇ MIN) to the comparison circuit 281. 20 ⁇ MAX and 80 ⁇ (MAX ⁇ MIN) are output to the comparison circuit 288.
  • the comparison circuit 277 receives 2 ⁇ MAX and 20 ⁇ (MAX-MIN) from the switch 276, compares 2 ⁇ MAX with 20 ⁇ (MAX-MIN), and outputs the comparison result to the encoder 289. More specifically, the comparison circuit 277 outputs “1” to the encoder 289 when 20 ⁇ (MAX ⁇ MIN) ⁇ 2 ⁇ MAX is satisfied, and 20 ⁇ (MAX ⁇ MIN) ⁇ 2 ⁇ MAX is satisfied. When not, “0” is output to the encoder 289.
  • the comparison circuit 278 receives 3 ⁇ MAX and 20 ⁇ (MAX ⁇ MIN) from the switch 276, compares 3 ⁇ MAX with 20 ⁇ (MAX ⁇ MIN), and 20 ⁇ (MAX ⁇ MIN) ⁇ 3 ⁇ MAX. When “1” is satisfied, “1” is output to the encoder 289, and when 20 ⁇ (MAX ⁇ MIN) ⁇ 3 ⁇ MAX is not satisfied, “0” is output to the encoder 289.
  • the comparison circuit 279 receives 6 ⁇ MAX and 20 ⁇ (MAX ⁇ MIN) from the switch 276, compares 6 ⁇ MAX with 20 ⁇ (MAX ⁇ MIN), and 20 ⁇ (MAX ⁇ MIN) ⁇ 6. When ⁇ MAX is satisfied, “1” is output to the encoder 289, and when 20 ⁇ (MAX ⁇ MIN) ⁇ 6 ⁇ MAX is not satisfied, “0” is output to the encoder 289.
  • the comparison circuit 280 receives 12 ⁇ MAX and 80 ⁇ (MAX ⁇ MIN) from the switch 276, compares 12 ⁇ AMX with 80 ⁇ (MAX ⁇ MIN), and outputs the comparison result to the encoder 289. More specifically, the comparison circuit 280 outputs “1” to the encoder 289 when 80 ⁇ (MAX ⁇ MIN) ⁇ 12 ⁇ MAX is established, and 80 ⁇ (MAX ⁇ MIN) ⁇ 12 ⁇ MAX is established. When not, “0” is output to the encoder 289.
  • the comparison circuit 281 receives 13 ⁇ MAX and 80 ⁇ (MAX ⁇ MIN) from the switch 276, compares 13 ⁇ AMX with 80 ⁇ (MAX ⁇ MIN), and 80 ⁇ (MAX ⁇ MIN) ⁇ 13 ⁇ MAX is established. “1” is output to the encoder 289, and “0” is output to the encoder 289 when 80 ⁇ (MAX ⁇ MIN) ⁇ 13 ⁇ MAX is not satisfied.
  • the comparison circuit 288 receives 20 ⁇ MAX and 80 ⁇ (MAX ⁇ MIN) from the switch 276, compares 20 ⁇ AMX with 80 ⁇ (MAX ⁇ MIN), and 80 ⁇ (MAX ⁇ MIN). When ⁇ 20 ⁇ MAX is satisfied, “1” is output to the encoder 289, and when 80 ⁇ (MAX ⁇ MIN) ⁇ 20 ⁇ MAX is not satisfied, “0” is output to the encoder 289.
  • comparison circuits 277 to 288 perform the above-described comparison in parallel, and output the comparison result to the encoder 289 in parallel. Therefore, encoder 289 receives 12-bit data from comparison circuits 277-288.
  • the encoder 289 receives the comparison result of 12 bits from the comparison circuits 277 to 288, and determines the bin number based on the received comparison result of 12 bits. More specifically, when the encoder 289 receives the comparison result of [100000000000000] from the comparison circuits 277 to 288, the encoder 289 determines the bin number as “1” and the comparison result of [00000010000000] from the comparison circuits 277 to 288. When received, the bin number is determined to be “7”. The encoder 289 determines the bin number in the same manner when receiving the other 12-bit comparison results.
  • the encoder 289 outputs the determined bin number to the D latch circuit 26 as the S bin number.
  • the data generation circuit 272 calculates Y ⁇ MAX
  • the data generation circuit 273 calculates Z ⁇ MAX
  • the data generation circuit 274 calculates 20 ⁇ (MAX ⁇ MIN) to generate data. Since the circuit 275 calculates 80 ⁇ (MAX ⁇ MIN), each of the data generation circuits 272 to 275 can be realized by a simple circuit using an adder and a shifter.
  • FIG. 18 is a diagram for explaining a method of determining the connection weight.
  • the outer circle represents a hue (Hue), and takes saturation from the center in the circumferential direction.
  • a threshold value Sth of about 0.2 is suitable for separating a color region and a color close to an achromatic color whose hue can hardly be identified, 0.2 is defined as a saturation boundary.
  • the inner circle represents the boundary where the saturation is 0.2, the region where the saturation is lower than 0.2 is a color almost achromatic, and the region where the saturation is higher than 0.2 is Treat as a chromatic color.
  • x in the figure represents a pixel.
  • both of the two saturations S1 and S2 are equal to or smaller than the threshold value Sth, it is determined that the two pixels belong to the achromatic color region (in the case of FIG. 18A), and based on only the RGB value.
  • the connection weight between the two pixels is determined using equations (4) and (5).
  • the connection weight between the two pixels is determined using the RGB value and the saturation (S).
  • both of the two saturations S1 and S2 are larger than the threshold value Sth, it is determined that both of the two pixels belong to the chromatic color region (in the case of (c) in FIG. 18), and the RGB value and the hue are determined. (H) is used to determine the connection weight between the two pixels.
  • the leader cell is found in the person area of the sample image shown in FIG. 6, the area has grown in the desk area, and the area has expanded from the achromatic area to the color area.
  • the color region may grow from the achromatic region.
  • the division is difficult only with the RGB values.
  • the boundary between the achromatic color region and the chromatic color region is determined using the saturation (S), and the connection between the two pixels belonging to the boundary surface
  • S saturation
  • the combination weight in the direction of suppressing the growth of the region from the chromatic color region to the achromatic color region or from the achromatic color region to the chromatic color region.
  • the image division the growth of the region from the chromatic color region to the achromatic color region or from the achromatic color region to the chromatic color region is suppressed, and the image can be accurately divided even for an input image with low contrast.
  • the hue determination using the hue (H) is taken in.
  • determining the connection weight between pixels belonging to the chromatic color region first, the hue comparison between two pixels is performed, and whether or not the difference in hue is within a certain threshold value, that is, the two pixels have the same hue. Judgment is made as to whether or not the range is acceptable. Then, when it is determined that the hues are the same, when the combination weight determined from the RGB values is small (that is, when the difference is large in the RGB color space due to the influence of reflection or the like), the larger combination is performed in the direction of promoting the region. Give weight. Thereby, the pixels of the chromatic color region belonging to the similar hue are easily grown, and the regions where the luminance and saturation change due to reflection or the like can be extracted as one region.
  • connection weight is determined using only the RGB values according to the expressions (4) and (5), but the connection weight is calculated using the expressions (4) and (5).
  • the connection weight is determined by table mapping using a decoder. Table 1 shows a conversion table when determining the connection weight using only RGB values.
  • the conversion table shown in Table 1 shows the difference between the luminance I i, j and the luminance I k, l calculated using the RGB values of the two pixels of the target pixel (i, j) and the neighboring pixel (k, l).
  • and the connection weight is shown.
  • connection weight smaller than the connection weight obtained from the RGB color space using the conversion table of Table 1 is given in order to prevent the area from spreading.
  • the connection weight between pixels near the saturation boundary and the saturation boundary are completely eliminated.
  • the connection weight is determined so that the connection weight between the pixels having completely different saturations is not treated on the same basis.
  • FIG. 19 is a diagram illustrating the influence of the reflection on the pixel value.
  • FIG. 20 is a diagram illustrating a change in the achromatic pixel value when the saturation boundary is changed.
  • FIG. 19A shows the input image
  • An image binarized into a chromatic color (0) and a chromatic color (1) is shown
  • FIG. 19C shows a result of image division.
  • the same area is divided into a chromatic color area and an achromatic color area at the center of the image.
  • FIG. 19C the road is suppressed from growing at the saturation boundary, and the accuracy of the divided image is lower than when the RGB color space is used.
  • a curve k1 indicates a change in the number of achromatic pixels for an image including a color area in the image
  • a curve k2 indicates a change in the number of achromatic pixels for a gray image not including the color area in the image. Indicates.
  • the reduction amount of the connection weight is reduced, and the reduction amount of the connection weight is increased as the distance from the saturation boundary is increased. Thereby, the division accuracy of the gray area can be improved.
  • Table 2 shows a conversion table of connection weights in the case shown in FIG.
  • is 001x_xxxx, 0000_1xxx, 0000_01xx, 0000_001x, if a 0000_000X, binding weights, chroma difference
  • connection weight in the case shown in FIG. 18C will be described. It has been found that, in a color image, when there is no influence of reflection or the like, a highly accurate region division result can be obtained by determining the connection weight using the RGB color space. Therefore, it is preferable to optimize the coupling weight using the HSV color space only for the coupling weight between pixels affected by reflection.
  • FIG. 21 is a diagram illustrating the influence of irregular reflection of R, G, and B components.
  • FIG. 21A shows a sample image used for the evaluation
  • FIG. 21B shows the R, G, B values of the pixels on the line segment AB shown in FIG. 21A
  • FIG. 21 (c) shows changes in the R, G, B values of the pixels on the line segment CD shown in FIG. 21 (a). That is, (b) of FIG. 21 shows a change in the pixel value of the vehicle body region affected by light reflection, and (c) of FIG. 21 shows a pixel in the road region not affected by light reflection. Indicates a change in value.
  • the body region has a larger change in pixel value between consecutive pixels than the road region. Then, it was found from the sample image having the reflection area that the amount of change between the pixels due to the reflection of light is concentrated between 30 and 100. That is, it is determined that an area where the pixel value difference is very small, or conversely, an area where the pixel value difference is very large is not affected by light reflection.
  • the optimization of the coupling weight using the evaluation result of the hue (H) is limited to 01xxx_xxxx, 001x_xxxx, 0001_xxxx shown in Table 1, thereby maintaining the division accuracy of the color area based on the RGB values.
  • the accuracy can be improved by the hue (H).
  • FIG. 22 is a diagram showing a histogram of the Hue value of the red car body.
  • FIG. 23 is a diagram showing a histogram of Hue values for the body of a blue car.
  • is 4 degrees or less, 5 degrees or more and 8 degrees or less, and the other three determination conditions.
  • Table 3 the connection weight conversion table in the case shown in FIG.
  • FIG. 24 is a block diagram of the weight calculation unit 32 shown in FIG. Referring to FIG. 24, the weight calculation unit 32 includes a combination weight calculation circuit 320, a hue difference calculation circuit 330, a saturation difference calculation circuit 340, combination weight correction circuits 350 and 360, and a selector signal generation circuit 370. , And selector 380.
  • connection weight calculation circuit 320 calculates a connection weight between the two pixels using Table 1, and uses the calculated connection weight as the connection weight.
  • the data is output to the correction circuits 350 and 360 and the selector 380.
  • the combination weight calculation circuit 320 includes absolute value calculators 321, 323, 325, encoders 322, 324, 326, and a minimum value selection circuit 327.
  • the absolute value calculator 321 calculates the luminances I A (R) and I B (R) based on the two R values R A and R B received from the D latch circuit 22 and the FIFO circuit 23, and calculates luminance I a (R), the absolute value of the difference between I B (R)
  • the encoder 322 holds Table 1, and upon receiving the absolute value
  • the absolute value calculator 323 calculates the luminances I A (G) and I B (G) based on the two G values G A and G B received from the D latch circuit 22 and the FIFO circuit 23, and calculates luminance I a (G), the absolute value of the difference between I B (G)
  • the encoder 324 holds Table 1, and upon receiving the absolute value
  • the absolute value calculator 325 calculates the luminances I A (B) and I B (B) based on the two B values B A and B B received from the D latch circuit 22 and the FIFO circuit 23, and calculates The absolute value
  • the encoder 326 holds Table 1, and upon receiving the absolute value
  • the minimum value selection circuit 327 receives the combination weights WA , B (R), WA , B (G), WA , B (B) from the encoders 322, 324, 326, respectively, and receives the three combinations received.
  • the minimum connection weight WA , B is selected from the weights WA , B (R), WA , B (G), WA , B (B). Then, the minimum value selection circuit 327, and outputs the selected connection weight W A, a B to connection weight correction circuit 350, 360 and a selector 380.
  • the hue difference calculation circuit 330 holds the assignment map of the hue bin numbers shown in FIG. 14 and receives the hue bin number A and the hue bin number B from the D latch circuit 27 and the FIFO circuit 28, respectively.
  • the hue difference calculation circuit 330 refers to the assignment diagram of Hue bin number shown in FIG. 14, Hue values H A corresponding to the received Hue bin number A and Hue bin number B, and detects the H B. Then, the hue difference calculation circuit 330, the hue difference
  • the saturation difference calculation circuit 340 holds the S bin number assignment diagram shown in FIG. 16, and receives the S bin number A and the S bin number B from the D latch circuit 27 and the FIFO circuit 28, respectively. Then, the saturation difference calculation circuit 340 detects the S values S A and S B corresponding to the received S bin number A and S bin number B with reference to the S bin number assignment diagram shown in FIG. . Then, chroma difference calculation circuit 340, a chroma difference
  • the combination weight correction circuit 350 holds Table 3, receives the combination weights WA and B from the combination weight calculation circuit 320 , and receives the hue difference
  • connection weight W a corresponding to 0000_000X, extracting B _H from Table 3, and outputs the extracted connection weight W a, the B _H to the selector 380.
  • the connection weight correction circuit 350 determines whether or not the hue difference
  • connection weight correction circuit 350 the hue difference
  • if is not less than "4", the connection weight W A consisting of 4, extracts the B _H from Table 3, the extracted connection weight W A outputs B _H a ( 4) to the selector 380.
  • the connection weight correction circuit 350 determines whether or not the hue difference
  • if is equal to or less than "4", the connection weight W a of 32, extracts the B _H from Table 3, the extracted connection weight W a, B _H ( 32) is output to the selector 380. On the other hand, when the hue difference
  • the connection weight correction circuit 350 the hue difference
  • if is not less than "8”, the connection weight W A of 8, then extracted B _H from Table 3, the connection weight W A which the extracted outputs B _H a ( 8) to the selector 380.
  • the connection weight correction circuit 350 determines whether the hue difference
  • if is equal to or less than "4", the connection weight W a of 32, extracts the B _H from Table 3, the extracted connection weight W a, B _H ( 32) is output to the selector 380.
  • connection weight modification circuitry 350 is hue difference
  • if is not less than "4", the connection weight W A of 16, extracts the B _H from Table 3, the connection weight W A which the extracted , B_H ( 16) to the selector 380.
  • the combination weight correction circuit 360 holds Table 2 and receives the combination weights WA and B from the combination weight calculation circuit 320 and the saturation difference
  • connection weight correction circuit 360 a chroma difference
  • connection weight W a the absolute value matches the B
  • the connection weight correction circuit 360 further determines whether or not the saturation difference
  • the connection weights WA , B_S to be extracted are extracted from Table 2, and the extracted connection weights WA , B_S are output to the selector 380.
  • the connection weight correction circuit 360 further determines whether or not the saturation difference
  • the connection weights WA , B_S to be extracted are extracted from Table 2, and the extracted connection weights WA , B_S are output to the selector 380.
  • connection weight correction circuit 360 determines the absolute value
  • connection weight W a which correspond to and to extract B _S from Table 2, and outputs the extracted connection weight W a, the B _S to the selector 380.
  • selector signal generation circuit 370 compares the two detected S values S A and S B with threshold value Sth.
  • the selector signal generating circuit 370 two S values S A, when both S B is less than or equal to the threshold Sth, the connection weight W A received from the connection weight computing circuit 320, a selector for selecting the B A signal SEL_RGB is generated, and the generated selector signal SEL_RGB is output to the selector 380.
  • the selector signal generation circuit 370 selects the combination weight WA , B_S received from the combination weight correction circuit 360 when one of the two S values S A and S B is equal to or less than the threshold value Sth. Selector signal SEL_S is generated, and the generated selector signal SEL_S is output to the selector 380.
  • the selector signal generator circuit 370 includes two S values S A, when both S B is greater than the threshold value Sth, the connection weight W A received from the connection weight correction circuit 350, for selecting the B _H A selector signal SEL_H is generated, and the generated selector signal SEL_H is output to the selector 380.
  • the selector 380, the connection weight W A from the connection weight calculation circuit 320 receives the B, and from the connection weight correction circuit 350 and 360 connection weights W A, B _H, W A, receiving the B _S.
  • the selector 380 when the selector signal generating circuit 370 receives the selector signal SEL_RGB, select the connection weight W A, B, and outputs the selected connection weight W A, B as connection weight CW.
  • the selector 380 when the selector signal generating circuit 370 receives the selector signal SEL_S, connection weight W A, select B _S, and outputs the selected connection weight W A, the B _S as connection weight CW.
  • the selector 380, the selector signal generator circuit 370 receives a selector signal SEL_H, connection weight W A, select B _H, and outputs the selected connection weight W A, the B _H as connection weight CW.
  • Weight calculating unit 2 33 is made of the same configuration as the weight calculating unit 32 shown in FIG. 24, RGB values RGB A received from the D latch circuit 21, 24, and RGB B, received from the D latch circuit 26 and 29 and Hue bin number a, Hue bin number B, and based on the S bin number a, and S bin number B, in the same manner as weight calculating unit 32, the connection weight W a, B, W a, B _H, W a, calculates the B _S, the computed connection weight W a, B, W a, B _H, W a, selects and outputs one of B _S as connection weight CW.
  • connection weight W a, B, W a , B _H, W a calculates the B _S, the computed connection weight W a, B, W a, B _H, W a, selects and outputs one of B _S as connection weight CW.
  • the weight calculation unit 35 shown in FIG. 2 has the same configuration as that of the weight calculation unit 32 shown in FIG. 24, and the RGB value RGB A received from the D latch circuit 21 and the Hue bin number A received from the D latch circuit 26. a and S bin number a, RGB value RGB B received from the selector 31, based on the Hue bin number B and S bin number B, in the same manner as weight calculating unit 32, the connection weight W a, B, W a , B _H, W a, calculates the B _S, the computed connection weight W a, B, W a, B _H, W a, selects and outputs one of B _S as connection weight CW.
  • FIG. 25 is a diagram for explaining an image dividing method.
  • the image dividing circuit 3 divides one frame into images of each object by a region growing type image dividing method.
  • This region-growing image segmentation method is the LEGION model (D.DL. Wang, angand D. Terman, “Image segmentation based on oscillator correlation,” Neural Computation, Volume 9 (4), pp. 805-836 (1997). ) Is handled in four states: self-ignition (self-excitable), self-ignitable (excitable), and ignition (inhibition).
  • This region-growing image segmentation method includes four steps of initialization, self-ignition, ignition, and suppression.
  • the image dividing circuit 3 receives an input image having a 3 ⁇ 3 configuration shown in FIG. Then, the image dividing circuit 3 receives eight coupling weights CW1 to CW8 between the pixels in the nine pixels constituting the input image from the coupling weight determination circuit 2, and receives the received eight coupling weights CW1 to CW8. Each pixel is stored in the memory in association with each other. In FIG. 25B, eight connection weights of the pixel (2, 2) and the surrounding pixels are shown.
  • the image dividing circuit 3 reads the eight connection weights CW1 to CW8 held in the memory, and calculates the sum SUM (CW) of the read eight connection weights CW1 to CW8.
  • the image dividing circuit 3 determines whether or not the calculated sum SUM (CW) is larger than the threshold value phi P for determining the leader cell.
  • SUM means calculating a sum represented by a sigma symbol in mathematics.
  • the image dividing circuit 3 executes this processing by setting each of the nine pixels of the input image as a pixel that is the center of calculation of the coupling weight, and determines a leader cell (see (c) of FIG. 25).
  • the image dividing circuit 3 When the extinguishing process is completed, the image dividing circuit 3 returns to the self-igniting process for dividing the next area again. Then, the image dividing circuit 3 repeatedly executes the above-described processing until no leader cell exists, and divides each area. Then, after all the reader cells are ignited, the image dividing circuit 3 labels all the areas and ends the division of the image of one frame (see (h) in FIG. 25).
  • FIG. 26 is a flowchart for explaining an image dividing method according to the present invention.
  • the pixel value detection circuit 1 causes each pixel GE ij (1 ⁇ i ⁇ n) of the input image made up of n ⁇ n (n is an integer of 2 or more).
  • 1 ⁇ j ⁇ n) RGB value RGB ij (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n) is detected (step S 1), and the detected RGB value RGB ij of each pixel is sent to the connection weight determination circuit 2.
  • Output when a series of operations is started, the pixel value detection circuit 1 causes each pixel GE ij (1 ⁇ i ⁇ n) of the input image made up of n ⁇ n (n is an integer of 2 or more).
  • the connection weight determination circuit 2 receives the RGB value RGB ij (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n) of each pixel GE ij (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n) from the pixel value detection circuit 1.
  • the RGB values RGB ij (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n) of the received pixels GE ij (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n) are converted into hues H ij (1 ⁇ 1) by the method described above.
  • connection weight W ij between the pixels ; kl (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n, 1 ⁇ k ⁇ n, 1 ⁇ l ⁇ n) are determined (step S2).
  • connection weight determination circuit 2 divides the determined connection weight W ij; kl (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n, 1 ⁇ k ⁇ n, 1 ⁇ l ⁇ n) between the determined pixels. Output to circuit 3.
  • the image dividing circuit 3 receives an input image from the outside, and the connection weight W ij between the pixels from the connection weight determination circuit 2 ; kl (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n, 1 ⁇ k ⁇ n, 1 ⁇ l ⁇ n). Then, the image dividing circuit 3 uses the received connection weight W ij; kl (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n, 1 ⁇ k ⁇ n, 1 ⁇ l ⁇ n). The frame image is divided (step S3). And a series of operation
  • FIG. 27 is a flowchart for explaining the detailed operation of step S2 shown in FIG. 27, pixel GE1 shown in FIG. 3 is pixel GE ij , pixel GE2 is pixel GE kl , pixel GE3 is pixel GE i + 1, j , pixel GE4 is pixel GE k + 1, l , and details of step S2 The operation will be described.
  • the connection weight determination circuit 2 outputs a plurality of pixels GE ij (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n) from the pixel value detection circuit 1.
  • the RGB values RGB ij (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n) are sequentially received.
  • connection weight determination circuit 2 includes two adjacent pixels GE ij sequentially input from the pixel value detection circuit 1 among the plurality of pixels GE ij (1 ⁇ i ⁇ n, 1 ⁇ j ⁇ n) of the input image. , GE kl (1 ⁇ k ⁇ n, 1 ⁇ l ⁇ n) is selected (step S22).
  • the combination weight determination circuit 2 converts the RGB value RGB ij of the pixel GE ij into the hue H ij and the saturation S ij by the above-described method by the HS conversion circuit 25 (Step S23), and the RGB value of the pixel GE kl .
  • RGB kl is converted into hue H kl and saturation S kl by the above-described method (step S24).
  • the RGB values of four sets of adjacent pixels GE ij , GE kl ; GE i + 1, j , GE kl ; GE ij , GE k + 1, l ; GE i + 1, j , GE k + 1, l are hues It is then determined whether or not it has been converted to saturation (step S25).
  • step S25 the RGB values of four sets of adjacent pixels GE ij , GE kl ; GE i + 1, j , GE kl ; GE ij , GE k + 1, l ; GE i + 1, j , GE k + 1, l are converted into hue and saturation.
  • step S26 the series of operations returns to step S22.
  • step S25 four sets of adjacent pixels GE ij , GE kl ; GE i + 1, j , GE kl ; GE ij , GE k + 1, l ; GE i + 1, j , GE k + 1 , L are repeatedly executed until it is determined that the RGB values of l are converted into hue and saturation.
  • step S25 the RGB values of the four sets of adjacent pixels GE ij , GE kl ; GE i + 1, j , GE kl ; GE ij , GE k + 1, l ; GE i + 1, j , GE k + 1, l are converted into hue and saturation. If it is determined that the conversion is performed, the four weight calculation units 32 to 35 of the connection weight determination circuit 2 determine connection weights between adjacent pixels in parallel (steps S27 to S30).
  • the weight calculation unit 32 determines the connection weights W k, l; i + 1, j between the pixels GE kl , GE i + 1, j , and the weight calculation unit 33 determines the connection between the pixels GE ij , GE k + 1, l.
  • the weights W ij; k + 1, l are determined, and the weight calculation unit 34 determines the connection weights W ij; kl between the pixels GE ij and GE kl , and the weight calculation unit 35 receives the pixels GE i + 1, j , GE k + 1, determining k + 1, l; connection weight W i + 1, j between l.
  • FIG. 28 is a flowchart for explaining the detailed operation of step S27 shown in FIG.
  • the combined weight calculation circuit 320 of the weight calculation unit 32 receives the RGB value RGB kl received from the FIFO circuit 23 and the D latch circuit 22. Based on the RGB values RGB i + 1, j , a connection weight W i + 1, j; kl_RGB between the pixels GE kl , GE i + 1, j is determined by the above-described method, and the determined connection weight W i + 1, j; kl _RGB is output to the connection weight correction circuits 350 and 360 and the selector 380.
  • the hue difference calculation circuit 330 receives the hue bin number A of the pixel GE kl from the FIFO circuit 28 and the hue bin number B of the pixel GE i + 1, j from the D latch circuit 27. Then, the hue difference calculation circuit 330 extracts the hue H kl corresponding to the hue bin number A with reference to the allocation diagram of the hue bin number shown in FIG. 14, and the hue H i + 1, j corresponding to the hue bin number B. To extract.
  • the hue difference calculation circuit 330 calculates a hue difference
  • the combination weight correction circuit 350 receives the hue difference
  • the connection weight correction circuit 350 with reference to Table 3, the connection weight W i + 1, j; kl _RGB and hue difference
  • the saturation difference calculation circuit 340 receives the S bin number A of the pixel GE kl from the FIFO circuit 28 and the S bin number B of the pixel GE i + 1, j from the D latch circuit 27.
  • the saturation difference calculation circuit 340 extracts the saturation S kl corresponding to the S bin number A with reference to the S bin number assignment diagram shown in FIG. 16, and the saturation S corresponding to the S bin number B. i + 1, j are extracted.
  • the saturation difference calculation circuit 340 calculates the saturation difference
  • the connection weight correction circuit 360 receives the saturation difference
  • the connection weight correction circuit 360 with reference to Table 2, the connection weight W i + 1, j; kl _RGB and the saturation difference
  • the selector signal generation circuit 370 of the weight calculation unit 32 receives the S bin number A of the pixel GE kl from the FIFO circuit 28 and the S bin number B of the pixel GE i + 1, j from the D latch circuit 27.
  • the selector signal generation circuit 370 extracts the saturation S kl corresponding to the S bin number A with reference to the S bin number assignment diagram shown in FIG. 16 and the saturation S i + 1 corresponding to the S bin number B. , J are extracted.
  • the selector signal generation circuit 370 generates the selector signal SEL_RGB and outputs the generated selector signal SEL_RGB to the selector 380.
  • the selector 380 the connection weight W i + 1, j from the connection weight computing circuit 320; undergoing kl _RGB connection weight W i + 1, j from the connection weight correction circuit 350; undergoing kl _H, coupled from the connection weight correction circuit 360 weights W i + 1 , J; kl_S.
  • the selector 380 receives the selector signal SEL_RGB from the selector signal generation circuit 370, three selector weights W i + 1, j; kl_RGB, W i + 1, j; kl_H, W i + 1, according to the selector signal SEL_RGB .
  • the weight calculation unit 32 determines the connection weight connection weight W i + 1, j; kl from the RGB values RGB i + 1, j and RGB kl (step S272). Then, the weight calculation unit 32 outputs the determined combination weight W i + 1, j; kl to the image dividing circuit 3.
  • the selector 380 Upon receiving the selector signal SEL_S from the selector signal generation circuit 370, the selector 380 has three coupling weights W i + 1, j; kl_RGB, W i + 1, j; kl_H, W i + 1, j; according to the selector signal SEL_S . connection weight from kl _S W i + 1, j ; select kl _S, the selected connection weight W i + 1, j; determines that kl; a kl _S connection weight W i + 1, j.
  • the weight calculation unit 32 determines the connection weight connection weight W i + 1, j; kl from the RGB values RGB i + 1, j , RGB kl and the saturations S i + 1, j , S kl (step S274). Then, the weight calculation unit 32 outputs the determined combination weight W i + 1, j; kl to the image dividing circuit 3.
  • the selector 380 Upon receiving the selector signal SEL_H from the selector signal generation circuit 370, the selector 380 has three coupling weights W i + 1, j; kl_RGB, W i + 1, j; kl_H, W i + 1, j; according to the selector signal SEL_H . connection weight from kl _S W i + 1, j ; select kl _H, the selected connection weight W i + 1, j; determines that kl; a kl _H connection weight W i + 1, j.
  • the weight calculation unit 32 determines the connection weight connection weight W i + 1, j; kl from the RGB values RGB i + 1, j , RGB kl and the hues H i + 1, j , H kl (step S275). Then, the weight calculation unit 32 outputs the determined combination weight W i + 1, j; kl to the image dividing circuit 3.
  • step S274 the combination weight W i + 1, j; kl_RGB is determined only by the RGB value RGB values RGB i + 1, j , RGB kl , and the determined combination weight W i + 1, j; comprising a step of correspondingly small
  • step S275 the combination weights W i + 1, j; kl_RGB are determined based only on the RGB values RGB values RGB i + 1, j , RGB kl , and the determined combination weights W i + 1, j; kl_RGB are used as the hue H i + 1. , J , H kl
  • steps S28 to 30 shown in FIG. 27 are also executed by steps S271 to S275 shown in FIG.
  • FIG. 29 is a flowchart for explaining the detailed operation of step S3 shown in FIG. Referring to FIG. 29, after step S2 shown in FIG. 26, the image dividing circuit 3 receives the connection weight between the pixels in a plurality of pixels constituting one frame from the connection weight determination circuit 2, and the method described above. To determine the leader cell (step S41).
  • step S42 determines whether or not a self-ignitable cell has been detected.
  • self-ignition is performed by the method described above (step S42). S43).
  • the image dividing circuit 3 determines whether or not the ignition cell exists (step S44). When the ignition cell exists, the image division circuit 3 performs ignition (region growth) to the surroundings by the above-described method (step S45). And a series of operation
  • step S44 If it is determined in step S44 that no ignition cell is present, the image dividing circuit 3 performs the end of ignition and determination of the area and labels (fire suppression) by the above-described method (step S46). Thereafter, the series of operations returns to step S42, and steps S42 to S46 are repeatedly executed until it is determined in step S42 that no self-ignitable cell is detected.
  • step S42 If it is determined in step S42 that no self-ignitable cell is detected, the series of operations proceeds to “END” in FIG.
  • the image dividing device 10 repeatedly executes the flowchart shown in FIG. 26 (FIGS. 27 to 29), and divides each frame into images of the respective objects.
  • the connection weight between the two pixels is determined only by the RGB values of the two pixels. (See Step S272) When only one of the two saturations is equal to or less than the threshold value Sth, the connection weight between the two pixels is determined based on the RGB values and saturations of the two pixels (see Step S274). When both of the two chromas of one pixel are larger than the threshold value Sth, the combination weight is determined by the two RGB values and the hue (see step S275).
  • connection weight determined in step S274 is smaller than the connection weight determined in step S272, and the connection weight determined in step S275 is equal to or greater than the connection weight determined in step S272.
  • the connection weight between the two pixels is determined using the saturation or the hue.
  • connection weight is determined to be smaller than the connection weight determined only by the RGB values (see step S274), so that the region growth is suppressed in the image division.
  • the combination weight is determined to be equal to or greater than the combination weight determined only by the RGB values (see step S275), so that region growth is promoted in the image division.
  • FIG. 30 is a block diagram of an object tracking device using the image dividing device 10 according to the present invention.
  • the object tracking device 20 is obtained by adding a tracking circuit 4 to the image dividing device 10.
  • the tracking circuit 4 sequentially receives the divided images DVG1 and DVG2 from the image dividing circuit 3, and extracts the feature quantities CH1 and CH2 of the object represented by the received divided images DVG1 and DVG2. Then, the tracking circuit 4 performs object pattern matching between the divided images DVG1 and DVG2 using the extracted object feature amounts CH1 and CH2, detects a motion vector, and obtains an estimated position of the object.
  • the object feature amounts CH1 and CH2 include, for example, the height, color, and area of the object. Pattern matching is performed by calculating a Manhattan distance or the like and obtaining a minimum Manhattan distance or the like.
  • the tracking circuit 4 can accurately track an object using the accurately divided image.
  • the conversion from RGB values to saturation (S) or hue (H) has been described using an adder and a shifter.
  • the present invention is not limited to this, and the circuit area is not limited to this. If there is no special restriction such as no problem, the RGB value may be converted into saturation (S) or hue (H) by a circuit using a divider.
  • the threshold value Sth is set to 0.2.
  • the present invention is not limited to this, and the threshold value Sth may be a value other than 0.2. In general, it is generally determined experimentally based on the hue of each object of the input image to be image-divided.
  • the image division is performed using the region growing type image division method.
  • the image division is not limited to this, and “B. Jehehne,“ Digital Image Processing 5th ”. revised and extended edition, “Springer-Verlag, pp. 427-440, 2001.”, “J. C. Russ,“ The Image Processing Handbook, ”“ CRC PRESS, pp. 371-429, 1999.36 ”, “T. Braeunl, S. Feyrer, W. Rapf, and M. Reinhardt,“ Parallel Image Processing, ”Springer-Verlag, 2000.” and “W. Y. Ma, and B. S. Manjunath,“ Edgeflow: a technique for boundary detection and segmentation, IEEE Transactions on Image Processing, vol. 9 (8), pp. 1375-1388, 2004. ” Good.
  • connection weight determined only by the RGB value constitutes the “first connection weight”, and the connection weight determined by the RGB value and the saturation (S) is the first connection weight.
  • a “second combination weight” that is smaller than the first combination weight and that is determined by the RGB value and the hue (H) forms a “third combination weight” that is equal to or greater than the first combination weight.
  • the pixel value difference 01xxx_xxxx shown in Table 3 constitutes a “first value”
  • the pixel value difference 0001_xxxx constitutes a “second value” larger than the first value
  • the present invention is applied to an image dividing apparatus capable of accurately dividing an input image composed of color images into images of respective objects.
  • the present invention is applied to an image dividing method capable of accurately dividing an input image composed of color images into images of respective objects.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

画素値検出回路(1)は、入力画像の各画素のRGB値を検出し、その検出したRGB値を結合重み決定回路(2)へ出力する。結合重み決定回路(2)は、隣接する2つの画素の両方が無彩色からなるとき、RGB値のみによって2つの画素間の結合重みである第1の結合重みを決定し、2つの画素の一方が無彩色からなるとき、RGB値および彩度によって結合重みを第1の結合重みよりも小さい第2の結合重みに決定し、2つの画素の両方が有彩色からなるとき、RGB値および色相によって結合重みを第1の結合重み以上の第3の結合重みに決定する。画像分割回路(3)は、結合重み決定回路(2)によって決定された結合重みを用いて入力画像を各対象物の画像に分割する。

Description

画像分割装置および画像分割方法
 この発明は、画像分割装置および画像分割方法に関するものである。
 従来、彩度と色相差とを用いて入力画像を無彩色領域と有彩色領域とに分割する画像領域分割装置が知られている(特開平6-259549号公報)。
 この画像領域分割装置は、画像入力部と、正規化処理部と、彩度検出部と、色相差検出部と、特徴量算出部と、2値化処理部とを備える。画像入力部は、カラー画像を取り込み、その取り込んだ画像から領域分割の対象となる対象画像を生成し、対象画像のR(赤)成分、G(緑)成分およびB(青)成分をそれぞれ示すR画像、G画像およびB画像を正規化処理部へ出力する。
 正規化処理部は、画像入力部から出力された3枚のR画像、G画像およびB画像を取り込み、対象画像の各画素について、R,G,B成分を明るさで正規化したX成分とY成分とに変換する。そして、正規化処理部は、対象画像の各画素値がX成分であるX画像と、対象画像の各画素値がY成分であるY画像とを生成し、その生成したX画像およびY画像を彩度検出部および色相差検出部へ出力する。
 彩度検出部は、正規化処理部から出力されたX画像およびY画像を取り込み、対象画像の各画素の彩度をX成分およびY成分から求め、対象画像の各画素の値を、求めた彩度とする彩度画像を特徴量算出部へ出力する。対象画像の画素P(k=1,2,・・・,N)の彩度Sは、PのX成分をxとし、Y成分をyとすると、S=(x +y 1/2によって求められる。
 色相検出部は、正規化処理部から出力されたX画像およびY画像を取り込み、対象画像の各画素の色相をX成分およびY成分から求め、有彩色領域の色相θとの色相差を算出する。そして、色相検出部は、対象画像の各画素の値を、算出した色相差とする色相差画像を特徴量算出部へ出力する。対象画像Pの色相θは、θ=tan-1(y/x)によって求められる。
 特徴量算出部は、彩度検出部から彩度画像を受け取り、色相検出部から色相差画像を受け取ると、各画素の彩度と色相差とから特徴量を算出する。たとえば、特徴量算出部は、F=Scos(θ-θ)によって対象画像の画素Pの特徴量Fを算出する。そして、特徴量算出部は、対象画像の各画素の値を、算出した特徴量Fとする特徴量画像を2値化処理部へ出力する。
 2値化処理部は、特徴量算出部から特徴量画像を受けると、特徴量画像を2値化する。そして、2値化処理部は、2値化により分割された2つの領域のうち、特徴量の小さい方を無彩色領域として出力し、特徴量の大きい方を有彩色領域として出力する。
 このように、従来の画像領域分割装置は、入力画像の各点における彩度と、入力画像の各点での色相と有彩色領域の色相との色相差とを用いて入力画像を無彩色領域と有彩色領域とに分割するための特徴量を求め、その求めた特徴量を用いて入力画像を無彩色領域と有彩色領域とに分割する。
 しかし、従来の画像領域分割装置は、入力画像の各画素の彩度と、各画素の色相と有彩色領域の色相との色相差とを用いて画像を分割するため、分割の対象となる対象物が無彩色からなる場合、入力画像を各対象物の画像に正確に分割することが困難であるという問題がある。
 そこで、カラー画像からなる入力画像を各対象物の画像に正確に分割可能な画像分割装置を提供することが望まれる。
 また、カラー画像からなる入力画像を各対象物の画像に正確に分割可能な画像分割方法を提供することが望まれる。
 画像分割装置は、結合重み決定回路と、画像分割装置とを備える。結合重み決定回路は、2つの画素の両方が無彩色からなるとき、2つの画素のRGB値を用いて2つの画素間の結合重みである第1の結合重みを決定し、2つの画素の一方が無彩色からなるとき、第1の結合重みよりも小さい第2の結合重みを2つの画素間の結合重みとして決定し、2つの画素の両方が有彩色からなるとき、第1の結合重み以上の第3の結合重みを2つの画素間の結合重みとして決定する結合重み決定処理を1つのフレームの各画素間について実行する。画像分割回路は、結合重み決定回路によって決定された第1から第3の結合重みに基づいて、1つのフレームを各対象物の画像に分割する。
 結合重み決定回路は、2つの画素のRGB値に基づいて2つの画素の第1および第2の彩度を演算するとともに、その演算した第1および第2の彩度を無彩色と有彩色との境界を示すしきい値と比較して2つの画素が無彩色および有彩色のいずれからなるかを判定し、その判定結果に基づいて第1から第3の結合重みのいずれかを2つの画素間の結合重みとして決定してもよい。
 結合重み決定回路は、加算器およびシフト器とを用いて2つの画素のRGB値に基づいて2つの画素の第1および第2の彩度を演算してもよい。
 結合重み決定回路は、演算した第1および第2の彩度の両方がしきい値以下であるとき、2つの画素の両方が無彩色からなると判定し、第1および第2の彩度の一方がしきい値以下であるとき、2つの画素の一方が無彩色からなり、かつ、2つの画素の他方が有彩色からなると判定し、第1および第2の彩度の両方がしきい値よりも大きいとき、2つの画素の両方が有彩色からなると判定してもよい。
 結合重み決定回路は、2つの画素の両方が無彩色からなると判定したとき、2つの画素のRGB値のみを用いて第1の結合重みを決定し、2つの画素の一方が無彩色からなり、かつ、2つの画素の他方が有彩色からなると判定したとき、2つの画素のRGB値および彩度を用いて第2の結合重みを決定し、2つの画素の両方が有彩色からなると判定したとき、2つの画素のRGB値および色相を用いて第3の結合重みを決定してもよい。
 結合重み決定回路は、RGB値のみを用いて第1の結合重みを演算するとともに、2つの画素の一方が無彩色からなり、かつ、2つの画素の他方が有彩色からなると判定したとき、演算した第1の結合重みを2つの画素の彩度の差である彩度差に応じて小さくすることにより第2の結合重みを決定し、2つの画素の両方が有彩色からなると判定したとき、2つの画素の色相の差である色相差に応じて第1の結合重みを大きくすることにより第3の結合重みを決定してもよい。
 結合重み決定回路は、2つの画素の両方が有彩色からなると判定したとき、2つの画素のRGB値に基づいて2つの画素の第1および第2の色相を演算するとともに、その演算した第1および第2の色相の差を色相差として演算し、その演算した色相差を用いて第3の結合重みを決定してもよい。
 結合重み決定回路は、加算器およびシフト器とを用いて2つの画素のRGB値に基づいて2つの画素の第1および第2の色相を演算してもよい。
 結合重み決定回路は、2つの画素の一方が無彩色からなり、かつ、2つの画素の他方が有彩色からなると判定した場合において、彩度差が相対的に小さいとき、第1の結合重みからの下げ幅を相対的に小さくして第2の結合重みを決定し、彩度差が相対的に大きいとき、第1の結合重みからの下げ幅を相対的に大きくして第3の結合重みを決定してもよい。
 結合重み決定回路は、2つの画素のRGB値の差と、彩度差と、第1の結合重みから彩度差に応じて小さくした修正結合重みとの対応表を保持しており、2つの画素の彩度差を演算すると、その演算した彩度差に対応する修正結合重みを対応表から抽出し、その抽出した修正結合重みを第2の結合重みとして決定してもよい。
 結合重み決定回路は、2つの画素の両方が有彩色からなると判定した場合において、2つの画素のRGB値の差が光の反射の影響を受けていることを示すとき、色相差に応じて第1の結合重み以上の値を設定して第3の結合重みを決定してもよい。
 結合重み決定回路は、2つの画素のRGB値の差が光の反射の影響を受けていないことを示すとき、第1の結合重みを第3の結合重みとして決定してもよい。
 結合重み決定回路は、2つの画素のRGB値の差と、色相差と、第1の結合重みから色相差に応じて大きくした修正結合重みとの対応表を保持しており、2つの画素のRGB値の差が光の反射の影響を受けていることを示すとき、2つの画素の色相差を演算すると、その演算した色相差に対応する修正結合重みを対応表から抽出し、その抽出した修正結合重みを第3の結合重みとして決定してもよい。
 また、画像分割方法は、2つの画素のRGB値を受付ける第1のステップと、受付けられた2つの画素のRGB値に基づいて、2つの画素の第1および第2の色相を演算する第2のステップと、受付けられた2つの画素のRGB値に基づいて、2つの画素の第1および第2の彩度を演算する第3のステップと、第1および第2の彩度の両方が無彩色と無彩色との境界を示すしきい値以下であるか否かを判定する第4のステップと、第4のステップにおいて、第1および第2の彩度の両方がしきい値以下であると判定されたとき、2つの画素のRGB値のみを用いて2つの画素間の結合重みである第1の結合重みを決定する第5のステップと、第4のステップにおいて、第1および第2の彩度の一方がしきい値以下であると判定されたとき、2つの画素のRGB値と、第1および第2の彩度とを用いて第1の結合重みよりも小さい第2の結合重みを2つの画素間の結合重みとして決定する第6のステップと、第4のステップにおいて、第1および第2の彩度の両方がしきい値よりも大きいと判定されたとき、2つの画素のRGB値と、第1および第2の色相とを用いて第1の結合重み以上の第3の結合重みを2つの画素間の結合重みとして決定する第7のステップと、第1のステップから第7のステップを1つのフレームに含まれる全ての画素間について実行する第8のステップと、第8のステップを実行して決定された第1から第3の結合重みに基づいて、1つのフレームを各対象物の画像に分割する第9のステップとを備える。
 第6のステップは、RGB値のみを用いて第1の結合重みを演算する第1のサブステップと、演算した第1の結合重みを2つの画素の彩度の差である彩度差に応じて小さくすることにより第2の結合重みを決定する第2のサブステップとを含んでもよい。第7のステップは、RGB値のみを用いて第1の結合重みを演算する第3のサブステップと、2つの画素が光の反射の影響を受けていることを示すとき、演算した第1の結合重みを2つの画素の色相の差である色相差に応じて大きくすることにより第3の結合重みを決定する第4のサブステップと、2つの画素が光の反射の影響を受けていないことを示すとき、演算された第1の結合重みを第3の結合重みとして決定する第5のサブステップとを含んでもよい。
 第2のサブステップにおいて、彩度差が相対的に小さいとき、第1の結合重みからの下げ幅を相対的に小さくして第2の結合重みを決定し、彩度差が相対的に大きいとき、第1の結合重みからの下げ幅を相対的に大きくして第2の結合重みを決定してもよい。
 光の反射の影響を受けている画素は、2つの画素のRGB値の差が第1の値と第1の値よりも大きい第2の値との間で存在する画素であってもよい。
 2つの画素間の結合重みは、2つの画素の両方が無彩色からなるとき、2つの画素のRGB値を用いて第1の結合重みに決定され、2つの画素の一方が無彩色からなるとき、第1の結合重みよりも小さい第2の結合重みに決定され、2つの画素の両方が有彩色からなるとき、第1の結合重み以上の第3の結合重みに決定される。そして、その決定された結合重みに基づいて画像分割が行なわれる。その結果、結合重みが第2の結合重みからなる画像では、画像分割において領域成長が抑制され、結合重みが第3の結合重みからなる画像では、画像分割において領域成長が促進される。そして、画像分割において、彩度差のある領域が識別されて抽出され、同一色相を有する領域が同一領域として抽出される。
 したがって、カラー画像からなる入力画像を各対象物の画像に正確に分割できる。
この発明の実施の形態による画像分割装置の構成を示す概略ブロック図である。 図1に示す結合重み決定回路の構成を示す概略図である。 図2に示す結合重み決定回路が結合重みを決定するときの概念図である。 図2に示す結合重み決定回路が結合重みを決定するときの他の概念図である。 HSV色空間の概念図である。 色相および彩度による画像評価に用いた画像を示す図である。 色相および彩度による画像評価に用いた他の画像を示す図である。 図6に示す領域Xの分割結果および図7に示す領域Yの分割結果を示す図である。 従来の画像分割における問題を説明するための図である。 図6に示すサンプル画像のRGB値から式(1)を用いてHue値に変換した値(0~360度)を256階調に正規化して8ビットグレー画像とした図である。 図7に示すサンプル画像のRGB値から式(1)を用いてHue値に変換した値(0~360度)を256階調に正規化して8ビットグレー画像とした図である。 図6に示すサンプル画像のRGB値から式(2)を用いてS値に変換した値(0~1の範囲)を256階調に規格化して8ビットグレー画像とした図である。 図7に示すサンプル画像のRGB値から式(2)を用いてS値に変換した値(0~1の範囲)を256階調に規格化して8ビットグレー画像とした図である。 色相(Hue)のビンの構成図である。 図2に示すHS変換回路に含まれる色相変換回路の構成を示す概略図である。 彩度(S)のビンの構成図である。 図2に示すHS変換回路に含まれる彩度変換回路の構成を示す概略図である。 結合重みを決定する方法を説明するための図である。 反射による画素値への影響を示す図である。 彩度境界を変化させたときの無彩色画素値の変化を示す図である。 R,G,Bの各成分の乱反射による影響を示す図である。 赤の車のボディーのHue値のヒストグラムを示す図である。 青の車のボディーのHue値のヒストグラムを示す図である。 図2に示す重み計算ユニットの構成図である。 画像の分割方法を説明するための図である。 この発明による画像分割方法を説明するためのフローチャートである。 図26に示すステップS2の詳細な動作を説明するためのフローチャートである。 図27に示すステップS27の詳細な動作を説明するためのフローチャートである。 図26に示すステップS3の詳細な動作を説明するためのフローチャートである。 この発明による画像分割装置を用いた物体追跡装置の構成図である。
 本発明の実施の形態について図面を参照しながら詳細に説明する。なお、図中同一または相当部分には同一符号を付してその説明は繰返さない。
 図1は、この発明の実施の形態による画像分割装置の構成を示す概略ブロック図である。図1を参照して、この発明の実施の形態による画像分割装置10は、画素値検出回路1と、結合重み決定回路2と、画像分割回路3とを備える。
 画素値検出回路1は、1フレームの入力画像を受け、その受けた入力画像の各画素のR成分、G成分およびB成分を検出し、その検出したR成分、G成分およびB成分をRGB値として結合重み決定回路2へ出力する。
 結合重み決定回路2は、画素値検出回路1からRGB値を受け、その受けたRGB値に基づいて、後述する方法によって、1つのフレームを構成する複数の画素における各画素間の結合重みを決定し、その決定した結合重みを画像分割回路3へ出力する。
 画像分割回路3は、外部から入力画像を受け、結合重み決定回路2から結合重みを受ける。そして、画像分割回路3は、その受けた結合重みを用いて、領域成長型画像分割方法によって、1つのフレームからなる入力画像を各対象物の画像に分割する。この領域成長型画像分割方法は、たとえば、3×3の画素からリーダセルを決定し、その決定したリーダセルの領域から相対的に大きい結合重みを有する周囲の画素の領域へ領域を成長させて行く処理をリーダセルが存在しなくまで繰り返して画像を分割する方法である。
 図2は、図1に示す結合重み決定回路2の構成を示す概略図である。図2を参照して、結合重み決定回路2は、Dラッチ回路21,22,24,26,27,29と、FIFO回路23,28と、HS変換回路25と、選択器30,31と、重み計算ユニット32~35とを含む。
 Dラッチ回路21は、画素値検出回路1からRGB値を受け、その受けたRGB値をラッチし、そのラッチしたRGB値をDラッチ回路22、重み計算ユニット33,35へ出力する。
 Dラッチ回路22は、Dラッチ回路21からRGB値を受け、その受けたRGB値をラッチし、そのラッチしたRGB値をFIFO回路23、重み計算ユニット32および選択器30,31へ出力する。
 FIFO回路23は、Dラッチ回路22からRGB値を受け、その受けたRGB値を1クロック分、保持し、その後、RGB値をDラッチ回路24、重み計算ユニット32および選択器30,31へ出力する。
 Dラッチ回路24は、FIFO回路23から受けたRGB値をラッチし、そのラッチしたRGB値を重み計算ユニット33,34へ出力する。
 HS変換回路25は、画素値検出回路1からRGB値を受け、その受けたRGB値を、後述する方法によって、色相および彩度に変換する。そして、HS変換回路25は、その変換した色相および彩度をDラッチ回路26へ出力する。
 Dラッチ回路26は、色相および彩度をHS変換回路25から受け、その受けた色相および彩度をラッチし、そのラッチした色相および彩度をDラッチ回路27および重み計算ユニット33,35へ出力する。
 Dラッチ回路27は、色相および彩度をDラッチ回路26から受け、その受けた色相および彩度をラッチし、そのラッチした色相および彩度をFIFO回路28、重み計算ユニット32および選択器30,31へ出力する。
 FIFO回路28は、色相および彩度をDラッチ回路27から受け、その受けた色相および彩度を1クロック分、保持し、その後、色相および彩度をDラッチ回路29、重み計算ユニット32および選択器30,31へ出力する。
 Dラッチ回路29は、色相および彩度をFIFO回路28から受け、その受けた色相および彩度をラッチし、そのラッチした色相および彩度を重み計算ユニット33,34へ出力する。
 選択器30は、Dラッチ回路22およびFIFO回路23からRGB値を受け、Dラッチ回路27およびFIFO回路28から色相および彩度を受ける。そして、選択器30は、FIFO回路23から受けたRGB値と、FIFO回路28から受けた色相および彩度とを選択して重み計算ユニット34へ出力する。
 選択器31は、Dラッチ回路22およびFIFO回路23からRGB値を受け、Dラッチ回路27およびFIFO回路28から色相および彩度を受ける。そして、選択器31は、Dラッチ回路22から受けたRGB値と、Dラッチ回路27から受けた色相および彩度とを選択して重み計算ユニット35へ出力する。
 なお、選択器30がDラッチ回路22から受けたRGB値と、Dラッチ回路27から受けた色相および彩度とを選択して重み計算ユニット34へ出力する場合、選択器31は、FIFO回路23から受けたRGB値と、FIFO回路28から受けた色相および彩度とを選択して重み計算ユニット35へ出力する。
 重み計算ユニット32は、Dラッチ回路22およびFIFO回路23からRGB値を受け、Dラッチ回路27およびFIFO回路28から色相および彩度を受ける。そして、重み計算ユニット32は、Dラッチ回路22から受けたRGB値とDラッチ回路27から受けた色相および彩度とを1つの画素GE3に対応するRGB値、色相および彩度(RGB3,HS3)とし、FIFO回路23から受けたRGB値と、FIFO回路28から受けた色相および彩度とを別の1つの画素GE2に対応するRGB値、色相および彩度(RGB2,HS2)とする。そうすると、重み計算ユニット32は、RGB値、色相および彩度(RGB3,HS3)と、RGB値、色相および彩度(RGB2,HS2)とに基づいて、後述する方法によって、画素GE2と画素GE3との間の結合重みを演算し、その演算した結合重みを画像分割回路3へ出力する。
 重み計算ユニット33は、Dラッチ回路21,24からRGB値を受け、Dラッチ回路26,29から色相および彩度を受ける。そして、重み計算ユニット33は、Dラッチ回路21から受けたRGB値とDラッチ回路26から受けた色相および彩度とを1つの画素GE4に対応するRGB値、色相および彩度(RGB4,HS4)とし、Dラッチ回路24から受けたRGB値と、Dラッチ回路29から受けた色相および彩度とを別の1つの画素GE1に対応するRGB値、色相および彩度(RGB1,HS1)とする。そうすると、重み計算ユニット33は、RGB値、色相および彩度(RGB4,HS4)と、RGB値、色相および彩度(RGB1,HS1)とに基づいて、後述する方法によって、画素GE1と画素GE4との間の結合重みを演算し、その演算した結合重みを画像分割回路3へ出力する。
 重み計算ユニット34は、Dラッチ回路24からRGB値を受け、Dラッチ回路29から色相および彩度を受け、選択器30からRGB値、色相および彩度を受ける。そして、重み計算ユニット34は、Dラッチ回路24から受けたRGB値とDラッチ回路29から受けた色相および彩度とを1つの画素GE1に対応するRGB値、色相および彩度(RGB1,HS1)とし、選択器30から受けたRGB値、色相および彩度を別の1つの画素GE2に対応するRGB値、色相および彩度(RGB2,HS2)とする。そうすると、重み計算ユニット34は、RGB値、色相および彩度(RGB1,HS1)と、RGB値、色相および彩度(RGB2,HS2)とに基づいて、後述する方法によって、画素GE1と画素GE2との間の結合重みを演算し、その演算した結合重みを画像分割回路3へ出力する。
 重み計算ユニット35は、Dラッチ回路21からRGB値を受け、Dラッチ回路26から色相および彩度を受け、選択器31からRGB値、色相および彩度を受ける。そして、重み計算ユニット35は、Dラッチ回路21から受けたRGB値とDラッチ回路26から受けた色相および彩度とを1つの画素GE4に対応するRGB値、色相および彩度(RGB4,HS4)とし、選択器31から受けたRGB値、色相および彩度を別の1つの画素GE3に対応するRGB値、色相および彩度(RGB3,HS3)とする。そうすると、重み計算ユニット35は、RGB値、色相および彩度(RGB4,HS4)と、RGB値、色相および彩度(RGB3,HS3)とに基づいて、後述する方法によって、画素GE3と画素GE4との間の結合重みを演算し、その演算した結合重みを画像分割回路3へ出力する。
 図3は、図2に示す結合重み決定回路2が結合重みを決定するときの概念図である。また、図4は、図2に示す結合重み決定回路2が結合重みを決定するときの他の概念図である。
 結合重み決定回路2は、2行2列に配列された画素GE1~GE4における結合重みを1サイクルで決定する。画素GE1~GE4におけるRGB値RGB1~RGB4が結合重み決定回路2へ順次入力されると、重み計算ユニット32は、FIFO回路23から画素GE2のRGB値RGB2を受け、FIFO回路28から画素GE2の色相および彩度HS2を受け、Dラッチ回路22から画素GE3のRGB値RGB3を受け、Dラッチ回路27から画素GE3の色相および彩度HS3を受ける。
 また、重み計算ユニット33は、Dラッチ回路24から画素GE1のRGB値RGB1を受け、Dラッチ回路29から画素GE1の色相および彩度HS1を受け、Dラッチ回路21から画素GE4のRGB値RGB4を受け、Dラッチ回路26から画素GE4の色相および彩度HS4を受ける。
 さらに、重み計算ユニット34は、Dラッチ回路24から画素GE1のRGB値RGB1を受け、Dラッチ回路29から画素GE1の色相および彩度HS1を受け、選択器30から画素GE2のRGB値RGB2と、画素GE2の色相および彩度HS2とを受ける。
 さらに、重み計算ユニット35は、Dラッチ回路21から画素GE4のRGB値RGB4を受け、Dラッチ回路26から画素GE4の色相および彩度HS4を受け、選択器31から画素GE3のRGB値RGB3と、画素GE3の色相および彩度HS3とを受ける。
 すなわち、重み計算ユニット32~35は、同期して、それぞれ、画素GE2,GE3のRGB値、色相および彩度、画素GE1,GE4のRGB値、色相および彩度、画素GE1,GE2のRGB値、色相および彩度、および画素GE3,GE4のRGB値、色相および彩度を受ける。そして、重み計算ユニット32は、画素GE2と画素GE3との結合重みを決定して出力し、重み計算ユニット33は、画素GE1と画素GE4との結合重みを決定して出力し、重み計算ユニット34は、画素GE1と画素GE2との結合重みを決定して出力し、重み計算ユニット35は、画素GE3と画素GE4との結合重みを決定して出力する。
 つまり、重み計算ユニット32~35は、図3に示す4個の結合重みを1サイクルで決定して出力する。
 なお、選択器30が画素GE3のRGB値RGB3と色相および彩度HS3とを選択し、選択器31が画素GE2のRGB値RGB2と色相および彩度HS2とを選択した場合、重み計算ユニット32~35は、図4に示す4個の結合重みを1サイクルで決定して出力する。
 このように、結合重み決定回路2は、2行2列に配列された4個の画素のRGB値、色相および彩度を用いて、1サイクルで2行2列に配列された4個の画素間における4個の結合重みを決定する。
 上述したように、結合重み決定回路2は、各画素のRGB値、色相および彩度を用いて2つの画素間の結合重みを決定するが、以下、その理由について説明する。
 この発明においては、画素間の結合重みを決定するために、RGB値のみならず、色相および彩度を用いるために、RGB色空間に加え、色相(H:Hue)、彩度(S:Saturation)および輝度(V:Value)からなるHSV色空間を導入する。
 ここで、色相(H)は、R,G,Bなどの色の種類を表す要素である。また、彩度(S)は、色の鮮やかさを表す要素であり、無彩色(黒―灰色―白)では、“0”となる。さらに、輝度(V)は、明るさを表す要素である。
 図5は、HSV色空間の概念図である。図5を参照して、HSV色空間は、円錐形状からなる。そして、色相(H)は、円錐形状の底面における円環CRCに描かれ、0度~360度の範囲で表される。そして、図5においては、赤を基準(0度)とした色相を表しており、RGB色空間における赤(255,0,0)、緑(0,255,0)および青(0,0,255)は、それぞれ、色相0度、色相120度および色相240度に対応する。
 彩度(S)は、円錐の円形の半径として表され、0~1の範囲の値を取る。また、輝度(V)は、円錐の頂点からの距離として表され、0~1の範囲の値を取る。
 図5から解るように、無彩色は、色相(H)および彩度(S)を持たない。
 RGB値から色相(H)への変換には、次式が用いられる。
Figure JPOXMLDOC01-appb-M000001
 なお、式(1)において、MAXは、R値、G値およびB値の最大値を表し、MINは、R値、G値およびB値の最小値を表す。
 MAX=MINであるとき、色相(H)は、定義されない。これは、R値、G値およびB値が全て等しいときであり、無彩色を表すため、円錐の中央のグレーの直線の周囲にあるため、その時のHue値は、意味を持たないからである。
 RGB値から彩度(S)への変換には、次式が用いられる。
Figure JPOXMLDOC01-appb-M000002
 なお、MAX=0であるとき、彩度(S)は、未定義となる。これは、MAX=0であるときの色は、完全な黒を表すため、色相も彩度も存在しないからである。
 RGB値から輝度(V)への変換には、次式が用いられる。
Figure JPOXMLDOC01-appb-M000003
 引き続いて、色相(Hue)および彩度(Saturation)による画像評価について説明する。図6は、色相および彩度による画像評価に用いた画像を示す図である。また、図7は、色相および彩度による画像評価に用いた他の画像を示す図である。
 図6は、コントラストが低い領域を含む画像を示し、図7は、外乱的な反射を含む画像を示す。
 図8は、図6に示す領域Xの分割結果および図7に示す領域Yの分割結果を示す図である。また、図9は、従来の画像分割における問題を説明するための図である。
 従来の画像分割においては、2つの画素間の結合重みWij;klは、各画素のRGB値のみを用いて次の式(4),(5)によって演算される。
Figure JPOXMLDOC01-appb-M000004
Figure JPOXMLDOC01-appb-M000005
 すなわち、従来の画像分割方法は、隣接画素間の輝度値の差から結合重みと呼ばれる画素間の類似度を求め、その求めた類似度を指標として領域を成長させていく。結合重みWij;klは、式(4)を用いて赤、緑および青に対して演算された3個の結合重みを式(5)に代入して、赤、緑および青に対する3個の結合重みのうち、最も小さいものを画素間の結合重みWij;klとして決定する。
 したがって、図9に示すように、たとえば、(R,G,B)=(250,0,0)と、(R,G,B)=(125,0,0)との結合重みと、(R,G,B)=(250,0,0)と、(R,G,B)=(125,125,125)との結合重みとは、無彩色と有彩色との関係にありながら、同じ値となり、RGB色空間を用いた結合重みでは、画素の色合いを考慮していない。
 また、図9の(a)は、グラデーション変化を持つ領域を画素単位で示したものと、横軸をx軸、縦軸を結合重みに取ったときのグラデーション領域の結合重みの変化をグラフとして表した図である。
 グラデーション変化のある領域では、画素間の輝度値の差が等しいため、結合重みも等しくなっている。仮に、近傍画素の結合重みが領域成長に用いるしきい値φz以上であれば、領域は、矢印の方向に広がり続けてしまう。
 しかし、図9の(a)に示すグラデーションに関する問題に対しては、どこまでを同一領域として扱うかは、アプリケーションに依存する面が強く、しきい値を一意に決定することは難しい。
 図6に示すサンプル画像は、コントラストが低く、机と人間の重なりにより境界に陰が生じ、机領域と人物領域との間に明確なエッジが現れず、色が2つの領域間で滑らかに変化する(グラデーション)画像である。そのため、従来のエッジを利用する画像分割法では、机と人物との分割が難しい(図8参照)。
 また、図7に示すサンプル画像では、反射が原因でカラーが変化し、ボディー領域の成長が進まずに、複数の領域に分かれたり、未分割領域として残ってしまう(図8参照)。
 これらの結果から、画像分割精度を向上させるためには、RGB色空間による輝度を用いた方法に加えて、黒い、赤い、青いと言った色合いを考慮することが必要である。色合いを考慮すれば、図6に示すサンプル画像であれば、人物は、黒であり、机は、茶色であり、2つの領域の分離が可能である。また、図7に示すサンプル画像であれば、車は、赤色の領域として抽出可能である。
 そこで、色相(Hue)および彩度(Saturation)による画像評価について説明する。
 まず、色相(Hue)による画像評価について説明する。図10は、図6に示すサンプル画像のRGB値から式(1)を用いてHue値に変換した値(0~360度)を256階調に正規化して8ビットグレー画像とした図である。また、図11は、図7に示すサンプル画像のRGB値から式(1)を用いてHue値に変換した値(0~360度)を256階調に正規化して8ビットグレー画像とした図である。
 なお、図10および図11においては、図6および図7に示す2つのサンプル画像の場合、緑および青といったHue値が高い画素値が存在しないため、無彩色を最大値の255(白)で表している。
 図10および図11を参照して、人間と机の境界、および道路と車両の境界がはっきりと区別できていることが解るが、背景や人間の領域にノイズ画素が目立つ。このHue画像の画像分割への適用を想定した場合、ノイズ画素による分割精度への影響が予想される。
 そこで、ノイズ画素の低減のために、次の方法を採用した。式(1)から解るように、厳密には、MAX-MIN=0のときのみ、無彩色として扱われるが、人間は、実際、目視により色を認識する場合、MAX-MIN=0を正確に満たしていなくても無彩色として画素を認識する。そのため、ノイズ画素を除去するために、パラメータDMAX-MINを設定した。
 図10および図11におけるDMAX-MINは、DMAX-MIN=MAX-MINを表し、DMAX-MINより誤差の小さい画素を無彩色(白-灰色-黒)と見なすことにする。DMAX-MIN値を“0”から“5”ずつ増加させていったときの画像への影響について評価した結果が図10および図11に示す結果である。
 DMAX-MIN値を大きくしていくと、無彩色は、取り除かれていき、カラー領域(有彩色領域)とグレー領域(無彩色領域)をある程度分離できることがわかった。これは、グレー領域とカラー領域との識別におけるロバスト性が向上したからである。また、カラー領域同士も、Hue値の差によって識別できる。
 次に、彩度(Saturation)による画像評価について説明する。図12は、図6に示すサンプル画像のRGB値から式(2)を用いてS値に変換した値(0~1の範囲)を256階調に規格化して8ビットグレー画像とした図である。また、図13は、図7に示すサンプル画像のRGB値から式(2)を用いてS値に変換した値(0~1の範囲)を256階調に規格化して8ビットグレー画像とした図である。
 彩度の場合、MAX-MIN=0またはMAX=0のときのみ、無彩色として扱っているため、道路の領域なども彩度を持っている。
 そこで、図5から解るように、彩度(S)が低い領域は、色相(H)による色の識別が非常に困難であることに注目し、各画素のS値の値をしきい値として、無彩色領域と有彩色領域とを2値化することを考える。
 図12および図13は、しきい値としての彩度(S)を0~50まで10刻みで変化させたときの画像への影響を示す。そして、図12および図13に示す画像は、しきい値よりも小さい彩度(S)を持つ画素を白(255)、しきい値以上の彩度を持つ画素を黒(0)として2値化した画像である。
 図12および図13を参照して、彩度(S)値が50よりも小さい画素を無彩色、彩度(S)値が50以上である画素を有彩色として扱うことにより、無彩色領域と有彩色領域との識別に関して良い結果が得られた。他のサンプル画像に対しても評価を行なったが、彩度のしきい値を50付近に設定すると、良い結果が得られた。
 上述したように、HSV色空間について検討した結果、RGB色空間では、画像分割が難しかった画像(たとえば、図6に示す人と机の分離、および図7に示す車のボディー部分の抽出)に対して、HSV色空間を用いることによって、カラー領域と、人間の目から見て無彩色に近い色とを分離したり、色合いは同じでも光の当たり具合で明度や彩度に違いが生じる領域を同一領域として分割できることが解った。
 しかし、HSV色空間は、無彩色領域の画像分割には適していない。それは、図5から解るように、彩度が低くなると、色合いを殆ど識別することができず、Hue値が意味を持たなくなるからである。
 そこで、この発明においては、RGB値と、HSV値との両方のカラー空間を用いて、画素間の結合重みを決定し、それぞれの色空間が苦手とする色領域をお互いが補うことにしたのである。
 そして、結合重み決定回路2がRGB値、色相および彩度を用いて結合重みを決定する場合、HS変換回路25は、一般的には、式(1)および式(2)を用いて、RGB値を色相(H)および彩度(S)に変換する。
 しかし、式(1)および式(2)を用いてRGB値を色相(H)および彩度(S)に変換する場合、HS変換回路25を除算器を用いて構成する必要があり、除算器を用いたHS変換回路25の実現方法は、演算に複数のサイクルを要するため、1サイクルでの処理の要求を満たすことができない。また、回路面積が大きくなるという問題もある。
 そこで、テーブルマッピングによる方法が考えられる。すなわち、RGB値を式(1)および式(2)を用いて予め計算したH値およびS値をメモリに保存しておき、それぞれのRGB値に対応するアドレスから計算結果を読み出すことで使用時の処理を削減する。
 しかし、R,G,Bは、それぞれ、8ビットのデータであるため、((2×9)ビットの大容量のメモリが必要であり、デコーダの回路面積が大きくなるという問題がある。
 そこで、この発明においては、好ましくは、H(0~360度)およびS(0~1)を複数のビン(領域)に分けることで計算結果をビンの数に限定し、その上でテーブルを参照して色相(H)および彩度(S)を求める。この方法によれば、除算器を一切使用せず、回路面積を抑えたRGB値からHSV値への変換回路を実現できる。
 図14は、色相(Hue)のビンの構成図である。図14を参照して、色相(Hue)のビン構成は、3段構成からなり、360度のHue値を90個のビンで構成する。
 Hue値の決定方法について説明する。まず、1段目(最も内側の円)で、注目画素が赤(01)、緑(10)、および青(11)のどのカテゴリに属するかをMAXに基づいて決定する。
 次に、MINを決定し、式(1)からMAXの条件に対応した式の分数部分が正か負かを決定する。分数部分が負である場合、“0”となり、分数部分が正である場合、“1”となる(2段目)。
 最後に、15個のビンのうちのどのビンに対応するかを決定すれば、注目画素が90個のビンで構成されたHue値のどのビンに対応するかが解る(3段目)。
 上述したHue値の決定方法においては、2段目までは、R,G,B値の大小関係から容易に決定できる。そこで、3段目の1~15のビンの決定方法について説明する。
 式(1)の分数部分を取出し、次の関係式を作成する。
Figure JPOXMLDOC01-appb-M000006
 式(6)において、MEDは、MAXおよびMIN以外のR,G,Bのいずれかの値、すなわち、中間値を表す。
 式(6)を変形すると、次式が得られる。
Figure JPOXMLDOC01-appb-M000007
 そして、式(7)におけるXの値を1から14まで変化させたときに生成される14個の不等式の成立結果(1,0)からビン番号を決定する。
 図15は、図2に示すHS変換回路25に含まれる色相変換回路の構成を示す概略図である。HS変換回路25は、図15に示す色相変換回路250を含む。図15を参照して、色相変換回路250は、決定回路251と、データ生成回路252,253と、スイッチ254と、比較回路255~268と、エンコーダ269とを含む。
 決定回路251は、画素値検出回路1から各画素のRGB値を受け、その受けたRGB値の最大値MAX、最小値MINおよび中間値MEDを決定する。そして、決定回路251は、その決定した最大値MAXをデータ生成回路252へ出力し、中間値MEDをデータ生成回路253へ出力し、最小値MINをデータ生成回路252,253へ出力する。
 データ生成回路252は、決定回路251から最大値MAXおよび最小値MINを受け、その受けた最大値MAXおよび最小値MINに基づいて、Xを1から14まで変化させた14個のX×(MAX-MIN)を順次演算し、その演算した14個のX×(MAX-MIN)(X=1~14)をスイッチ254へ出力する。すなわち、データ生成回路252は、式(7)の右辺のBを演算し、その演算したBをスイッチ254へ出力する。
 また、データ生成回路253は、決定回路251から中間値MEDおよび最小値MINを受け、その受けた中間値MEDおよび最小値MINに基づいて、15×(MED-MIN)を演算し、その演算した15×(MED-MIN)をスイッチ254へ出力する。すなわち、データ生成回路253は、式(7)の左辺のAを演算し、その演算したAをスイッチ254へ出力する。
 スイッチ254は、14個のX×(MAX-MIN)(X=1~14)をデータ生成回路252から受け、15×(MED-MIN)をデータ生成回路253から受ける。そしてスイッチ254は、1×(MAX-MIN)および15×(MED-MIN)を比較回路255へ出力し、2×(MAX-MIN)および15×(MED-MIN)を比較回路256へ出力し、以下、同様にして、14×(MAX-MIN)および15×(MED-MIN)を比較回路268へ出力する。
 比較回路255は、1×(MAX-MIN)および15×(MED-MIN)をスイッチ254から受け、1×(MAX-MIN)を15×(MED-MIN)と比較する。そして、比較回路255は、その比較結果をエンコーダ269へ出力する。より具体的には、比較回路255は、15×(MED-MIN)<1×(MAX-MIN)が成立するとき、“1”をエンコーダ269へ出力し、15×(MED-MIN)<1×(MAX-MIN)が成立しないとき、“0”をエンコーダ269へ出力する。
 比較回路256は、2×(MAX-MIN)および15×(MED-MIN)をスイッチ254から受け、2×(MAX-MIN)を15×(MED-MIN)と比較する。そして、比較回路256は、その比較結果(1または0)をエンコーダ269へ出力する。
 以下、同様にして、比較回路268は、14×(MAX-MIN)および15×(MED-MIN)をスイッチ254から受け、14×(MAX-MIN)を15×(MED-MIN)と比較する。そして、比較回路268は、その比較結果(1または0)をエンコーダ269へ出力する。
 なお、比較回路255~268は、平行してX×(MAX-MIN)を15×(MED-MIN)と比較し、その比較結果をエンコーダ269へ出力する。したがって、エンコーダ269は、比較結果を示す14ビットのデータを比較回路255~268から受ける。
 エンコーダ269は、14ビットからなる比較結果を比較回路255~268から受け、その受けた14ビットの比較結果に基づいて、ビン番号を決定する。より具体的には、エンコーダ269は、[01000000000000]の比較結果を比較回路255~268から受けたとき、ビン番号を“2”と決定し、[00000000010000]の比較結果を比較回路255~268から受けたとき、ビン番号を“10”と決定する。なお、エンコーダ269は、全てが“0”からなる[00000000000000]の比較結果を比較回路255~268から受けたとき、ビン番号を“15”と決定する。
 そして、エンコーダ269は、その決定したビン番号をHueビン番号としてDラッチ回路26へ出力する。
 上述したように、データ生成回路252は、X×(MAX-MIN)を演算し、データ生成回路253は、15×(MED-MIN)を演算するので、データ生成回路252,253の各々を加算器とシフト器とを用いた簡単な回路により実現できる。
 次に、RGB値から彩度(S)への変換について説明する。図16は、彩度(S)のビンの構成図である。図16を参照して、0~0.1の範囲の彩度(S)は、1のビンに割り当てられ、0.1~0.15の範囲の彩度(S)は、2のビンに割り当てられ、0.15~0.1625の範囲の彩度(S)は、3のビンに割り当てられ、0.1625~0.1750の範囲の彩度(S)は、4のビンに割り当てられ、0.1750~0.1875の範囲の彩度(S)は、5のビンに割り当てられ、0.1875~0.2の範囲の彩度(S)は、6のビンに割り当てられる。また、0.2~0.2125の範囲の彩度(S)は、7のビンに割り当てられ、0.2125~0.2250の範囲の彩度(S)は、8のビンに割り当てられ、0.2250~0.2375の範囲の彩度(S)は、9のビンに割り当てられ、0.2375~0.25の範囲の彩度(S)は、10のビンに割り当てられ、0.25~0.30の範囲の彩度(S)は、11のビンに割り当てられ、0.3~1.0の範囲の彩度(S)は、12のビンに割り当てられる。
 このように、彩度(S)は、彩度境界である0.2付近にある程、細分されたビンに割り当てられる。
 RGB値から彩度(S)への変換も、RGB値から色相(H)への変換と同様な方法を用いる。彩度(S)の計算が必要になるのは、2つの画素のうちの一方の画素が無彩色領域に属し、他方の画素が有彩色領域に属する場合である。すなわち、2つの画素が彩度境界(S=0.2)を間に挟んだ関係にある場合である。
 そこで、図16に示すように、彩度境界(S=0.2)の付近に限定して細かいビンに分ける。彩度のビンは、次の2つの式(8),(9)の成立結果を元に12個のビンへ彩度を割り当てる。
Figure JPOXMLDOC01-appb-M000008
Figure JPOXMLDOC01-appb-M000009
 式(8)および式(9)の分母を払うと、それぞれ、式(10)および式(11)が得られる。
Figure JPOXMLDOC01-appb-M000010
Figure JPOXMLDOC01-appb-M000011
 図17は、図2に示すHS変換回路25に含まれる彩度変換回路の構成を示す概略図である。HS変換回路25は、図17に示す彩度変換回路270を含む。図17を参照して、彩度変換回路270は、決定回路271と、データ生成回路272~275と、スイッチ276と、比較回路277~288と、エンコーダ289とを含む。
 決定回路271は、画素値検出回路1からRGB値を受け、その受けたRGB値の最大値MAXおよび最小値MINを決定する。そして、決定回路271は、その決定した最大値MAXをデータ生成回路272~275へ出力し、その決定した最小値MINをデータ生成回路274,275へ出力する。
 データ生成回路272は、決定回路271から最大値MAXを受け、その受けた最大値MAXを用いて、Yを2,3,6と変化させたY×MAXを順次演算し、その演算した3個のY×MAX(Y=2,3,6)をスイッチ276へ出力する。すなわち、データ生成回路272は、式(10)の右辺のDを演算し、その演算したDをスイッチ276へ出力する。
 データ生成回路273は、決定回路271から最大値MAXを受け、その受けた最大値MAXを用いて、Zを12から20まで変化させたZ×MAXを順次演算し、その演算した9個のZ×MAX(Z=12~20)をスイッチ276へ出力する。すなわち、データ生成回路253は、式(11)の右辺のFを演算し、その演算したFをスイッチ276へ出力する。
 データ生成回路274は、決定回路271から最大値MAXおよび最小値MINを受け、その受けた最大値MAXおよび最小値MINを用いて20×(MAX-MIN)を演算し、その演算した20×(MAX-MIN)をスイッチ276へ出力する。すなわち、データ生成回路274は、式(10)の左辺のCを演算し、その演算したCをスイッチ276へ出力する。
 データ生成回路275は、決定回路271から最大値MAXおよび最小値MINを受け、その受けた最大値MAXおよび最小値MINを用いて80×(MAX-MIN)を演算し、その演算した80×(MAX-MIN)をスイッチ276へ出力する。すなわち、データ生成回路275は、式(11)の左辺のEを演算し、その演算したEをスイッチ276へ出力する。
 スイッチ276は、データ生成回路272から3個のY×MAX(Y=2,3,6)を受け、データ生成回路273から9個のZ×MAX(Z=12~20)を受け、データ生成回路274から20×(MAX-MIN)を受け、データ生成回路275から80×(MAX-MIN)を受ける。
 そして、スイッチ276は、2×MAXおよび20×(MAX-MIN)を比較回路277へ出力し、3×MAXおよび20×(MAX-MIN)を比較回路278へ出力し、6×MAXおよび20×(MAX-MIN)を比較回路279へ出力する。
 また、スイッチ276は、12×MAXおよび80×(MAX-MIN)を比較回路280へ出力し、13×MAXおよび80×(MAX-MIN)を比較回路281へ出力し、以下、同様にして、20×MAXおよび80×(MAX-MIN)を比較回路288へ出力する。
 比較回路277は、2×MAXおよび20×(MAX-MIN)をスイッチ276から受け、2×MAXを20×(MAX-MIN)と比較し、その比較結果をエンコーダ289へ出力する。より具体的には、比較回路277は、20×(MAX-MIN)<2×MAXが成立するとき、“1”をエンコーダ289へ出力し、20×(MAX-MIN)<2×MAXが成立しないとき、“0”をエンコーダ289へ出力する。
 また、比較回路278は、3×MAXおよび20×(MAX-MIN)をスイッチ276から受け、3×MAXを20×(MAX-MIN)と比較し、20×(MAX-MIN)<3×MAXが成立するとき、“1”をエンコーダ289へ出力し、20×(MAX-MIN)<3×MAXが成立しないとき、“0”をエンコーダ289へ出力する。
 同様にして、比較回路279は、6×MAXおよび20×(MAX-MIN)をスイッチ276から受け、6×MAXを20×(MAX-MIN)と比較し、20×(MAX-MIN)<6×MAXが成立するとき、“1”をエンコーダ289へ出力し、20×(MAX-MIN)<6×MAXが成立しないとき、“0”をエンコーダ289へ出力する。
 比較回路280は、12×MAXおよび80×(MAX-MIN)をスイッチ276から受け、12×AMXを80×(MAX-MIN)と比較し、その比較結果をエンコーダ289へ出力する。より具体的には、比較回路280は、80×(MAX-MIN)<12×MAXが成立するとき、“1”をエンコーダ289へ出力し、80×(MAX-MIN)<12×MAXが成立しないとき、“0”をエンコーダ289へ出力する。
 比較回路281は、13×MAXおよび80×(MAX-MIN)をスイッチ276から受け、13×AMXを80×(MAX-MIN)と比較し、80×(MAX-MIN)<13×MAXが成立するとき、“1”をエンコーダ289へ出力し、80×(MAX-MIN)<13×MAXが成立しないとき、“0”をエンコーダ289へ出力する。
 以下、同様にして、比較回路288は、20×MAXおよび80×(MAX-MIN)をスイッチ276から受け、20×AMXを80×(MAX-MIN)と比較し、80×(MAX-MIN)<20×MAXが成立するとき、“1”をエンコーダ289へ出力し、80×(MAX-MIN)<20×MAXが成立しないとき、“0”をエンコーダ289へ出力する。
 なお、比較回路277~288は、上述した比較を平行して行ない、その比較結果を平行してエンコーダ289へ出力する。したがって、エンコーダ289は、12ビットのデータを比較回路277~288から受ける。
 エンコーダ289は、12ビットからなる比較結果を比較回路277~288から受け、その受けた12ビットの比較結果に基づいて、ビン番号を決定する。より具体的には、エンコーダ289は、[100000000000]の比較結果を比較回路277~288から受けたとき、ビン番号を“1”と決定し、[000000100000]の比較結果を比較回路277~288から受けたとき、ビン番号を“7”と決定する。エンコーダ289は、その他の12ビットの比較結果を受けたときも、同様にしてビン番号を決定する。
 そして、エンコーダ289は、その決定したビン番号をSビン番号としてDラッチ回路26へ出力する。
 上述したように、データ生成回路272は、Y×MAXを演算し、データ生成回路273は、Z×MAXを演算し、データ生成回路274は、20×(MAX-MIN)を演算し、データ生成回路275は、80×(MAX-MIN)を演算するので、データ生成回路272~275の各々を加算器とシフト器とを用いた簡単な回路により実現できる。
 結合重みの決定方法について説明する。図18は、結合重みを決定する方法を説明するための図である。図18を参照して、外側の円は、色相(Hue)を表しており、また、中心から円周方向へ彩度をとっている。
 カラー領域と、色合いを殆ど識別できない無彩色に近い色とを分離するのにしきい値Sthとして0.2付近が適していることが実験的に解ったので、0.2を彩度の境界とする。内側の円は、彩度が0.2である境界を表し、0.2よりも彩度が低い領域は、ほぼ無彩色に近い色であり、0.2よりも彩度が高い領域は、有彩色として扱う。また、図中の×は、画素を表している。
 2つの画素についてそれぞれ彩度S1,S2を演算し、その演算した2つの彩度S1,S2をしきい値Sth(=0.2)と比較する。
 そして、2つの彩度S1,S2の両方がしきい値Sth以下であるとき、2つの画素は、無彩色領域に属すると判定し(図18の(a)の場合)、RGB値のみに基づいて、式(4),(5)を用いて2つの画素間の結合重みを決定する。
 また、2つの彩度S1,S2のうち、いずれか一方がしきい値Sth以下であるとき、2つの画素のうち、一方が無彩色領域に属し、他方が有彩色領域に属すると判定し(図18の(b)の場合)、RGB値および彩度(S)を用いて2つの画素間の結合重みを決定する。
 さらに、2つの彩度S1,S2の両方がしきい値Sthよりも大きいとき、2つの画素の両方が有彩色領域に属すると判定し(図18の(c)の場合)、RGB値および色相(H)を用いて2つの画素間の結合重みを決定する。
 このように、この発明においては、実験的に求められたしきい値Sth(=0.2)を用いて、2つの画素が無彩色領域および有彩色領域のいずれに属するかを決定する。これによって、2つの画素がどの領域に属するかを正確に決定できる。
 また、しきい値Sth(=0.2)は、人間が目視によって色合いを殆ど識別できない無彩色に近い色と、カラー領域とを分離するために実験的に求められたので、人間の実際の識別に沿って2つの画素がどの領域に属するかを正確に決定できる。
 図18の(a)に示す場合、結合重みをHSV色空間の色相(H)を用いて計算しても、無彩色領域では、色相が意味を持たないため、領域の分割精度の向上を期待できない。HSV色空間の輝度成分(V)を用いることも可能であるが、シミュレーションによりRGB値を用いた方が精度が向上するので、図18の(a)に示す領域では、RGB値のみを用いて結合重みを決定する。
 また、図18の(b)に示す場合、図6に示すサンプル画像の人物の領域でリーダセルが見つかり、机の領域に領域が成長しており、無彩色領域からカラー領域へ領域が広がったために生じた分割ミスである。逆に、カラー領域から無彩色領域へ成長する場合もある。サンプル画像のように、人物と机の重なりによって発生する影の影響で色が徐々に変化し、はっきりとしたエッジが領域境界に現れない場合、RGB値だけでは、分割は難しい。
 この問題を解決するために、彩度(S)を用いて実験的に求めたS=0.2の彩度境界をしきい値として、カラー領域(机領域)と無彩色領域(人物領域)との境界を検出することにした。
 そして、2つの画素が無彩色領域と有彩色領域とに属する場合、彩度(S)を用いて無彩色領域と有彩色領域との境界を決定し、境界面に属する2つの画素間の結合重みを、RGB値の計算で求めた結合重みの値よりも小さく設定することで、有彩色領域から無彩色領域へ、または無彩色領域から有彩色領域へ領域の成長を抑制する方向に結合重みを決定する。これによって、画像分割において、有彩色領域から無彩色領域へ、または無彩色領域から有彩色領域への領域の成長が抑制され、コントラストが低い入力画像に対しても、画像を正確に分割できる。
 さらに、図18の(c)に示す場合、RGB値を元に決定した画素間の結合重みでは、光の反射などにより輝度および彩度に変化が生じた場合、画素間の各成分の差は大きくなるため、結合重みは小さい値になる。そのため、図7に示すサンプル画像では、同一領域をまとめて抽出することが困難であった。
 そこで、輝度および彩度が変化しても、色合いそのものは、さほど変化しないことに注目し、色相(H)を用いた色相判定を取り入れる。有彩色領域に属する画素同士の結合重みの決定には、まず、2つの画素の色相比較を行ない、色相の差があるしきい値以内であるか否か、つまり、2つの画素が同一色相とみなせる範囲であるか否かの判定を行なう。そして、同一色相であると判定した場合、RGB値から決定した結合重みが小さいときは(つまり、反射などの影響でRGB色空間では差が大きいとき)、領域を助長する方向へ、より大きい結合重みを与える。これにより、類似色相に属する有彩色領域の画素同士は、領域が成長し易くなり、反射などにより輝度および彩度が変化する領域を1領域としてまとめて抽出することができる。
 図18の(a),(b),(c)の各場合における具体的な結合重みの決定方法について説明する。
 図18の(a)に示す場合、結合重みは、式(4),(5)によりRGB値のみを用いて決定されるが、式(4),(5)を用いて結合重みを演算する回路をディジタル回路として実装する場合、除算器は、回路面積が大きく、複数のクロックサイクルを必要とすることから、この発明においては、デコーダを用いてテーブルマッピングによって結合重みを決定する。表1は、RGB値のみを用いて結合重みを決定するときの変換テーブルを示す。
Figure JPOXMLDOC01-appb-T000001
 表1に示す変換テーブルは、注目画素(i,j)と近傍画素(k,l)との2画素のRGB値を用いて演算した輝度Ii,jと輝度Ik,lとの差の絶対値|Ii,j-Ik,l|と、結合重みとの対応関係を示す。
 したがって、この発明においては、図18の(a)に示す場合、2つの画素(i,j),(k,l)のRGB値に基づいて、2つの輝度Ii,j,Ik,lを演算し、その演算した2つの輝度Ii,j,Ik,lの差の絶対値|Ii,j-Ik,l|を演算し、その演算した絶対値|Ii,j-Ik,l|に対応する結合重みを表1を参照して抽出することにより、2つの画素(i,j),(k,l)の結合重みを決定する。
 次に、図18の(b)に示す場合、領域が広がるのを抑制するために、RGB色空間から表1の変換テーブルを用いて得られた結合重みよりも小さい結合重みを与える。
 この場合、彩度境界(S=0.2)をしきい値として無彩色と有彩色との2値に分別したとき、彩度境界付近の画素間の結合重みと、彩度境界から完全に離れた彩度の全く異なる画素間の結合重みとを同様の基準で扱わないように、結合重みを決定する。
 図19は、反射による画素値への影響を示す図である。また、図20は、彩度境界を変化させたときの無彩色画素値の変化を示す図である。
 図19の(a)は、入力画像を示し、図19の(b)は、図19の(a)に示す道路の画像を、彩度境界(S=0.2)をしきい値として無彩色(0)と有彩色(1)とに2値化した画像を示し、図19の(c)は、画像分割の結果を示す。
 図19の(b)から解るように、画像の道路部分は、実験的に求めた彩度境界(S=0.2)を無彩色領域と有彩色領域との分別のしきい値として用いると、画像中央を境に同一領域が有彩色領域と無彩色領域とに分かれて分類されてしまう。その結果、図19の(c)に示すように、道路は、彩度境界を境に領域の成長が抑制され、分割画像は、RGB色空間を用いた場合よりも精度が低下してしまう。
 図20を参照して、曲線k1は、画像中にカラー領域を含む画像に対する無彩色画素数の変化を示し、曲線k2は、画像中にカラー領域を含まないグレー画像に対する無彩色画素数の変化を示す。
 図20から解るように、カラー領域を含む画像は、彩度境界が50~60付近(S=0.2)を境に無彩色画素数が飽和している。一方、グレー画像の場合、無彩色画素数は、線形的に変化し続ける。
 この結果から、彩度境界を挟む2つの画素間の結合重みを領域が成長しない領域まで急激に下げてしまうと、彩度境界によってうまく無彩色領域と有彩色領域とを分けることができなかった場合、グレー領域の分割精度が低下する。
 そこで、彩度境界に近い画素同士に対しては、結合重みの下げ幅を小さくし、彩度境界から離れるに従って結合重みの下げ幅を大きくする。これによって、グレー領域の分割精度を向上できる。
 図18の(b)に示す場合における結合重みの変換テーブルを表2に示す。
Figure JPOXMLDOC01-appb-T000002
 表2から解るように、絶対値|Ii,j-Ik,l|が001x_xxxx,0000_1xxx,0000_01xx,0000_001x,0000_000xである場合、結合重みは、彩度差|Si,j-Sk,l|が大きくなるに従って、RGB値のみを用いて決定した結合重み(表1参照)からの下げ幅を大きくして決定される。
 最後に、図18の(c)に示す場合の具体的な結合重みの決定方法について説明する。カラー画像では、反射などの影響がない場合、RGB色空間による結合重みの決定によって精度の高い領域分割結果が得られることが解っている。そのため、反射の影響を受けた画素間の結合重みに対してのみ、HSV色空間を用いて結合重みを最適化することが好ましい。
 そこで、R,G,Bの各成分が乱反射の影響によって連続画素間でどの程度変化するかをサンプル画像を用いて調べた。図21は、R,G,Bの各成分の乱反射による影響を示す図である。
 図21の(a)は、評価に用いたサンプル画像を示し、図21の(b)は、図21の(a)に示す線分A-B間上の画素のR,G,B値の変化を示し、図21の(c)は、図21の(a)に示す線分C-D間上の画素のR,G,B値の変化を示す。すなわち、図21の(b)は、光の反射の影響を受ける車のボディー領域の画素値の変化を示し、図21の(c)は、光の反射の影響を受けていない道路領域の画素値の変化を示す。
 図21を参照して、ボディー領域は、道路領域に比べ、連続画素間で画素値の変化が大きい。そして、光の反射による画素間の変化量は、30から100の間に集中していることが反射領域を持つサンプル画像から解った。つまり、画素値の差が非常に小さい領域、または、逆に画素値の差が非常に大きい領域は、光の反射による影響を受けていないと判定することにする。
 そこで、この発明においては、色相(H)の評価結果を利用した結合重みの最適化を表1に示す01xx_xxxx,001x_xxxx,0001_xxxxに限定することで、RGB値によるカラー領域の分割精度を保持しつつ、色相(H)によって精度を向上させることができる。
 次に、2画素のHue値の差を元に、表1の01xx_xxxx,001x_xxxx,0001_xxxxにおける結合重みをどの値まで引き上げるかを検討する。色相(H)の幅を大きく取り過ぎると、異なる色まで領域が成長してしまう。たとえば、色相の近い赤と橙色の画素値が同一色相として扱われると、2領域を分離することが困難になる。
 逆に、色相(H)の幅を小さくし過ぎると、RGB値から色相(H)への変換計算には、除算が必要であるため、回路面積が大きくなる。
 そこで、実装面積と分割精度との両方を考慮してシミュレーションした結果、色相(H)の最小単位を4度に設定した場合、色相の近い色も分割できることが解った。
 図22は、赤の車のボディーのHue値のヒストグラムを示す図である。また、図23は、青の車のボディーのHue値のヒストグラムを示す図である。
 図22および図23を参照して、ヒストグラムの山を中心にして±10度幅に殆どの画素が集中して抽出されている。また、画素間のHue値の差は、同一領域(同一色)中では、約10度以内と非常に変化量が小さい。
 したがって、上述した実験の結果を考慮して、2画素間のHue値の差|Hij-Hkl|に対して、4度以下、5度以上8度以下、およびそれ以外の3つの判定条件を設けて、図18の(c)に示す場合の結合重みの変換テーブルを表3に示すように決定した。
Figure JPOXMLDOC01-appb-T000003
 このように、2つの画素の色相差が4度変化するごとに2つの画素間の結合重みを変化させる。そして、色相差が小さい程、大きな結合重みが与えられる。
 図24は、図2に示す重み計算ユニット32の構成図である。図24を参照して、重み計算ユニット32は、結合重み演算回路320と、色相差計算回路330と、彩度差計算回路340と、結合重み修正回路350,360と、セレクタ信号生成回路370と、セレクタ380とを含む。
 結合重み演算回路320は、Dラッチ回路22およびFIFO回路23から受けた2つのRGB値に基づいて、表1を用いて2つの画素間の結合重みを演算し、その演算した結合重みを結合重み修正回路350,360およびセレクタ380へ出力する。
 結合重み演算回路320は、絶対値演算器321,323,325と、エンコーダ322,324,326と、最小値選択回路327とを含む。
 絶対値演算器321は、Dラッチ回路22およびFIFO回路23から受けた2つのR値R,Rに基づいて、輝度I(R),I(R)を演算し、その演算した輝度I(R),I(R)の差の絶対値|I(R)-I(R)|を演算する。そして、絶対値演算器321は、その演算した絶対値|I(R)-I(R)|をエンコーダ322へ出力する。
 エンコーダ322は、表1を保持しており、絶対値演算器321から絶対値|I(R)-I(R)|を受けると、表1を参照して、絶対値|I(R)-I(R)|に対応する結合重みWA,B(R)を抽出し、その抽出した結合重みWA,B(R)を最小値選択回路327へ出力する。
 絶対値演算器323は、Dラッチ回路22およびFIFO回路23から受けた2つのG値G,Gに基づいて、輝度I(G),I(G)を演算し、その演算した輝度I(G),I(G)の差の絶対値|I(G)-I(G)|を演算する。そして、絶対値演算器323は、その演算した絶対値|I(G)-I(G)|をエンコーダ324へ出力する。
 エンコーダ324は、表1を保持しており、絶対値演算器323から絶対値|I(G)-I(G)|を受けると、表1を参照して、絶対値|I(G)-I(G)|に対応する結合重みWA,B(G)を抽出し、その抽出した結合重みWA,B(G)を最小値選択回路327へ出力する。
 絶対値演算器325は、Dラッチ回路22およびFIFO回路23から受けた2つのB値B,Bに基づいて、輝度I(B),I(B)を演算し、その演算した輝度I(B),I(B)の差の絶対値|I(B)-I(B)|を演算する。そして、絶対値演算器325は、その演算した絶対値|I(B)-I(B)|をエンコーダ326へ出力する。
 エンコーダ326は、表1を保持しており、絶対値演算器325から絶対値|I(B)-I(B)|を受けると、表1を参照して、絶対値|I(B)-I(B)|に対応する結合重みWA,B(B)を抽出し、その抽出した結合重みWA,B(B)を最小値選択回路327へ出力する。
 最小値選択回路327は、エンコーダ322,324,326からそれぞれ結合重みWA,B(R),WA,B(G),WA,B(B)を受け、その受けた3個の結合重みWA,B(R),WA,B(G),WA,B(B)の中から最小の結合重みWA,Bを選択する。そして、最小値選択回路327は、その選択した結合重みWA,Bを結合重み修正回路350,360およびセレクタ380へ出力する。
 色相差計算回路330は、図14に示すHueビン番号の割当図を保持しており、Dラッチ回路27およびFIFO回路28からそれぞれHueビン番号およびHueビン番号を受ける。そして、色相差計算回路330は、図14に示すHueビン番号の割当図を参照して、その受けたHueビン番号およびHueビン番号に対応するHue値H,Hを検出する。そうすると、色相差計算回路330は、色相差|H-H|を演算し、その演算した色相差|H-H|を結合重み修正回路350へ出力する。
 彩度差計算回路340は、図16に示すSビン番号の割当図を保持しており、Dラッチ回路27およびFIFO回路28からそれぞれSビン番号およびSビン番号を受ける。そして、彩度差計算回路340は、図16に示すSビン番号の割当図を参照して、その受けたSビン番号およびSビン番号に対応するS値S,Sを検出する。そうすると、彩度差計算回路340は、彩度差|S-S|を演算し、その演算した彩度差|S-S|を結合重み修正回路360へ出力する。
 結合重み修正回路350は、表3を保持しており、結合重み演算回路320から結合重みWA,Bを受け、色相差計算回路330から色相差|H-H|を受ける。そして、結合重み修正回路350は、表3を参照して、結合重みWA,Bに一致する絶対値|Iij-Ikl|を抽出する。
 その後、結合重み修正回路350は、その抽出した絶対値|Iij-Ikl|が表3に示す1xxx_xxxx,0000_1xxx,0000_01xx,0000_001x,0000_000xのいずれかである場合、1xxx_xxxx,0000_1xxx,0000_01xx,0000_001x,0000_000xに対応する結合重みWA,B_Hを表3から抽出し、その抽出した結合重みWA,B_Hをセレクタ380へ出力する。
 また、結合重み修正回路350は、その抽出した絶対値|Iij-Ikl|が表3に示す01xx_xxxxである場合、色相差|H-H|が“4”以下であるか否かを判定し、色相差|H-H|が“4”以下である場合、16からなる結合重みWA,B_Hを表3から抽出し、その抽出した結合重みWA,B_H(=16)をセレクタ380へ出力する。一方、結合重み修正回路350は、色相差|H-H|が“4”以下でない場合、4からなる結合重みWA,B_Hを表3から抽出し、その抽出した結合重みWA,B_H(=4)をセレクタ380へ出力する。
 さらに、結合重み修正回路350は、その抽出した絶対値|Iij-Ikl|が表3に示す001x_xxxxである場合、色相差|H-H|が“4”以下であるか否かを判定し、色相差|H-H|が“4”以下である場合、32からなる結合重みWA,B_Hを表3から抽出し、その抽出した結合重みWA,B_H(=32)をセレクタ380へ出力する。一方、結合重み修正回路350は、色相差|H-H|が“4”以下でない場合、色相差|H-H|が“8”以下であるか否かをさらに判定し、色相差|H-H|が“8”以下である場合、16からなる結合重みWA,B_Hを表3から抽出し、その抽出した結合重みWA,B_H(=16)をセレクタ380へ出力する。一方、結合重み修正回路350は、色相差|H-H|が“8”以下でない場合、8からなる結合重みWA,B_Hを表3から抽出し、その抽出した結合重みWA,B_H(=8)をセレクタ380へ出力する。
 さらに、結合重み修正回路350は、その抽出した絶対値|Iij-Ikl|が表3に示す0001_xxxxである場合、色相差|H-H|が“4”以下であるか否かを判定し、色相差|H-H|が“4”以下である場合、32からなる結合重みWA,B_Hを表3から抽出し、その抽出した結合重みWA,B_H(=32)をセレクタ380へ出力する。一方、結合重み修正回路350は、色相差|H-H|が“4”以下でない場合、16からなる結合重みWA,B_Hを表3から抽出し、その抽出した結合重みWA,B_H(=16)をセレクタ380へ出力する。
 結合重み修正回路360は、表2を保持しており、結合重み演算回路320から結合重みWA,Bを受け、彩度差計算回路340から彩度差|S-S|を受ける。そして、結合重み修正回路360は、表2を参照して、結合重みWA,Bに一致する絶対値|Iij-Ikl|を抽出する。
 また、結合重み修正回路360は、彩度差|S-S|が“6”以下であるか否かを判定し、彩度差|S-S|が“6”以下である場合、結合重みWA,Bに一致する絶対値|Iij-Ikl|と、“if≦6”とに対応する結合重みWA,B_Sを表2から抽出し、その抽出した結合重みWA,B_Sをセレクタ380へ出力する。
 一方、結合重み修正回路360は、彩度差|S-S|が“6”以下でない場合、彩度差|S-S|が“9”以下であるか否かをさらに判定し、彩度差|S-S|が“9”以下である場合、結合重みWA,Bに一致する絶対値|Iij-Ikl|と、“else if≦9”とに対応する結合重みWA,B_Sを表2から抽出し、その抽出した結合重みWA,B_Sをセレクタ380へ出力する。
 一方、結合重み修正回路360は、彩度差|S-S|が“9”以下でない場合、彩度差|S-S|が“12”以下であるか否かをさらに判定し、彩度差|S-S|が“12”以下である場合、結合重みWA,Bに一致する絶対値|Iij-Ikl|と、“else if≦12”とに対応する結合重みWA,B_Sを表2から抽出し、その抽出した結合重みWA,B_Sをセレクタ380へ出力する。
 一方、結合重み修正回路360は、彩度差|S-S|が“12”以下でない場合、結合重みWA,Bに一致する絶対値|Iij-Ikl|と、“else”とに対応する結合重みWA,B_Sを表2から抽出し、その抽出した結合重みWA,B_Sをセレクタ380へ出力する。
 セレクタ信号生成回路370は、しきい値Sth(=0.2)および図16に示すSビン番号の割当図を保持しており、Dラッチ回路27およびFIFO回路28からそれぞれSビン番号およびSビン番号を受ける。そして、セレクタ信号生成回路370は、図16に示すSビン番号の割当図を参照して、その受けたSビン番号およびSビン番号に対応するS値S,Sを検出する。
 そうすると、セレクタ信号生成回路370は、その検出した2つのS値S,Sをしきい値Sthと比較する。そして、セレクタ信号生成回路370は、2つのS値S,Sの両方がしきい値Sth以下であるとき、結合重み演算回路320から受けた結合重みWA,Bを選択するためのセレクタ信号SEL_RGBを生成し、その生成したセレクタ信号SEL_RGBをセレクタ380へ出力する。
 また、セレクタ信号生成回路370は、2つのS値S,Sのいずれか一方がしきい値Sth以下であるとき、結合重み修正回路360から受けた結合重みWA,B_Sを選択するためのセレクタ信号SEL_Sを生成し、その生成したセレクタ信号SEL_Sをセレクタ380へ出力する。
 さらに、セレクタ信号生成回路370は、2つのS値S,Sの両方がしきい値Sthよりも大きいとき、結合重み修正回路350から受けた結合重みWA,B_Hを選択するためのセレクタ信号SEL_Hを生成し、その生成したセレクタ信号SEL_Hをセレクタ380へ出力する。
 セレクタ380は、結合重み演算回路320から結合重みWA,Bを受け、結合重み修正回路350,360からそれぞれ結合重みWA,B_H,WA,B_Sを受ける。そして、セレクタ380は、セレクタ信号生成回路370からセレクタ信号SEL_RGBを受けると、結合重みWA,Bを選択し、その選択した結合重みWA,Bを結合重みCWとして出力する。また、セレクタ380は、セレクタ信号生成回路370からセレクタ信号SEL_Sを受けると、結合重みWA,B_Sを選択し、その選択した結合重みWA,B_Sを結合重みCWとして出力する。さらに、セレクタ380は、セレクタ信号生成回路370からセレクタ信号SEL_Hを受けると、結合重みWA,B_Hを選択し、その選択した結合重みWA,B_Hを結合重みCWとして出力する。
 図2に示す重み計算ユニット33は、図24に示す重み計算ユニット32と同じ構成からなり、Dラッチ回路21,24から受けたRGB値RGB,RGBと、Dラッチ回路26,29から受けたHueビン番号、Hueビン番号、Sビン番号、およびSビン番号に基づいて、重み計算ユニット32と同じ方法によって、結合重みWA,B,WA,B_H,WA,B_Sを演算し、その演算した結合重みWA,B,WA,B_H,WA,B_Sのいずれかを結合重みCWとして選択して出力する。
 また、図2に示す重み計算ユニット34は、図24に示す重み計算ユニット32と同じ構成からなり、Dラッチ回路24から受けたRGB値RGBと、Dラッチ回路29から受けたHueビン番号およびSビン番号と、選択器30から受けたRGB値RGB、Hueビン番号およびSビン番号とに基づいて、重み計算ユニット32と同じ方法によって、結合重みWA,B,WA,B_H,WA,B_Sを演算し、その演算した結合重みWA,B,WA,B_H,WA,B_Sのいずれかを結合重みCWとして選択して出力する。
 さらに、図2に示す重み計算ユニット35は、図24に示す重み計算ユニット32と同じ構成からなり、Dラッチ回路21から受けたRGB値RGBと、Dラッチ回路26から受けたHueビン番号およびSビン番号と、選択器31から受けたRGB値RGB、Hueビン番号およびSビン番号とに基づいて、重み計算ユニット32と同じ方法によって、結合重みWA,B,WA,B_H,WA,B_Sを演算し、その演算した結合重みWA,B,WA,B_H,WA,B_Sのいずれかを結合重みCWとして選択して出力する。
 画像分割回路3における画像の分割方法について説明する。図25は、画像の分割方法を説明するための図である。画像分割回路3は、領域成長型画像分割方法によって1つのフレームを各対象物の画像に分割する。
 この領域成長型画像分割方法は、LEGIONモデル(D. L. Wang, and D. Terman, “Image segmentation based on oscillator correlation,” Neural Computation, Volume 9(4), pp. 805-836(1997).)の振動子ネットワークの各画素に対する振動子の振る舞いを自己発火(Self-Excitation)、自己発火可能(Self-Excitable)、発火(Excitation)および鎮火(Inhibition)という4つの状態で取り扱うものである。そして、この領域成長型画像分割方法は、初期化、自己発火、発火、および鎮火の4つのステップからなる。
 画像分割回路3は、図25の(a)に示す3×3の構成からなる入力画像を受ける。そして、画像分割回路3は、入力画像を構成する9個の画素における画素間の8個の結合重みCW1~CW8を結合重み決定回路2から受け、その受けた8個の結合重みCW1~CW8を各画素間に対応付けてメモリに保持する。なお、図25の(b)においては、(2,2)の画素と周囲の画素との8個の結合重みが図示されている。
 そうすると、画像分割回路3は、メモリに保持された8個の結合重みCW1~CW8を読み出し、その読み出した8個の結合重みCW1~CW8の和SUM(CW)を演算する。そして、画像分割回路3は、その演算した和SUM(CW)がリーダセルを決定するためのしきい値φよりも大きいか否かを判定する。なお、この出願においては、SUMは、数学におけるシグマ記号によって表される和を演算することを意味する。
 画像分割回路3は、和SUM(CW)がしきい値φよりも大きいと判定したとき、結合重みの計算の中心となった画素をリーダセルに設定し、リーダセルフラグpij=1を設定する。一方、画像分割回路3は、和SUM(CW)がしきい値φ以下であると判定したとき、結合重みの計算の中心となった画素をリーダセルに設定せず、リーダセルフラグpij=0を設定する。
 画像分割回路3は、この処理を入力画像の9個の画素の各々を結合重みの計算の中心となる画素に設定して実行し、リーダセルを決定する(図25の(c)参照)。
 その後、画像分割回路3は、リーダセルの1つを自己発火させる(発火フラグxij=1)(図25の(d)参照)。そして、画像分割回路3は、各セル(i,j)に隣接する8個の画素に対応するセル(k,l)∈Nijが発火していれば、セル(i,j)とセル(k,l)との間の結合重みの和SUM(k,l)∈Nij∧xkl=1ij;klを演算し、その演算した和SUM(k,l)∈Nij∧xkl=1ij;klがしきい値φよりも大きく、かつ、まだ、セル(i,j)がどの分割領域にも属していない(ラベルフラグlij=0)場合に、自動的に発火(xij=1)させる(引火・領域成長)(図25の(e)参照)。この引火処理によって、領域が広がっていき、図25の(f)に示すように、新たに発火するセルが存在しなくなると、1領域の分割が終了する。
 その後、画像分割回路3は、この分割された領域を保存するために、図25の(g)に示すように、発火しているセルへ分割領域識別のためのラベル番号を書き込み、発火したセルが既に分割されたセルであることを示すラベルフラグをセットし(lij=1)、鎮火処理(xij=0,pij=0)を行なう。
 画像分割回路3は、鎮火処理が終了すると、再び、次の領域の分割のための自己発火の処理に戻る。そして、画像分割回路3は、リーダセルが存在しなくなるまで、上述した処理を繰り返し実行し、各領域を分割する。そして、画像分割回路3は、全てのリーダセルが発火した後、全ての領域にラベル付けを行ない、1フレームの画像の分割を終了する(図25の(h)参照)。
 図26は、この発明による画像分割方法を説明するためのフローチャートである。図26を参照して、一連の動作が開始されると、画素値検出回路1は、n×n(nは、2以上の整数)からなる入力画像の各画素GEij(1≦i≦n,1≦j≦n)のRGB値RGBij(1≦i≦n,1≦j≦n)を検出し(ステップS1)、その検出した各画素のRGB値RGBijを結合重み決定回路2へ出力する。
 結合重み決定回路2は、画素値検出回路1から各画素GEij(1≦i≦n,1≦j≦n)のRGB値RGBij(1≦i≦n,1≦j≦n)を受け、その受けた各画素GEij(1≦i≦n,1≦j≦n)のRGB値RGBij(1≦i≦n,1≦j≦n)を上述した方法によって色相Hij(1≦i≦n,1≦j≦n)および彩度Sij(1≦i≦n,1≦j≦n)に変換し、RGB値RGBij(1≦i≦n,1≦j≦n)、色相Hij(1≦i≦n,1≦j≦n)および彩度Sij(1≦i≦n,1≦j≦n)に基づいて、各画素間の結合重みWij;kl(1≦i≦n,1≦j≦n,1≦k≦n,1≦l≦n)を決定する(ステップS2)。そして、結合重み決定回路2は、その決定した各画素間の結合重みWij;kl(1≦i≦n,1≦j≦n,1≦k≦n,1≦l≦n)を画像分割回路3へ出力する。
 画像分割回路3は、外部から入力画像を受け、結合重み決定回路2から各画素間の結合重みWij;kl(1≦i≦n,1≦j≦n,1≦k≦n,1≦l≦n)を受ける。そして、画像分割回路3は、その受けた各画素間の結合重みWij;kl(1≦i≦n,1≦j≦n,1≦k≦n,1≦l≦n)を用いて1フレームの画像を分割する(ステップS3)。そして、一連の動作は、終了する。
 図27は、図26に示すステップS2の詳細な動作を説明するためのフローチャートである。なお、図27においては、図3に示す画素GE1を画素GEijとし、画素GE2を画素GEklとし、画素GE3を画素GEi+1,jとし、画素GE4を画素GEk+1,lとしてステップS2の詳細な動作を説明する。
 図27を参照して、図26に示すステップS1の後、結合重み決定回路2は、画素値検出回路1から複数の画素GEij(1≦i≦n,1≦j≦n)の複数のRGB値RGBij(1≦i≦n,1≦j≦n)を順次受ける。そして、結合重み決定回路2は、i=1,j=1,k=1,l=1を設定する(ステップS21)。
 そして、結合重み決定回路2は、入力画像の複数の画素GEij(1≦i≦n,1≦j≦n)のうち、画素値検出回路1から順次入力される隣接する2つの画素GEij,GEkl(1≦k≦n,1≦l≦n)を選択する(ステップS22)。
 その後、結合重み決定回路2は、HS変換回路25によって、画素GEijのRGB値RGBijを上述した方法によって色相Hijおよび彩度Sijに変換し(ステップS23)、画素GEklのRGB値RGBklを上述した方法によって色相Hklおよび彩度Sklに変換する(ステップS24)。
 そして、結合重み決定回路2において、4組の隣接画素GEij,GEkl;GEi+1,j,GEkl;GEij,GEk+1,l;GEi+1,j,GEk+1,lのRGB値が色相および彩度に変換されたか否かが判定される(ステップS25)。
 ステップS25において、4組の隣接画素GEij,GEkl;GEi+1,j,GEkl;GEij,GEk+1,l;GEi+1,j,GEk+1,lのRGB値が色相および彩度に変換されていないと判定されたとき、i,kのいずれかまたは両方が“1”だけ変化される(ステップS26)。その後、一連の動作は、ステップS22へ戻り、ステップS25において、4組の隣接画素GEij,GEkl;GEi+1,j,GEkl;GEij,GEk+1,l;GEi+1,j,GEk+1,lのRGB値が色相および彩度に変換されたと判定されるまで、ステップS22~ステップS26が繰り返し実行される。
 そして、ステップS25において、4組の隣接画素GEij,GEkl;GEi+1,j,GEkl;GEij,GEk+1,l;GEi+1,j,GEk+1,lのRGB値が色相および彩度に変換されたと判定されると、結合重み決定回路2の4個の重み計算ユニット32~35は、平行して隣接画素間の結合重みを決定する(ステップS27~ステップS30)。
 この場合、重み計算ユニット32は、画素GEkl,GEi+1,j間の結合重みWk,l;i+1,jを決定し、重み計算ユニット33は、画素GEij,GEk+1,l間の結合重みWij;k+1,lを決定し、重み計算ユニット34は、画素GEij,GEkl間の結合重みWij;klを決定し、重み計算ユニット35は、画素GEi+1,j,GEk+1,l間の結合重みWi+1,j;k+1,lを決定する。
 ステップS27~ステップS30の後、結合重み決定回路2において、i=n、かつ、j=nであるか否かが判定され(ステップS31)、i=n、かつ、j=nでないとき、i,jのいずれかまたは両方が“1”だけ変化され(ステップS32)、k=1およびl=1が設定される(ステップS33)。
 その後、一連の動作は、ステップS22へ戻り、ステップS31において、i=n、かつ、j=nであると判定されるまで、ステップS22~ステップS33が繰り返し実行される。
 そして、ステップS31において、i=n、かつ、j=nであると判定されると、一連の動作は、図26のステップS3へ移行する。
 図28は、図27に示すステップS27の詳細な動作を説明するためのフローチャートである。図28を参照して、図27のステップS25の“YES”の後、重み計算ユニット32の結合重み演算回路320は、FIFO回路23から受けたRGB値RGBklと、Dラッチ回路22から受けたRGB値RGBi+1,jとに基づいて、上述した方法によって、画素GEkl,GEi+1,j間の結合重みWi+1,j;kl_RGBを決定し、その決定した結合重みWi+1,j;kl_RGBを結合重み修正回路350,360およびセレクタ380へ出力する。
 また、色相差計算回路330は、FIFO回路28から画素GEklのHueビン番号を受け、Dラッチ回路27から画素GEi+1,jのHueビン番号を受ける。そして、色相差計算回路330は、図14に示すHueビン番号の割当図を参照して、Hueビン番号に対応する色相Hklを抽出し、Hueビン番号に対応する色相Hi+1,jを抽出する。
 そうすると、色相差計算回路330は、色相Hklと色相Hi+1,jとの色相差|Hkl-Hi+1,j|を演算し、その演算した色相差|Hkl-Hi+1,j|を結合重み修正回路350へ出力する。
 結合重み修正回路350は、色相差計算回路330から色相差|Hkl-Hi+1,j|を受け、結合重み演算回路320から結合重みWi+1,j;kl_RGBを受ける。そして、結合重み修正回路350は、表3を参照して、結合重みWi+1,j;kl_RGBおよび色相差|Hkl-Hi+1,j|に基づいて、上述した方法によって結合重みWi+1,j;kl_Hを抽出し、その抽出した結合重みWi+1,j;kl_Hをセレクタ380へ出力する。
 さらに、彩度差計算回路340は、FIFO回路28から画素GEklのSビン番号を受け、Dラッチ回路27から画素GEi+1,jのSビン番号を受ける。
 そして、彩度差計算回路340は、図16に示すSビン番号の割当図を参照して、Sビン番号に対応する彩度Sklを抽出し、Sビン番号に対応する彩度Si+1,jを抽出する。
 そうすると、彩度差計算回路340は、彩度Sklと彩度Si+1,jとの彩度差|Skl-Si+1,j|を演算し、その演算した彩度差|Skl-Si+1,j|を結合重み修正回路360へ出力する。
 結合重み修正回路360は、彩度差計算回路340から彩度差|Skl-Si+1,j|を受け、結合重み演算回路320から結合重みWi+1,j;kl_RGBを受ける。そして、結合重み修正回路360は、表2を参照して、結合重みWi+1,j;kl_RGBおよび彩度差|Skl-Si+1,j|に基づいて、上述した方法によって結合重みWi+1,j;kl_Sを抽出し、その抽出した結合重みWi+1,j;kl_Sをセレクタ380へ出力する。
 一方、重み計算ユニット32のセレクタ信号生成回路370は、FIFO回路28から画素GEklのSビン番号を受け、Dラッチ回路27から画素GEi+1,jのSビン番号を受ける。
 そして、セレクタ信号生成回路370は、図16に示すSビン番号の割当図を参照して、Sビン番号に対応する彩度Sklを抽出し、Sビン番号に対応する彩度Si+1,jを抽出する。
 そうすると、セレクタ信号生成回路370は、彩度Si+1,jがしきい値Sth(=0.2)以下であり、かつ、彩度Sklがしきい値Sth(=0.2)以下であるか否かを判定する(ステップS271)。
 ステップS271において、彩度Si+1,jがしきい値Sth(=0.2)以下であり、かつ、彩度Sklがしきい値Sth(=0.2)以下であると判定されたとき、セレクタ信号生成回路370は、セレクタ信号SEL_RGBを生成し、その生成したセレクタ信号SEL_RGBをセレクタ380へ出力する。
 セレクタ380は、結合重み演算回路320から結合重みWi+1,j;kl_RGBを受け、結合重み修正回路350から結合重みWi+1,j;kl_Hを受け、結合重み修正回路360から結合重みWi+1,j;kl_Sを受ける。そして、セレクタ380は、セレクタ信号生成回路370からセレクタ信号SEL_RGBを受けると、セレクタ信号SEL_RGBに応じて、3個の結合重みWi+1,j;kl_RGB,Wi+1,j;kl_H,Wi+1,j;kl_Sから結合重みWi+1,j;kl_RGBを選択し、その選択した結合重みWi+1,j;kl_RGBを結合重みWi+1,j;klと決定する。つまり、重み計算ユニット32は、RGB値RGBi+1,j,RGBklによって結合重み結合重みWi+1,j;klを決定する(ステップS272)。そして、重み計算ユニット32は、その決定した結合重みWi+1,j;klを画像分割回路3へ出力する。
 一方、ステップS271において、彩度Si+1,jがしきい値Sth(=0.2)以下であり、かつ、彩度Sklがしきい値Sth(=0.2)以下でないと判定されたとき、セレクタ信号生成回路370は、彩度Si+1,j,Sklの一方のみがしきい値Sth(=0.2)以下であるか否かをさらに判定する(ステップS273)。
 そして、ステップS273において、彩度Si+1,j,Sklの一方のみがしきい値Sth(=0.2)以下であると判定されたとき、セレクタ信号生成回路370は、セレクタ信号SEL_Sを生成し、その生成したセレクタ信号SEL_Sをセレクタ380へ出力する。
 セレクタ380は、セレクタ信号生成回路370からセレクタ信号SEL_Sを受けると、セレクタ信号SEL_Sに応じて、3個の結合重みWi+1,j;kl_RGB,Wi+1,j;kl_H,Wi+1,j;kl_Sから結合重みWi+1,j;kl_Sを選択し、その選択した結合重みWi+1,j;kl_Sを結合重みWi+1,j;klと決定する。つまり、重み計算ユニット32は、RGB値RGBi+1,j,RGBklおよび彩度Si+1,j,Sklによって結合重み結合重みWi+1,j;klを決定する(ステップS274)。そして、重み計算ユニット32は、その決定した結合重みWi+1,j;klを画像分割回路3へ出力する。
 一方、ステップS273において、彩度Si+1,j,Sklの一方のみがしきい値Sth(=0.2)以下でないと判定されたとき、セレクタ信号生成回路370は、セレクタ信号SEL_Hを生成し、その生成したセレクタ信号SEL_Hをセレクタ380へ出力する。
 セレクタ380は、セレクタ信号生成回路370からセレクタ信号SEL_Hを受けると、セレクタ信号SEL_Hに応じて、3個の結合重みWi+1,j;kl_RGB,Wi+1,j;kl_H,Wi+1,j;kl_Sから結合重みWi+1,j;kl_Hを選択し、その選択した結合重みWi+1,j;kl_Hを結合重みWi+1,j;klと決定する。つまり、重み計算ユニット32は、RGB値RGBi+1,j,RGBklおよび色相Hi+1,j,Hklによって結合重み結合重みWi+1,j;klを決定する(ステップS275)。そして、重み計算ユニット32は、その決定した結合重みWi+1,j;klを画像分割回路3へ出力する。
 そうすると、ステップS272,S274,S275のいずれかの後、一連の動作は、図27のステップS31へ移行する。
 なお、ステップS274は、RGB値RGB値RGBi+1,j,RGBklのみによって結合重みWi+1,j;kl_RGBを決定するステップと、その決定した結合重みWi+1,j;kl_RGBを彩度Si+1,j,Sklの彩度差|Si+1,j-Skl|に応じて小さくするステップとからなる。
 また、ステップS275は、RGB値RGB値RGBi+1,j,RGBklのみによって結合重みWi+1,j;kl_RGBを決定するステップと、その決定した結合重みWi+1,j;kl_RGBを色相Hi+1,j,Hklの色相差|Hi+1,j-Hkl|に応じて大きくするステップとからなる。
 さらに、図27に示すステップS28~ステップ30の各々における詳細な動作も、図28に示すステップS271~ステップS275によって実行される。
 図29は、図26に示すステップS3の詳細な動作を説明するためのフローチャートである。図29を参照して、図26に示すステップS2の後、画像分割回路3は、結合重み決定回路2から1フレームを構成する複数の画素における各画素間の結合重みを受けるとともに、上述した方法によって、リーダセルを決定する(ステップS41)。
 そして、画像分割回路3は、自己発火可能なセルを検出したか否かを判定し(ステップS42)、自己発火可能なセルを検出したと判定したとき、上述した方法によって自己発火を行なう(ステップS43)。
 その後、画像分割回路3は、発火セルが存在するか否かを判定し(ステップS44)、発火セルが存在するとき、上述した方法によって周囲へ引火(領域成長)を行なう(ステップS45)。そして、一連の動作は、ステップS44へ戻り、ステップS44において、発火セルが存在しなくなるまで、ステップS44,S45が繰り返し実行される。
 ステップS44において、発火セルが存在しないと判定されると、画像分割回路3は、上述した方法によって、引火終了・領域決定を行なうとともに、ラベル付け(鎮火)を行なう(ステップS46)。その後、一連の動作は、ステップS42へ戻り、ステップS42において、自己発火可能なセルが検出されないと判定されるまで、ステップS42~ステップS46が繰り返し実行される。
 そして、ステップS42において、自己発火可能なセルが検出されないと判定されると、一連の動作は、図26の“終了”へ移行する。
 なお、画像分割装置10は、図26(図27~図29)に示すフローチャートを繰り返し実行し、各フレームを各対象物の画像に分割する。
 上述したように、この発明においては、隣接する2つの画素の2つの彩度の両方がしきい値Sth以下であるとき、2つの画素のRGB値のみによって2つの画素間の結合重みを決定し(ステップS272参照)、2つの彩度の一方のみがしきい値Sth以下であるとき、2つの画素のRGB値および彩度によって2つの画素間の結合重みを決定し(ステップS274参照)、2つの画素の2つの彩度の両方がしきい値Sthよりも大きいとき、2つのRGB値および色相によって結合重みを決定する(ステップS275参照)。
 そして、ステップS274において決定される結合重みは、ステップS272において決定される結合重みよりも小さく、ステップS275において決定される結合重みは、ステップS272において決定される結合重み以上である。
 このように、2つの画素の2つの彩度の少なくとも一方の彩度がしきい値Sthよりも大きいとき、彩度または色相を用いて2つの画素間の結合重みを決定する。
 したがって、コントラストの低いカラー画像または光の反射による影響があるカラー画像における画素間の結合重みを正確に決定できる。
 また、2つの画素が無彩色領域と有彩色領域とに属するとき、結合重みが、RGB値のみによって決定した結合重みよりも小さく決定されるので(ステップS274参照)、画像分割において領域成長が抑制され、2つの画素の両方が有彩色領域に属するとき、結合重みが、RGB値のみによって決定した結合重み以上に決定されるので(ステップS275参照)、画像分割において領域成長が促進される。
 したがって、コントラストの低いカラー画像または光の反射による影響があるカラー画像を正確に分割できる。
 図30は、この発明による画像分割装置10を用いた物体追跡装置の構成図である。図30を参照して、物体追跡装置20は、画像分割装置10に追跡回路4を追加したものである。
 追跡回路4は、画像分割回路3から分割画像DVG1,DVG2を順次受け、その受けた分割画像DVG1,DVG2によって表された物体の特徴量CH1,CH2を抽出する。そして、追跡回路4は、その抽出した物体の特徴量CH1,CH2を用いて分割画像DVG1,DVG2間で物体のパターンマッチングを行ない、動きベクトルを検出するとともに、物体の推定位置を求める。
 なお、物体の特徴量CH1,CH2は、たとえば、物体の高さ、色および面積等からなる。また、パターンマッチングは、マンハッタン距離等を演算し、最小のマンハッタン距離等を求めることにより行なう。
 上述したように、画像分割装置10は、画像を正確に分割できるので、追跡回路4は、正確に分割された画像を用いて物体を正確に追跡できる。
 上記においては、RGB値から彩度(S)または色相(H)への変換は、加算器およびシフト器を用いて行なわれると説明したが、この発明においては、これに限らず、回路面積が問題とならない等の特別な制約がない場合、除算器を用いた回路によってRGB値を彩度(S)または色相(H)へ変換してもよい。
 また、上記においては、しきい値Sthは、0.2に設定されると説明したが、この発明においては、これに限らず、しきい値Sthは、0.2以外の値であってもよく、一般的には、画像分割の対象となる入力画像の各物体の色合いに基づいて実験的に決定される。
 さらに、上記においては、画像分割は、領域成長型画像分割方法を用いて行なわれると説明したが、この発明においては、これに限らず、画像分割は、“B. Jaehne, “Digital Image Processing 5th revised and extended edition,” Springer-Verlag, pp. 427-440, 2001.”の文献、“J. C. Russ, “The Image Processing Handbook,” CRC PRESS, pp. 371-429, 1999.36”の文献、“T. Braeunl, S. Feyrer, W. Rapf, and M. Reinhardt, “Parallel Image Processing,”Springer-Verlag, 2000.”の文献、および“W. Y. Ma, and B. S. Manjunath, “Edgeflow: a technique for boundary detection and segmentation,” IEEE Transactions on Image Processing, vol. 9 (8), pp. 1375-1388, 2004.”の文献のいずれかに記載された方法を用いて行なわれてもよい。
 なお、この発明においては、RGB値のみによって決定された結合重みは、「第1の結合重み」を構成し、RGB値および彩度(S)によって決定される結合重みは、第1の結合重みよりも小さい「第2の結合重み」を構成し、RGB値および色相(H)によって決定される結合重みは、第1の結合重み以上である「第3の結合重み」を構成する。
 また、表3に示す画素値の差01xx_xxxxは、「第1の値」を構成し、画素値の差0001_xxxxは、第1の値よりも大きい「第2の値」を構成する。
 今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は、上記した実施の形態の説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。
 この発明は、カラー画像からなる入力画像を各対象物の画像に正確に分割可能な画像分割装置に適用される。また、この発明は、カラー画像からなる入力画像を各対象物の画像に正確に分割可能な画像分割方法に適用される。

Claims (17)

  1.  2つの画素の両方が無彩色からなるとき、前記2つの画素のRGB値を用いて前記2つの画素間の結合重みである第1の結合重みを決定し、前記2つの画素の一方が無彩色からなるとき、前記第1の結合重みよりも小さい第2の結合重みを前記2つの画素間の結合重みとして決定し、前記2つの画素の両方が有彩色からなるとき、前記第1の結合重み以上の第3の結合重みを前記2つの画素間の結合重みとして決定する結合重み決定処理を1つのフレームの各画素間について実行する結合重み決定回路と、
     前記結合重み決定回路によって決定された第1から第3の結合重みに基づいて、前記1つのフレームを各対象物の画像に分割する画像分割回路とを備える画像分割装置。
  2.  前記結合重み決定回路は、前記2つの画素のRGB値に基づいて前記2つの画素の第1および第2の彩度を演算するとともに、その演算した第1および第2の彩度を無彩色と有彩色との境界を示すしきい値と比較して前記2つの画素が前記無彩色および前記有彩色のいずれからなるかを判定し、その判定結果に基づいて前記第1から第3の結合重みのいずれかを前記2つの画素間の結合重みとして決定する、請求の範囲第1項に記載の画像分割装置。
  3.  前記結合重み決定回路は、加算器およびシフト器とを用いて前記2つの画素のRGB値に基づいて前記2つの画素の第1および第2の彩度を演算する、請求の範囲第2項に記載の画像分割装置。
  4.  前記結合重み決定回路は、前記演算した第1および第2の彩度の両方が前記しきい値以下であるとき、前記2つの画素の両方が前記無彩色からなると判定し、前記第1および第2の彩度の一方が前記しきい値以下であるとき、前記2つの画素の一方が前記無彩色からなり、かつ、前記2つの画素の他方が前記有彩色からなると判定し、前記第1および第2の彩度の両方が前記しきい値よりも大きいとき、前記2つの画素の両方が前記有彩色からなると判定する、請求の範囲第2項に記載の画像分割装置。
  5.  前記結合重み決定回路は、前記2つの画素の両方が前記無彩色からなると判定したとき、前記2つの画素のRGB値のみを用いて前記第1の結合重みを決定し、前記2つの画素の一方が前記無彩色からなり、かつ、前記2つの画素の他方が前記有彩色からなると判定したとき、前記2つの画素のRGB値および彩度を用いて前記第2の結合重みを決定し、前記2つの画素の両方が前記有彩色からなると判定したとき、前記2つの画素のRGB値および色相を用いて前記第3の結合重みを決定する、請求の範囲第3項に記載の画像分割装置。
  6.  前記結合重み決定回路は、前記RGB値のみを用いて前記第1の結合重みを演算するとともに、前記2つの画素の一方が前記無彩色からなり、かつ、前記2つの画素の他方が前記有彩色からなると判定したとき、前記演算した第1の結合重みを前記2つの画素の彩度の差である彩度差に応じて小さくすることにより前記第2の結合重みを決定し、前記2つの画素の両方が前記有彩色からなると判定したとき、前記2つの画素の色相の差である色相差に応じて前記第1の結合重みを大きくすることにより前記第3の結合重みを決定する、請求の範囲第5項に記載の画像分割装置。
  7.  前記結合重み決定回路は、前記2つの画素の両方が前記有彩色からなると判定したとき、前記2つの画素のRGB値に基づいて前記2つの画素の第1および第2の色相を演算するとともに、その演算した第1および第2の色相の差を前記色相差として演算し、その演算した色相差を用いて前記第3の結合重みを決定する、請求の範囲第6項に記載の画像分割装置。
  8.  前記結合重み決定回路は、加算器およびシフト器とを用いて前記2つの画素のRGB値に基づいて前記2つの画素の第1および第2の色相を演算する、請求の範囲第7項に記載の画像分割装置。
  9.  前記結合重み決定回路は、前記2つの画素の一方が前記無彩色からなり、かつ、前記2つの画素の他方が前記有彩色からなると判定した場合において、前記彩度差が相対的に小さいとき、前記第1の結合重みからの下げ幅を相対的に小さくして前記第2の結合重みを決定し、前記彩度差が相対的に大きいとき、前記第1の結合重みからの下げ幅を相対的に大きくして前記第3の結合重みを決定する、請求の範囲第6項に記載の画像分割装置。
  10.  前記結合重み決定回路は、前記2つの画素のRGB値の差と、前記彩度差と、前記第1の結合重みから前記彩度差に応じて小さくした修正結合重みとの対応表を保持しており、前記2つの画素の前記彩度差を演算すると、その演算した彩度差に対応する修正結合重みを前記対応表から抽出し、その抽出した修正結合重みを前記第2の結合重みとして決定する、請求の範囲第9項に記載の画像分割装置。
  11.  前記結合重み決定回路は、前記2つの画素の両方が前記有彩色からなると判定した場合において、前記2つの画素のRGB値の差が光の反射の影響を受けていることを示すとき、前記色相差に応じて前記第1の結合重み以上の値を設定して前記第3の結合重みを決定する、請求の範囲第6項に記載の画像分割装置。
  12.  前記結合重み決定回路は、前記2つの画素のRGB値の差が光の反射の影響を受けていないことを示すとき、前記第1の結合重みを前記第3の結合重みとして決定する、請求の範囲第11項に記載の画像分割装置。
  13.  前記結合重み決定回路は、前記2つの画素のRGB値の差と、前記色相差と、前記第1の結合重みから前記色相差に応じて大きくした修正結合重みとの対応表を保持しており、前記2つの画素のRGB値の差が光の反射の影響を受けていることを示すとき、前記2つの画素の前記色相差を演算すると、その演算した色相差に対応する修正結合重みを前記対応表から抽出し、その抽出した修正結合重みを前記第3の結合重みとして決定する、請求の範囲第11項に記載の画像分割装置。
  14.  2つの画素のRGB値を受付ける第1のステップと、
     前記受付けられた2つの画素のRGB値に基づいて、前記2つの画素の第1および第2の色相を演算する第2のステップと、
     前記受付けられた2つの画素のRGB値に基づいて、前記2つの画素の第1および第2の彩度を演算する第3のステップと、
     前記第1および第2の彩度の両方が無彩色と無彩色との境界を示すしきい値以下であるか否かを判定する第4のステップと、
     前記第4のステップにおいて、前記第1および第2の彩度の両方が前記しきい値以下であると判定されたとき、前記2つの画素のRGB値のみを用いて前記2つの画素間の結合重みである第1の結合重みを決定する第5のステップと、
     前記第4のステップにおいて、前記第1および第2の彩度の一方が前記しきい値以下であると判定されたとき、前記2つの画素のRGB値と、前記第1および第2の彩度とを用いて前記第1の結合重みよりも小さい第2の結合重みを前記2つの画素間の結合重みとして決定する第6のステップと、
     前記第4のステップにおいて、前記第1および第2の彩度の両方が前記しきい値よりも大きいと判定されたとき、前記2つの画素のRGB値と、前記第1および第2の色相とを用いて前記第1の結合重み以上の第3の結合重みを前記2つの画素間の結合重みとして決定する第7のステップと、
     前記第1のステップから前記第7のステップを1つのフレームに含まれる全ての画素間について実行する第8のステップと、
     前記第8のステップを実行して決定された第1から第3の結合重みに基づいて、前記1つのフレームを各対象物の画像に分割する第9のステップとを備える画像分割方法。
  15.  前記第6のステップは、
     前記RGB値のみを用いて前記第1の結合重みを演算する第1のサブステップと、
     前記演算した第1の結合重みを前記2つの画素の彩度の差である彩度差に応じて小さくすることにより前記第2の結合重みを決定する第2のサブステップとを含み、
     前記第7のステップは、
     前記RGB値のみを用いて第1の結合重みを演算する第3のサブステップと、
     前記2つの画素が光の反射の影響を受けていることを示すとき、前記演算した第1の結合重みを前記2つの画素の色相の差である色相差に応じて大きくすることにより前記第3の結合重みを決定する第4のサブステップと、
     前記2つの画素が光の反射の影響を受けていないことを示すとき、前記演算された第1の結合重みを前記第3の結合重みとして決定する第5のサブステップとを含む、請求の範囲第14項に記載の画像分割方法。
  16.  前記第2のサブステップにおいて、前記彩度差が相対的に小さいとき、前記第1の結合重みからの下げ幅を相対的に小さくして前記第2の結合重みを決定し、前記彩度差が相対的に大きいとき、前記第1の結合重みからの下げ幅を相対的に大きくして前記第2の結合重みを決定する、請求の範囲第15項に記載の画像分割方法。
  17.  前記光の反射の影響を受けている画素は、前記2つの画素のRGB値の差が第1の値と前記第1の値よりも大きい第2の値との間で存在する画素である、請求の範囲第15項に記載の画像分割方法。
PCT/JP2008/002066 2008-07-31 2008-07-31 画像分割装置および画像分割方法 Ceased WO2010013291A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US12/601,595 US7853075B2 (en) 2008-07-31 2008-07-31 Image segmentation apparatus and image segmentation method
PCT/JP2008/002066 WO2010013291A1 (ja) 2008-07-31 2008-07-31 画像分割装置および画像分割方法
JP2008542958A JP4229980B1 (ja) 2008-07-31 2008-07-31 画像分割装置および画像分割方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2008/002066 WO2010013291A1 (ja) 2008-07-31 2008-07-31 画像分割装置および画像分割方法

Publications (1)

Publication Number Publication Date
WO2010013291A1 true WO2010013291A1 (ja) 2010-02-04

Family

ID=40445133

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2008/002066 Ceased WO2010013291A1 (ja) 2008-07-31 2008-07-31 画像分割装置および画像分割方法

Country Status (3)

Country Link
US (1) US7853075B2 (ja)
JP (1) JP4229980B1 (ja)
WO (1) WO2010013291A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010123114A (ja) * 2008-10-24 2010-06-03 Hiroshima Univ 画像分割装置および画像分割方法

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009239418A (ja) * 2008-03-26 2009-10-15 Seiko Epson Corp 画像処理装置、画像処理方法、およびプログラム
US8131068B2 (en) * 2008-06-06 2012-03-06 Nikon Corporation Image matching device and camera
US8150150B2 (en) * 2009-03-02 2012-04-03 Himax Technologies Limited Method and system of extracting a perceptual feature set
US8625889B2 (en) * 2010-12-30 2014-01-07 Samsung Electronics Co., Ltd. System for food recognition method using portable devices having digital cameras
JP5671349B2 (ja) * 2011-01-06 2015-02-18 任天堂株式会社 画像処理プログラム、画像処理装置、画像処理システム、および画像処理方法
KR101767269B1 (ko) * 2011-04-25 2017-08-10 한국전자통신연구원 영상 검색 장치 및 방법
JP5000781B1 (ja) * 2011-11-09 2012-08-15 楽天株式会社 画像処理装置、画像処理装置の制御方法、プログラム、及び情報記憶媒体
TWI510101B (zh) * 2013-09-12 2015-11-21 Au Optronics Corp 飽和度調整方法與色彩調整系統
DE102014106224A1 (de) * 2014-05-05 2015-11-05 Carl Zeiss Microscopy Gmbh Verfahren zum Segmentieren eines Farbbildes sowie digitales Mikroskop
US11608417B2 (en) * 2017-06-30 2023-03-21 Nutrition & Biosciences USA 4, Inc. Polysaccharide-elastomer masterbatch compositions
CN116113984A (zh) * 2020-09-17 2023-05-12 国立大学法人广岛大学 皮肤表面分析装置及皮肤表面分析方法
CN116309639A (zh) * 2023-03-16 2023-06-23 北京赛迈特锐医疗科技有限公司 从彩色分类热图中分割关注区域的方法、装置及存储介质
CN121062182B (zh) * 2025-11-10 2026-02-06 德阳洋诚塑业有限公司 一种挤塑拉丝色差检测方法及系统

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1196364A (ja) * 1997-09-17 1999-04-09 Minolta Co Ltd 画像特徴量比較装置および画像特徴量比較プログラムを記録した記録媒体
JP2003346142A (ja) * 2002-05-27 2003-12-05 Univ Hiroshima 画像分割処理方法、画像分割処理装置、リアルタイム画像処理方法、リアルタイム画像処理装置及び画像処理集積化回路

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06259549A (ja) 1993-03-08 1994-09-16 Nippon Telegr & Teleph Corp <Ntt> 画像領域分割装置
JP4071701B2 (ja) * 2003-11-11 2008-04-02 富士通株式会社 カラー画像の圧縮方法及びカラー画像圧縮装置
KR20070008601A (ko) * 2004-03-24 2007-01-17 세르늄 코포레이션 영역에 의한 세그먼트화 이득을 이용한 비디오 분석의 개선
US7653242B2 (en) * 2005-11-15 2010-01-26 Honeywell International Inc. Dynamically adjusting and predicting image segmentation threshold

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1196364A (ja) * 1997-09-17 1999-04-09 Minolta Co Ltd 画像特徴量比較装置および画像特徴量比較プログラムを記録した記録媒体
JP2003346142A (ja) * 2002-05-27 2003-12-05 Univ Hiroshima 画像分割処理方法、画像分割処理装置、リアルタイム画像処理方法、リアルタイム画像処理装置及び画像処理集積化回路

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010123114A (ja) * 2008-10-24 2010-06-03 Hiroshima Univ 画像分割装置および画像分割方法

Also Published As

Publication number Publication date
JPWO2010013291A1 (ja) 2012-01-05
US20100202684A1 (en) 2010-08-12
JP4229980B1 (ja) 2009-02-25
US7853075B2 (en) 2010-12-14

Similar Documents

Publication Publication Date Title
JP4229980B1 (ja) 画像分割装置および画像分割方法
JP4870363B2 (ja) 複数のフォアグランド平面を有する高圧縮画像データファイルの生成装置、方法及びプログラムを記憶した記憶媒体
JP5103665B2 (ja) 物体追跡装置および物体追跡方法
Ganesan et al. Segmentation and edge detection of color images using CIELAB color space and edge detectors
JP5647878B2 (ja) 鋼管内部腐食解析装置及び鋼管内部腐食解析方法
US8768017B2 (en) Image processing apparatus, computer readable recording medium storing therein image processing program, and image processing method
Su et al. Combination of document image binarization techniques
US9773185B2 (en) Image processing apparatus, image processing method, and computer readable recording device
CN107657619B (zh) 一种低照度林火图像分割方法
WO2013080868A1 (ja) 画像処理装置、画像処理方法、及び画像処理プログラム
EP4113433A1 (en) Classification and improvement of quality of vascular images
CN108830874A (zh) 一种数字病理全切片图像空白区域自动分割方法
WO2022267270A1 (zh) 基于多重分形谱的裂纹特征表征方法及系统
JP5223133B2 (ja) 画像分割装置および画像分割方法
CN117474846A (zh) 基于改进lbp算法的光伏电池板缺陷检测方法和装置
CN117710287A (zh) 物料检测方法、装置、电子设备及存储介质
CN112365485A (zh) 一种基于Circular LBP和颜色空间转换算法的黑色素瘤识别方法
CN121095127A (zh) 荧光显微图像智能增强方法、装置及可读存储介质
JP2009027715A (ja) 画像データの色補正方法及びシステム
KR20120042988A (ko) 화상 처리 방법, 화상 처리 장치 및 프로그램
Abraham et al. Low lightness image enhancement using modified DCP based lightness mapping in lab color space
Chen A pcb image self-adaption threshold segmentation method fusing color information and otsu theory
Shu et al. Image enhancement revisited: From first order to second order statistics
Ismail et al. A simple approach to determine the best threshold value for automatic image thresholding
CN108447066A (zh) 胆道图像分割方法、终端、存储介质

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2008542958

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 12601595

Country of ref document: US

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

Ref document number: 08790330

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08790330

Country of ref document: EP

Kind code of ref document: A1