Method of and apparatus for obtaining image data used for filling inner or outer region of graphic figure
First Claim
Patent Images
1. A method of processing data for use in filling a region which is inside or outside of a graphic figure, said method comprising:
- (a) preparing segment data representative of segments which form a contour of a graphic figure on an image plane, said segments defining connection modes therebetween;
(b) using said segment data to generate connection mode data representative of said connection modes;
(c) using said connection mode data to select a first one of said segments, said first segment having a floating terminal point;
(d) subsequent to said step (c), correcting said segment data and said connection mode data so that said first segment does not have a floating terminal point;
(e) subsequent to said step (d), using said connection mode data to detect a loop formed by said segments and to obtain loop data representative of said loop; and
(f) subsequent to said step (e), using said loop data and said segment data to obtain data for use in filling a region which is inside or outside of said loop;
wherein each one of said connection modes is classified as either a perfect connection mode or an imperfect connection mode, said perfect connection mode being defined as a mode in which a terminal point of a segment coincides with a terminal point of another segment, said imperfect connection mode being defined as a mode other than said perfect connection mode; and
wherein said step (c) includes using said connection mode data to detect a segment which is connected to another segment in an imperfect connection mode.
1 Assignment
0 Petitions
Accused Products
Abstract
Segment data expressing segments which form the contour of a graphic figure are provided. Connection mode data expressing the connection modes between the segments are generated. The loops included in the graphic figure are detected on the basis of the segment data and the connection mode data. Even if the segments imperfectly define the contour, the loops can be detected through the step of correcting the segment data and the connection mode data.
25 Citations
17 Claims
-
1. A method of processing data for use in filling a region which is inside or outside of a graphic figure, said method comprising:
-
(a) preparing segment data representative of segments which form a contour of a graphic figure on an image plane, said segments defining connection modes therebetween; (b) using said segment data to generate connection mode data representative of said connection modes; (c) using said connection mode data to select a first one of said segments, said first segment having a floating terminal point; (d) subsequent to said step (c), correcting said segment data and said connection mode data so that said first segment does not have a floating terminal point; (e) subsequent to said step (d), using said connection mode data to detect a loop formed by said segments and to obtain loop data representative of said loop; and (f) subsequent to said step (e), using said loop data and said segment data to obtain data for use in filling a region which is inside or outside of said loop; wherein each one of said connection modes is classified as either a perfect connection mode or an imperfect connection mode, said perfect connection mode being defined as a mode in which a terminal point of a segment coincides with a terminal point of another segment, said imperfect connection mode being defined as a mode other than said perfect connection mode; and wherein said step (c) includes using said connection mode data to detect a segment which is connected to another segment in an imperfect connection mode. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A data processor for converting segment data representative of segments which form a contour of a graphic figure into image data for filling a region which is inside or outside of said graphic figure, said data processor comprising:
-
(a) connection mode data generating means for generating connection mode data representative of connection modes between segments which form a contour of a graphic figure, each one of said connection modes being classified as either a perfect connection mode or an imperfect connection mode, said perfect connection mode being defined as a mode in which a terminal point of a segment coincides with a terminal point of another segment, said imperfect connection mode being defined as a mode other than said perfect connection mode, said segments being represented by segment data; (b) a memory for storing said connection mode data as a data base; (c) correction means for (1) using said connection mode data to detect a segment which is connected to another segment in an imperfect connection mode and (2) correcting said segment data and said connection mode data to create corrected data representative of a state wherein a terminal point of each of said segments coincides with a terminal point of another of said segments; (d) a loop detecting means for detecting a loop formed by said segments with reference to said corrected data to obtain loop data representative of said loop; and (e) image data generating means for generating image data for filling a region which is inside or outside of said loop, said image data generating means being responsive to said loop data and said segment data. - View Dependent Claims (12, 13, 14)
-
-
15. A method of sorting segments defined with respect to an image plane into segment groups to detect a loop formed by said segments in each of said segment groups, said method comprising:
-
(a) receiving segment data representative of segments defined with respect to an image plane; (b) generating data for rectangles which surround said segments in said image plane; (c) determining areas in which said rectangles are located on said image plane; (d) sorting said rectangles into rectangle groups so that all of said rectangles which belong to one of said areas are identified as a rectangle group; and (e) sorting said segments into segment groups, each one of said segment groups including segments corresponding to rectangles of a rectangle group. - View Dependent Claims (16, 17)
-
Specification