Claims
- 1. An image processing method comprising the steps of:
- inputting image data;
- obtaining two histograms in two dimensions of the input image data;
- detecting a peak coordinate and a peak width of each of a plurality of peaks in the obtained two histograms, each peak having an extent larger than a threshold predetermined for each histogram;
- deciding a plurality of band areas having a width for the respective peak coordinates detected in said detecting step, the width being determined based on an average of the plurality of detected peak widths;
- in each of the decided band areas, obtaining a new histogram of the input image data, the new histogram differing in direction from the histogram in which the peak coordinate for the band area was detected in said detecting step;
- in each of the decided band areas, determining a coordinate of a specific point from a peak position in the new histogram obtained in the band area and from the peak coordinate for the band area;
- selecting two point coordinates among a plurality of specific point coordinates determined in said determining step, the two point coordinates being placed at a distance to each other less than a predetermined threshold; and
- generating a new specific point coordinate as an intersection of two band areas by obtaining an average of the selected two point coordinates.
- 2. A method according to claim 1, wherein the image data is inputted by a scanner.
- 3. An image processing apparatus comprising:
- means for inputting image data;
- first obtaining means for obtaining two histograms in two dimensions of the input image data;
- peak coordinate detecting means for detecting a peak coordinate and a peak width of each of a plurality of peaks in the obtained two histograms, each peak having an extent larger than a threshold predetermined for each;
- deciding means for deciding a plurality of band areas having a width for the respective peak coordinates detected by said peak coordinate detecting means, the width being determined based on an average of the plurality of detected peak widths;
- second obtaining means for, in each of the decided band areas, obtaining a new histogram of the input image data, the new histogram differing in direction from the histogram in which the peak coordinate for the band area was detected by said peak coordinate detecting means;
- point determining means for, in each of the decided band areas, determining a coordinate of a specific point from a peak position in the new histogram obtained in the band area and from the peak coordinate for the band area;
- selecting means for selecting two point coordinates among a plurality of specific point coordinates determined in said point determining means, the two point coordinates being placed at a distance to each other less than a predetermined threshold; and
- generating means for generating a new specific point coordinate as an intersection of two band areas by obtaining an average of the selected two point coordinates.
- 4. An apparatus according to claim 3, wherein said image processing apparatus has a scanner and the image data is inputted by said scanner.
- 5. A computer-readable medium storing instructions executable by a program-controlled image processing apparatus, said instructions comprising instructions for:
- inputting image data;
- obtaining two histograms in two dimensions of the input image data;
- detecting a peak coordinate and a peak width of each of a plurality of peaks in the obtained two histograms, each peak having an extent larger than a threshold predetermined for each histogram;
- deciding a plurality of band areas having a width for the respective peak coordinates detected in said detecting instruction, the width being determined based on an average of the plurality of detected peak widths;
- in each of the decided band areas, obtaining a new histogram of the input image data, the new histogram differing in direction from the histogram in which the peak coordinate for the band area was detected in said detecting instruction;
- in each of the decided band areas, determining a coordinate of a specific point from a peak position in the new histogram obtained in the band area and from the peak coordinate for the band area;
- selecting two point coordinates among a plurality of specific point coordinates determined in said determining instruction, the two point coordinates being placed at a distance to each other less than a predetermined threshold; and
- generating a new specific point coordinate as an intersection of two band areas by obtaining an average of the selected two point coordinates.
Priority Claims (1)
Number |
Date |
Country |
Kind |
5-001229 |
Jan 1993 |
JPX |
|
Parent Case Info
This application is a continuation of application Ser. No. 08/175,755 filed Dec. 30, 1993, now abandoned.
US Referenced Citations (9)
Continuations (1)
|
Number |
Date |
Country |
Parent |
175755 |
Dec 1993 |
|