Claims
- 1. An image processing method,
- where:
- a first pixel of a run currently being decoded on a scan line currently being decoded is referred to as a0;
- a first color-changing pixel present to the right of a0 is referred to as a1;
- a first color-changing pixel present to the right of a1 is referred to as a2;
- a first pixel, on an immediately preceding decoded scan line, present to right of a0 and having a color different from that of a0 is referred to as b1;
- a first pixel of a run immediately to the left of b1 is referred to as b0; and
- a first color-changing pixel present to the right of b1 is referred to as b2;
- said method comprising steps of:
- a) obtaining positions of b0, b1 and b2 with respect to an initialized position of a0 using decoded information of said immediately preceding decoded scan line;
- b) decoding MMR or MR codes for said scan line currently being decoded;
- c) determining whether a0 is a white pixel;
- d) determining, if it is determined in said step c) that a0 is the white pixel, whether a relevant encoded mode in a relevant one of said MR and MMR codes is a pass mode, a vertical mode or a horizontal mode;
- e) setting a new a0 below b2 if it is determined in said step d) that said encoded mode is said pass mode;
- f) designating, if it is determined in said step d) that said encoded mode is said vertical mode, when b0.gtoreq.a1, the same label as that of a black-pixel run ending at a pixel immediately to the left of b0 to a black-pixel run starting at a1, and setting a new a0 at a position of a1;
- g) designating, if it is determined in said step d) that said encoded mode is said horizontal mode, when b0.gtoreq.a1, the same label as that of a black-pixel run ending at a pixel immediately to the left of b0 to a black-pixel run starting at a1, and if further a2.gtoreq.b1, integrating a label of a black-pixel run starting at b1 into the label of the black-pixel run ending at a pixel immediately to the left of b0, and setting a new a0 to a position of a2;
- h) designating, if it is determined in said step d) that said encoded mode is said horizontal mode, when b0<a1 and also a2<b1, a new label to a black-pixel run starting at a1, and setting a new a0 to a position of a2; and
- i) designating, if it is determined in said step d) that said encoded mode is said horizontal mode, when b0<a1 and also a2>b1, the same label as that of a black-pixel run starting at b1 to a black-pixel run starting at a1, and setting a new a0 to a position of a2.
- 2. An image processing method,
- where:
- a first pixel of a run currently being decoded on a scan line currently being decoded is referred to as a0;
- a first color-changing pixel present to the right of a0 is referred to as a1;
- a first color-changing pixel present to the right of a1 is referred to as a2;
- a first pixel, on an immediately preceding decoded scan line, present to the right of a0 and having a color different from that of a0 is referred to as b1;
- a first pixel of a run immediately to the left of b1 is referred to as b0; and
- a first color-changing pixel present to the right of b1 is referred to as b2;
- said method comprising steps of:
- a) obtaining positions of b0, b1 and b2 with respect to an initialized position of a0 using decoded information of said immediately preceding decoded scan line;
- b) decoding MMR or MR codes for said scan line currently being decoded;
- c) determining whether a0 is a black pixel;
- d) determining, if it is determined in said step c) that a0 is the black pixel, whether a relevant encoded mode in a relevant one of said MR and MMR codes is a pass mode, a vertical mode or a horizontal mode;
- e) designating, if it is determined in said step d) that said encoded mode is said pass mode, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, integrating a label of a black-pixel run starting at b2 into the label of said black-pixel run starting at b0, and setting a new a0 below b2;
- f) designating, if it is determined in said step d) that said encoded mode is said vertical mode, when b0.ltoreq.a1, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, and setting a new a0 at a position of a1;
- g) designating, if it is determined in said step d) that said encoded mode is said vertical mode, when b0>a1, a new label to a black-pixel run starting at a0, and setting a new a0 at a position of a1;
- h) designating, if it is determined in said step d) that said encoded mode is said horizontal mode, when b0.ltoreq.a1, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, and setting a new a0 at a position of a2; and
- i) designating, if it is determined in said step d) that said encoded mode is said horizontal mode, when b0>a1, a new label to a black-pixel run starting at a0, and setting a new a0 at a position of a2.
- 3. An image processing method,
- where:
- a first pixel of a run currently being decoded on a scan line currently being decoded is referred to as a0;
- a first color-changing pixel present to the right of a0 is referred to as a1;
- a first color-changing pixel present to the right of a1 is referred to as a2;
- a first pixel, on an immediately preceding decoded scan line, present at right of a0 and having a color different from that of a0 is referred to as b1;
- a first pixel of a run immediately to the left of b1 is referred to as b0; and
- a first color-changing pixel present at the right of b1 is referred to as b2;
- said method comprising steps of:
- a) obtaining positions of b0, b1 and b2 with respect to an initialized position of a0 using decoded information of said immediately preceding decoded scan line;
- b) decoding MMR or MR codes for said scan line currently being decoded;
- c) determining whether a0 is a white or black pixel;
- d) determining, if it is determined in said step c) that a0 is the white pixel, whether a relevant encoded mode in a relevant one of said MR and MMR codes is a pass mode, a vertical mode or a horizontal mode;
- e) setting a new a0 below b2 if it is determined in said step d) that said encoded mode is said pass mode;
- f) designating, if it is determined in said step d) that said encoded mode is said vertical mode, when b0.gtoreq.a1, the same label as that of a black-pixel run ending at a pixel immediately to the left of b0 to a black-pixel run starting at a1, and setting a new a0 at a position of a1;
- g) designating, if it is determined in said step d) that said encoded mode is said horizontal mode, when b0.gtoreq.a1, the same label as that of a black-pixel run ending at a pixel immediately to the left of b0 to a black-pixel run starting at a1, and if further a2.gtoreq.b1, integrating a label of a black-pixel run starting at b1 into the label of the black-pixel run ending at a pixel immediately to the left of b0, and setting a new a0 to a position of a2;
- h) designating, if it is determined in said step d) that said encoded mode is said horizontal mode, when b0<a1 and also a2<b1, a new label to a black-pixel run starting at a1, and setting a new a0 to a position of a2;
- i) designating, if it is determined in said step d) that said encoded mode is said horizontal mode, when b0<a1 and also a2.gtoreq.b1, the same label as that of a black-pixel run starting at b1 to a black-pixel run starting at a1, and setting a new a0 to a position of a2;
- j) determining, if it is determined in said step c) that a0 is the black pixel, whether a relevant encoded mode in a relevant one of said MR and MMR codes is said pass mode, said vertical mode or said horizontal mode;
- k) designating, if it is determined in said step j) that said encoded mode is said pass mode, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, integrating a label of a black-pixel run starting at b2 into the label of said black-pixel run starting at b0, and setting a new a0 below b2;
- l) designating, if it is determined in said step j) that said encoded mode is said vertical mode, when b0.ltoreq.a1, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, and setting a new a0 at a position of a1;
- m) designating, if it is determined in said step j) that said encoded mode is said vertical mode, when b0>a1, a new label to a black-pixel run starting at a0, and setting a new a0 at a position of a1;
- n) designating, if it is determined in said step j) that said encoded mode is said horizontal mode, when b0.ltoreq.a1, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, and setting a new a0 at a position of a2;
- o) designating, if it is determined in said step j) that said encoded mode is said horizontal mode, when b0>a1, a new label to a black-pixel run starting at a0, and setting a new a0 at a position of a2;
- p) obtaining, if the entirety of said scan line currently being decoded has not been processed, new positions of b0, b1 and b2 with respect to thus-set new a0, and proceeding with an above-described process; and
- q) updating, if the entirety of said currently decoded scan line has not been processed, said immediately preceding decoded scan line and scan line currently being decoded, and repeating an above-described process after initializing a0 until all scan lines have been processed.
- 4. A computer program product having a computer readable medium having computer program logic recorded therein for performing image processing,
- where:
- a first pixel of a run currently being decoded on a scan line currently being decoded is referred to as a0;
- a first color-changing pixel present to the right of a0 is referred to as a1;
- a first color-changing pixel present to the right of a1 is referred to as a2;
- a first pixel, on an immediately preceding decoded scan line, present to right of a0 and having a color different from that of a0 is referred to as b1;
- a first pixel of a run immediately to the left of b1 is referred to as b0; and
- a first color-changing pixel present to the right of b1 is referred to as b2;
- said product comprising:
- means for obtaining positions of b0, b1 and b2 with respect to an initialized position of a0 using decoded information of said immediately preceding decoded scan line;
- means for decoding MMR or MR codes for said scan line currently being decoded;
- means for determining whether a0 is a white pixel;
- means for determining, if it is determined by said first determining means that a0 is the white pixel, whether a relevant encoded mode in a relevant one of said MR and MMR codes is a pass mode, a vertical mode or a horizontal mode;
- means for setting a new a0 below b2 if it is determined by said second determining means that said encoded mode is said pass mode;
- means for designating, if it is determined by said second determining means that said encoded mode is said vertical mode, when b0.gtoreq.a1, the same label as that of a black-pixel run ending at a pixel immediately to the left of b0 to a black-pixel run starting at a1, and setting a new a0 at a position of a1;
- means for designating, if it is determined by said second determining means that said encoded mode is said horizontal mode, when b0.gtoreq.a1, the same label as that of a black-pixel run ending at a pixel immediately to the left of b0 to a black-pixel run starting at a1, and if further a2.gtoreq.b1, integrating a label of a black-pixel run starting at b1 into the label of the black-pixel run ending at a pixel immediately to the left of b0, and setting a new a0 to a position of a2;
- means for designating, if it is determined by said second determining means that said encoded mode is said horizontal mode, when b0<a1 and also a2<b1, a new label to a black-pixel run starting at a1, and setting a new a0 to a position of a2; and
- means for designating, if it is determined by said second determining means that said encoded mode is said horizontal mode, when b0<a1 and also a2.gtoreq.b1, the same label as that of a black-pixel run starting at b1 to a black-pixel run starting at a1, and setting a new a0 to a position of a2.
- 5. A computer program product having a computer readable medium having computer program logic recorded therein for performing image processing,
- where:
- a first pixel of a run currently being decoded on a scan line currently being decoded is referred to as a0;
- a first color-changing pixel present to the right of a0 is referred to as a1;
- a first color-changing pixel present to the right of a1 is referred to as a2;
- a first pixel, on an immediately preceding decoded scan line, present to the right of a0 and having a color different from that of a0 is referred to as b1;
- a first pixel of a run immediately to the left of b1 is referred to as b0; and
- a first color-changing pixel present to the right of b1 is referred to as b2;
- said product comprising:
- means for obtaining positions of b0, b1 and b2 with respect to an initialized position of a0 using decoded information of said immediately preceding decoded scan line;
- means for decoding MMR or MR codes for said scan line currently being decoded;
- means for determining whether a0 is a black pixel;
- means for determining, if it is determined by said first determining means that a0 is the black pixel, whether a relevant encoded mode in a relevant one of said MR and MMR codes is a pass mode, a vertical mode or a horizontal mode;
- means for designating, if it is determined by said second determining means that said encoded mode is said pass mode, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, integrating a label of a black-pixel run starting at b2 into the label of said black-pixel run starting at b0, and setting a new a0 below b2;
- means for designating, if it is determined by said second determining means that said encoded mode is said vertical mode, when b0.ltoreq.a1, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, and setting a new a0 at a position of a1;
- means for designating, if it is determined by said second determining means that said encoded mode is said vertical mode, when b0>a1, a new label to a black-pixel run starting at a0, and setting a new a0 at a position of a1;
- means for designating, if it is determined by said second determining means that said encoded mode is said horizontal mode, when b0.ltoreq.a1, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, and setting a new a0 at a position of a2; and
- means for designating, if it is determined by said second determining means that said encoded mode is said horizontal mode, when b0>a1, a new label to a black-pixel run starting at a0, and setting a new a0 at a position of a2.
- 6. A computer program product having a computer readable medium having computer program logic recorded therein for performing image processing,
- where:
- a first pixel of a run currently being decoded on a scan line currently being decoded is referred to as a0;
- a first color-changing pixel present to the right of a0 is referred to as a1;
- a first color-changing pixel present to the right of a1 is referred to as a2;
- a first pixel, on an immediately preceding decoded scan line, present at right of a0 and having a color different from that of a0 is referred to as b1;
- a first pixel of a run immediately to the left of b1 is referred to as b0; and
- a first color-changing pixel present at the right of b1 is referred to as b2;
- said product comprising:
- means for obtaining positions of b0, b1 and b2 with respect to an initialized position of a0 using decoded information of said immediately preceding decoded scan line;
- means for decoding MMR or MR codes for said scan line currently being decoded;
- means for determining whether a0 is a white or black pixel;
- means for determining, if it is determined by said first determining means that a0 is the white pixel, whether a relevant encoded mode in a relevant one of said MR and MMR codes is a pass mode, a vertical mode or a horizontal mode;
- means for setting a new a0 below b2 if it is determined in said step d) that said encoded mode is said pass mode;
- means for designating, if it is determined by said second determining means that said encoded mode is said vertical mode, when b0.gtoreq.a1, the same label as that of a black-pixel run ending at a pixel immediately to the left of b0 to a black-pixel run starting at a1, and setting a new a0 at a position of a1;
- means for designating, if it is determined by said second determining means that said encoded mode is said horizontal mode, when b0.gtoreq.a1, the same label as that of a black-pixel run ending at a pixel immediately to the left of b0 to a black-pixel run starting at a1, and if further a2.gtoreq.b1, integrating a label of a black-pixel run starting at b1 into the label of the black-pixel run ending at a pixel immediately to the left of b0, and setting a new a0 to a position of a2;
- means for designating, if it is determined by said second determining means that said encoded mode is said horizontal mode, when b0<a1 and also a2<b1, a new label to a black-pixel run starting at a1, and setting a new a0 to a position of a2;
- means for designating, if it is determined by said second determining means that said encoded mode is said horizontal mode, when b0<a1 and also a2.gtoreq.b1, the same label as that of a black-pixel run starting at b1 to a black-pixel run starting at a1, and setting a new a0 to a position of a2;
- means for determining, if it is determined by said first determining means that a0 is the black pixel, whether a relevant encoded mode in a relevant one of said MR and MMR codes is said pass mode, said vertical mode or said horizontal mode;
- means for designating, if it is determined by said third determining means that said encoded mode is said pass mode, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, integrating a label of a black-pixel run starting at b2 into the label of said black-pixel run starting at b0, and setting a new a0 below b2;
- means for designating, if it is determined by said third determining means that said encoded mode is said vertical mode, when b0.ltoreq.a1, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, and setting a new a0 at a position of a1;
- means for designating, if it is determined by said third determining means that said encoded mode is said vertical mode, when b0>a1, a new label to a black-pixel run starting at a0, and setting a new a0 at a position of a1;
- means for designating, if it is determined by said third determining means that said encoded mode is said horizontal mode, when b0.ltoreq.a1, the same label as that of a black-pixel run starting at b0 to a black-pixel run starting at a0, and setting a new a0 at a position of a2;
- means for designating, if it is determined by said third determining means that said encoded mode is said horizontal mode, when b0>a1, a new label to a black-pixel run starting at a0, and setting a new a0 at a position of a2;
- means for obtaining, if the entirety of said scan line currently being decoded has not been processed, new positions of b0, b1 and b2 with respect to thus-set new a0, and proceeding with an above-described process; and
- means for updating, if the entirety of said currently decoded scan line has not been processed, said immediately preceding decoded scan line and scan line currently being decoded, and repeating an above-described process after initializing a0 until all scan lines have been processed.
Priority Claims (1)
| Number |
Date |
Country |
Kind |
| 6-245869 |
Oct 1994 |
JPX |
|
Parent Case Info
This application is a Division of application Ser. No. 08/539,334, filed on Oct. 4, 1995, abandoned.
US Referenced Citations (6)
Foreign Referenced Citations (1)
| Number |
Date |
Country |
| 4-85685 |
Mar 1992 |
JPX |
Non-Patent Literature Citations (3)
| Entry |
| Image Component Labeling From MR Codes, Electronic Information Communication Society Paper, D-II, vol. J767-D-II, No. 11, pp. 2341-2348, Nov. 1993. |
| Base and Application of Facsimile (Japanese Book), Appendix, CCITT Facsimile Recommendation, pp. 383-396. |
| CCITT, Fascicle VII.3--Recommendation T.4, pp. 23-35 and 39-43, and Recommendation T.6, pp. 48-57. |
Divisions (1)
|
Number |
Date |
Country |
| Parent |
539334 |
Oct 1995 |
|