EP0336430A2

Method of extracting contour of subject image from original.

Abstract

An image window (N) is intermittently moved along the contour (CT) of a subject image (I). At respective paused position of the image window, a spacial differential of the density level is calculated for each pixel in the image window. A differential histogram is produced from the respective differentials, and a threshold level (Eth) is determined from the differential histogram and a designated p-tile ratio. A contour image is then obtained by discriminating the respective differentials with the threshold level.

EP0336430A2, drawing sheet 1
Sheet 1 of 15

Term

Term ended

Projected expiry passed 7 April 2009, 17.5 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

22 claims: 9 independent, 13 dependent

  1. 1
    A method of generating contour image data expressing a contour (CT) of a subject image which is included in an original image, said original image being expressed by a plurality of pixels (P) having gradation, said method comprising the steps of:(a) displaying said original image on a display means (9);(b) designating an area (N) on an original image while observing said original image on said display means (9) so that said contour (CT) belongs to said area, characterised in that the method further comprises the steps of;(c) calculating respective spatial differentials (E Fi ) of gradation levels with respect ot pixels (P) being included in said area;(d) determining a threshold level (E th ) for said respective spatial differentials;(e) comparing said respective spatial differentials (E Fi ) with said threshold level (E th ), to thereby classify said pixels (P) in said area into a first group of pixels having differentials larger than said threshold level (E th ) and a second group of pixels having differentials smaller than said threshold level (E th );(f) extracting pixels belonging to said first group from said pixels in said area, to thereby specify extracted pixels;and (g) generating contour image data expressing a contour image (CT) on which said extracted pixels represent said contour (CT).
  2. 5
    6. A method according to claim 5, wherein the criteria is expressed by a variable percentage ratio for the differential histogram.
  3. 6
    7. A method according to claims 4 to 6, wherein (e) further includes a step of (e-1) binarising the respective spatial differentials (E Fi ) with respect to each pixel included in the area, whereby a first logical level is given to pixels belonging to the first group and a second logical level is given to pixels belonging to the second group, said extracted pixels being provided with the first logical level.
  4. 7
    8. A method according to claim 7, wherein (g-1) further includes the steps of (g-11) defining a logical image, with respect to each partial area, on which pixels corresponding to the extracted pixels have said first logical level, and (g-12) taking logical summation between respective logical images obtained in the above step, to thereby obtain said contour image data.
  5. 9
    10. A method according to claim 9, wherein the step (e) further includes the steps of (e-2) appointing a first logical level to pixels belonging to the first group, whereby said extracted pixels are provided with the first logical level, and (e-3) pointing a second logical level to pixels belonging to the second group, and the said (g-­2) further includes the steps of (g-21) defining a logical image with respect to each selected component on which pixels corresponding to the extracted pixels have the first logical level, and (g-22) calculating the logical summation between respective logical images obtained in the previous step, to thereby obtain the contour image data.
  6. 12
    13. A method according to claims 3 - 12, further comprising the steps of (m) designating the initial size of the image window (N) and (n) changing the size of said image window (N) for a designated partial area.
  7. 13
    14. A method according to claim 13, wherein (n) includes the step of (n-1) changing the size of said image window (N) according to the curvature of said contour (CT) on the designated partial area.
  8. 14
    15. A method of generating contour image data expressing a contour (CT) of a subject image which is included in an original image, said original image being expressed by a plurality of pixels having gradation, characterised in that the method comprises the steps of:(p) calculating respective spatial differences (E fi ) of gradation levels with respect to pixels (P) on said original image;(q) comparing said respective spatial differentials (E Fi ) with a threshold level (E th ) to binarise the pixels (P) on the original image, whereby a differential contour image (DC) expressing the contour (CT) is obtained;(r) generating a ring image (RP2) covering the differential contour image (DC) with a margin;(s) dividing said ring image into an inner ring image (PR2 IN ) and an outer ring image (RP2 OUT ) with said differential contour image (DC), said inner and outer ring images (RP2 IN , RP2 OUT ) being separated from each other across a gap corresponding to a reverse image of the differential contour image (DC);(t) deleting one of said inner and outer ring images (RP2 IN , RP2 OUT ) to thereby generate a remaining ring image;(u) combining the remaining ring image with the differential contour image (DC) to generate a composite image (CI) being in the shape of a ring;(v) generating a loop image which expresses a loop extending along an edge of the composite image;and (w) generating the contour image data in accordance with said loop image.
  9. 15
    16. A method according to claim 15, wherein the step (v) includes the steps of (v-1) thinning the composite image (CI) by deleting one of the inner and outer edge portions of the composite image (CI) to obtain a thinned image having the shape of a ring, (v-2) generating a first edge image (EI1, EI2) which expresses inner and outer edges of the thinned image, (v-3) generating a second edge image (XD1, XD2) which expresses inner and outer edges of the ring image, and (v-4) deleting a part of the first edge image (EI1, EI2) at which the second edge image (XD1, XD2) overlaps the first edge image to obtain the loop image.
  10. 17
    18. A method according to claims 16 and 17, wherein the step (v-1) further includes the steps of:(v-11) detecting the inner and outer edge portions (EI1, EI2) of said composite image (CI) and (v-12) deleting one of the inner and outer edge portions (EI1, EI2) which overlaps the first ring image to obtain the thinned image.
  11. 18
    19. A method according to claims 17 or 18, wherein the step (A) includes the steps of:(A-1) arresting movement of the point (TG) at a position wherein a part of the contour (CT) appears in the first window (N1), (A-2) conducting the steps (p) and (q) for pixels within the first image window (N1) whereby a part of the differential contour image is obtained, (A-3) repeating the steps (A-1) and (A-2) while moving the point (TG) along the contour (CT), whereby respective parts of the differential contour image are obtained, and (A-4) connecting the respective parts of the differential contour image together to obtain the whole of the differential contour image.
  12. 19
    20. A method according to claims 15 to 19, further comprising the steps of:(B) displaying the differential contour image (DC) and the ring image on the display means (9) while overlapping the differential contour image (DC) and the ring image with the original image on the display means (9).
  13. 20
    21. A method according to claims 15 to 20, wherein the differential contour image (DC) and the ring image are displayed on the display means (9) in semitransparent colours.
  14. 21
    22. A method according to claims 15 to 21, wherein the differential contour image (DC) has pin holes (PH), the reverse image (DC) of the differential contour image has reversed pin holes (PH) and the reversed pin holes are compensated with the pin holes (PH) through the step (u).