CN102289833A - Method and device for automatically segmenting picture - Google Patents

Method and device for automatically segmenting picture Download PDF

Info

Publication number
CN102289833A
CN102289833A CN2011102532752A CN201110253275A CN102289833A CN 102289833 A CN102289833 A CN 102289833A CN 2011102532752 A CN2011102532752 A CN 2011102532752A CN 201110253275 A CN201110253275 A CN 201110253275A CN 102289833 A CN102289833 A CN 102289833A
Authority
CN
China
Prior art keywords
picture
color
split
pixel
illiteracy plate
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.)
Pending
Application number
CN2011102532752A
Other languages
Chinese (zh)
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.)
Beijing Ruixin Online System Tech Co Ltd
Original Assignee
Beijing Ruixin Online System Tech Co Ltd
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 Beijing Ruixin Online System Tech Co Ltd filed Critical Beijing Ruixin Online System Tech Co Ltd
Priority to CN2011102532752A priority Critical patent/CN102289833A/en
Publication of CN102289833A publication Critical patent/CN102289833A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method and device for automatically segmenting a picture. The method comprises the following steps of: reading a mask, wherein the mask is divided into a plurality of picture blocks by different colors; traversing all pixels of the mask; discriminating shapes of all picture blocks on the mask according to the traversed different colors; and segmenting the picture to be segmented according to the shapes of the picture blocks on the mask. By using the method and device provided by the invention, the picture can be flexibly, rapidly and accurately segmented into the picture blocks according to different masks, thus the applicability and expandability are improved and the use of a user can be greatly enriched and facilitated.

Description

Automatically the method and apparatus of cutting apart picture
Technical field
The application relates to a kind of method and apparatus of cutting apart picture automatically, more specifically, relates to a kind of method and apparatus that picture is cut apart automatically of coming according to the illiteracy plate file that is obtained.
Background technology
In recent years, universal day by day along with various personal digital terminals such as PC, panel computer, smart mobile phones, people also use them to carry out daily amusement and recreation more and more.In the various amusement and recreation projects of carrying out on these personal digital terminals, picture arrangement game is a interesting, recreation that expense is mental, makes people when obtaining enjoyment, can be good at taking exercise judgement and reaction capacity again.
The total rule of picture arrangement game all is need be mounted to the segment that shape differs in the figure to go, and the shape of each segment differs, and size does not wait yet.For the design of picture arrangement game, how flexibly the problem of at first facing is, quickly and accurately a complete picture (width of cloth picture of choosing according to the hobby of oneself as the user) is divided into segment.
In order to address this problem, traditional picture mosaic mode is that the method for the figure that draws, cuts is write the algorithm the inside, need be by instrument, algorithm has just been realized a kind of figure of cutting mode, if want to become another kind of just very bothersome, need to write again algorithm again, that is to say that in existing picture arrangement game, the figure that utilizes the conventional pictures dividing method to cut apart is block-shaped single, algorithm is realized comparatively complicated, and very flexible.
Summary of the invention
At above-mentioned deficiency of the prior art,, the present invention proposes based on the dividing method that covers the plate file in order to solve the problem that arbitrarily customization figure is block-shaped in the picture approach, needs are frequently revised algorithm and code of cutting apart of existing picture arrangement game.This method adopts a picture that contains multiple key color as covering the plate file, and every kind of key color has just been represented a segment.This method can not need the recompility program according to real needs flexible customization template, has improved the dirigibility and the extensibility of program.
The application's purpose is to provide a kind of method and apparatus of cutting apart picture automatically, and it can come based on different illiteracy plates picture to be split is cut apart.
To achieve these goals, the application's a scheme provides a kind of method of cutting apart picture automatically, comprises the steps: to read in the illiteracy plate, and this illiteracy plate is divided into a plurality of segments with different colours; All pixels to this illiteracy plate travel through; Identify the shape of each segment on this illiteracy plate according to the different colours that traverses; And picture to be split is cut apart according to the shape of each segment on this illiteracy plate.
According to said method, also comprise: setting up mapping table in the process that this illiteracy plate is traveled through, is index with the color in this illiteracy plate, and corresponding with color is the regional record data of this color segment.
According to said method, wherein, the regional record data of every kind of color comprise: location of pixels minimum value and the maximal value on directions X and Y direction respectively in the segment of institute's corresponding color.
According to said method, also comprise:, determine a rectangular area according to described regional record data to each color in this illiteracy plate that traverses.
According to said method, also comprise: in the step that the shape of each segment is cut apart picture to be split on according to this illiteracy plate, in determined rectangular area, other color except institute's corresponding color is carried out transparent processing.
According to said method, also comprise: in this transparent processing, respectively the pixel in the pairing rectangular area of each color in this illiteracy plate is once traveled through successively again, and utilize the result of traversal that this picture to be split is cut apart.
According to said method, also comprise: in the step that the pixel in the pairing rectangular area of a kind of color is once traveled through again, the pairing color of pixel color and this rectangular area that is traversed is compared, an if coordinate (i, j) locate the color of pixel pairing color in this rectangular area just, then (i j) locates to take out the pixel of this picture to be split to the corresponding coordinate in picture to be split; Otherwise (i, j) locating color of pixel is not the pairing color in this rectangular area, then can (i j) does not locate to take out pixel from the corresponding coordinate this picture to be split if a coordinate.
According to said method, also comprise: the pixel of this picture to be split of being taken out is stored in the storage space, forms one by the set of whole pixels of this picture to be split that is taken out and cut apart picture.
According to said method, wherein, the size of this picture to be split, shape, outline are all consistent with size, shape, outline that this covers plate; In the step that the shape of each segment is cut apart picture to be split on according to this illiteracy plate, the outline of this picture to be split is overlapped with the outline of this illiteracy plate.
According to said method, wherein, this illiteracy plate is to be stored in the database in advance.
Another scheme of the application provides a kind of device of cutting apart picture automatically, comprising: cover the plate acquisition module, be used to read in the illiteracy plate, this illiteracy plate is divided into a plurality of segments with different colours; Cover the plate spider module, be used for all pixels of this illiteracy plate are traveled through; The shape recognition module is used for identifying according to the different colours that traverses the shape of each segment on this illiteracy plate; And picture cuts apart module, is used for according to the shape of each segment on this illiteracy plate picture to be split being cut apart.
According to said apparatus, wherein, this illiteracy plate spider module also comprises: mapping table is set up the unit, is used for setting up mapping table in the process that this illiteracy plate is traveled through, with the color in this illiteracy plate is index, and corresponding with color is the regional record data of this color segment.
According to said apparatus, wherein, the regional record data of every kind of color comprise: location of pixels minimum value and the maximal value on directions X and Y direction respectively in the segment of institute's corresponding color.
According to said apparatus, this shape recognition module also comprises: the rectangular area determining unit, be used for each color to this illiteracy plate that traverses, and determine a rectangular area according to described regional record data; And the transparent processing unit, be used in determined rectangular area, other color except institute's corresponding color is carried out transparent processing.
According to said apparatus, wherein, this picture is cut apart module and is also comprised: rectangular area traversal and pixel extraction unit, be used for the pixel in this rectangular area is once traveled through again, the pairing color of pixel color and this rectangular area that is traversed is compared, and (i j) locates the color of pixel pairing color in this rectangular area just as if a coordinate, then (i j) locates to take out the pixel of this picture to be split to the corresponding coordinate in picture to be split; Otherwise, if a coordinate (i, j) locating color of pixel is not the pairing color in this rectangular area, then can (i j) does not locate to take out pixel from the corresponding coordinate this picture to be split; And cut apart picture element unit cell, the pixel that is used for this picture to be split that will be taken out is stored in a storage space, forms a width of cloth by the set of whole pixels of this picture to be split that is taken out and cuts apart picture.
In the present invention, can draw at first according to demand by the art designing personnel and cover plate, perhaps can from database, extract pre-rendered good illiteracy plate, each segment marks with different colours in the illiteracy plate, define each segment zone in the illiteracy plate according to different colours, extract irregular segment by covering plate from former figure, traversal illiteracy plate and former figure carry out pixel extraction simultaneously then, generate new segment.
The method and apparatus that utilizes the application to provide can solve the problem that arbitrarily customization figure is block-shaped in the picture approach, needs are frequently revised algorithm and code of cutting apart of existing picture arrangement game.According to the method and apparatus of cutting apart picture automatically of the present invention, can be divided into segment to picture flexibly, quickly and accurately according to different illiteracy plates, improved applicability and extensibility, can greatly enrich with user-friendly.
With reference to the accompanying drawing description of a preferred embodiment, above-mentioned and other purpose of the application, feature and advantage will be more obvious by following.
Description of drawings
The application's accompanying drawing is signal and illustrative, is not in order to restriction the present invention.Size among the figure, ratio are schematically, even deviation does not influence its explaination for spirit of the present invention and essence yet to some extent.Drawing and description are used to provide together for further explaination of the present invention, understand the present invention better to help those skilled in the art.In the accompanying drawings:
Exemplary the illustrating according to one of the embodiment of the invention of Fig. 1 covered plate figure;
Fig. 2 exemplarily illustrates the process flow diagram according to the method for cutting apart picture automatically of the embodiment of the invention;
Fig. 3 is exemplary to illustrate a picture to be split;
Fig. 4 is exemplary illustrate that the illiteracy plate file division with Fig. 1 goes out first cut apart picture;
The exemplary device of cutting apart picture automatically that illustrates according to the embodiment of the invention of Fig. 5.
Embodiment
Below with the embodiment of DETAILED DESCRIPTION The present application.Should be noted that the embodiments described herein only is used to illustrate, be not limited to the application.
According to an embodiment of the invention based on the dividing method that covers the plate file, be to have adopted a picture that contains multiple key color to cover the plate file as one, every kind of key color has just been represented a zone, also has the picture that needs are cut apart simultaneously, this picture that need cut apart passes through and covers some computings of plate, just can be partitioned into several zones according to the shape of covering different colours segment on the plate.
Describe the method for cutting apart picture based on illiteracy plate file automatically of the present invention in detail below in conjunction with accompanying drawing.
See also Fig. 1 earlier, Fig. 1 illustrates of the present invention one exemplary illiteracy plate figure.Cover plate figure and can be divided into a plurality of different segments according to different colors.In the illiteracy plate figure that illustrates, for example, the size of covering plate figure is 400 pixel *, 400 pixels, wherein is divided into 4 altogether, and every has different colors respectively.Each segment is according to the order of upper left, upper right, lower-left, bottom right, and their color value is respectively RGB (0,255,0), RGB (255,0,0), RGB (0,0,255), RGB (0,255,255), that is, green, red, blue, light blue.
See also Fig. 2 below, Fig. 2 exemplarily illustrates the flow process according to the method for cutting apart picture automatically of the embodiment of the invention.
At first, read in one and cover the plate file.Cover the plate file and can be the art designing personnel in advance according to demand and the illiteracy plate picture of drawing, each segment that covers in the plate picture marks with different colors.In addition, the illiteracy plate file that various draftings are good also can be stored in the database in advance.For example, when needs are simply cut apart picture, just can adopt illiteracy plate as shown in Figure 1, wherein be divided into 4 segments, mark with different colors respectively.In other cases, if desired picture is carried out than complicated dividing, can certainly adopt other illiteracy plate not shown in the figures, for example 6,8,16,32,64 ..., and even polylith more.And, even for the identical illiteracy plate of figure number of blocks, the segmented shape of boundary also can be different between the different segments, and for example for the illiteracy plate that is divided into 4 segments shown in Figure 1, the convex-concave shape of its segment boundary, convex-concave quantity etc. can be carried out various suitable variations.
Covering reading in of plate file can be to carry out according to the illiteracy plate reading command of user's input.Be to store in advance in the database under the situation of the good illiteracy plate file of various draftings, the user can cover piece number and the shape that the plate reading command selects to cover segment in the plate by this, thereby can cut apart picture in the mode of oneself wishing.
Then, set up a mapping table, the index of table is a color, and the value of color correspondence is regional record data minX, minY, and maxX, maxY specifies as follows.At each segment, corresponding one group of numerical value respectively, this group records of values minX, minY, maxX, maxY promptly, has location of pixels minimum value and the maximal value on directions X and Y direction respectively in a kind of segment of color.
For example, can begin pixel is traveled through from the upper left corner of covering the plate picture, this is to travel through for the first time.From the upper left corner, the order of traversal can be from left to right, from top to bottom.In this order, for illiteracy plate file shown in Figure 1, can traverse green, red, blue, light blue these four kinds of colors successively.
When traversing first, the coordinate figure of this point can be composed to minX, minY, maxX, maxY is as its initial value.For example, the coordinate of supposing the green point at top left corner apex place in Fig. 1 is (0,400), and according to from left to right, during from top to bottom order traversal, this point is exactly first point that traverses.At this moment, just the coordinate figure that will put is composed to minX, and minY, maxX, maxY are as its initial value, that is, initial value is minX=0, minY=400, maxX=0, maxY=400.
Whenever traverse a new color, then in mapping table, add a new color record, color count value count adds one (in addition, according to another example of the present invention, also can store versicolor index in advance in this mapping table, when traversing a certain color, only need the regional record data storage is got final product to corresponding position); Simultaneously, by position and minX with current pixel, minY, maxX, maxY compares, and upgrades these regional values, thereby generates one group of new regional record data.
That is to say one group of minX is arranged at each key color, minY, maxX, the maxY data if traverse the color of this existence, just need be upgraded this group data according to the coordinate of current point, and method for updating is as follows:
If the coordinate x component<minX of current point
The coordinate x component of the current point of minX=then;
If the coordinate x component>maxX of current point
The coordinate x component of the current point of maxX=then;
If the coordinate y component<minY of current point
The coordinate y component of the current point of minY=then;
If the coordinate y component>maxY of current point
The coordinate y component of the current point of maxY=then.
Pixel to whole illiteracy plate picture travels through according to the method described above, simultaneously to regional record data minX, minY, maxX, maxY upgrades, and when full figure being finished once traversal, the axle in each zone corresponding with each color bounding box AABB that aligns just can be determined out.Particularly, the axle alignment bounding box AABB of each color segment is a rectangular area, and the border of this rectangular area is the regional record data minX according to pairing this color, minY, and maxX, maxY determines.
For example, for the green segment in the upper left corner among Fig. 1, its alignment bounding box AABB is included in all green pixels wherein; In addition, owing to have irregular convex-concave shape at the segment boundary, except green pixel, the axle alignment bounding box AABB of this green segment still includes other color pixel inevitably, and is for example red, blue and light blue.
The situation of the axle alignment bounding box AABB of other color segment and roughly the same above-mentioned is omitted its specific descriptions at this.
As mentioned above, at the axle alignment bounding box AABB of each color, except with this color of its correspondence, also comprise other color simultaneously inevitably.In order from the axle alignment bounding box of rectangle, to extract the concrete shape of each color segment,, to do transparent processing for other color except corresponding color among each alignment bounding box AABB so that picture to be split is cut apart.
For example, can define a keyColor variable, as the color of current AABB correspondence.When picture to be split is cut apart, get pixel one time at each AABB, the capture element is to need to get in the divided picture really, this picture size and shape are wanted and size and the shape of illiteracy plate figure are consistent, promptly, the outline of picture to be split should be able to overlap fully with the outline that covers plate figure, in other words, covers plate figure and can make to measure for picture to be split.For example, needing divided figure in the present embodiment also is 400 pixel *, 400 pixels, and its outline can overlap fully with the outline that covers plate figure, for example all is rectangle.
In this transparent processing, thereby picture to be split is cut apart for the concrete shape that extracts each color segment, also need once be traveled through, be i.e. traversal for the second time for the axle alignment bounding box AABB of each color segment.
In this travels through for the second time, because the outline of picture to be split can overlap fully with the outline that covers plate figure, therefore their coordinate positions in same coordinate system are consistent, that is, make picture to be split have identical coordinate with respective point among the illiteracy plate figure.For example, the coordinate of the green point at top left corner apex place is under the situation of (0,400) in covering plate figure, makes the coordinate of picture top left corner apex to be split also be (0,400), and similarly, the coordinate of all the other respective point is also consistent mutually.Herein, the coordinate of a certain position can with (i, j) expression, wherein, 0≤i≤400,0≤j≤400.
This travels through for the second time is that all colours for writing down in the mapping table after for the first time traversal is finished carries out successively.For every kind of color, on the axle alignment bounding box AABB of this color, carry out this and travel through for the second time, the result of the foundation traversal second time carries out pixel extraction to picture to be split simultaneously.Particularly, in traveling through for the second time, coordinate is (i in traversing illiteracy plate figure, during j) pixel, (i j) locates the color of pixel pairing color of bounding box (being keyColor) of aliging with this axle and compares will to cover coordinate among the plate figure, if cover coordinate (i among the plate figure, j) locate the color of pixel pairing color of this alignment bounding box just, then (i j) locates to take out the pixel of this picture to be split to the coordinate of the relevant position in picture to be split; Otherwise (i, j) locating color of pixel is not the pairing color of this alignment bounding box, then can not take out corresponding coordinate (i, the pixel of j) locating from this picture to be split if cover among the plate figure coordinate.Herein, at coordinate (i, j) pixel of locating to take out this picture to be split is meant, storing coordinate (i in a storage space (for example memory headroom etc.), j) locate the expressed various image informations of pixel, as color of pixel, tone, brightness etc., so that the expressed image information of this pixel is carried out complete reproduction.
For example, carry out this when traveling through for the second time for the axle alignment bounding box AABB of Fig. 1 medium green chromatic graph piece, keycolor is green.If the coordinate that in covering plate figure, traverses (i, the pixel color of j) locating is for green, and then (i j) locates to take out the pixel of this picture to be split to the corresponding coordinate in picture to be split; On the contrary, if (i, the pixel color of j) locating is not green to the coordinate that traverses in covering plate figure, then can not take out corresponding coordinate (i, the pixel of j) locating from this picture to be split.
For example, this time traversal can be corresponding to following program statement:
Figure BDA0000087446260000081
For a kind of color, after this time the pixel traversal is finished, the pixel of the picture to be split that can store in storage space takes out as stated above (promptly, store the expressed various image informations of this pixel), the picture that splits has just been formed in the set of these pixels, and the pixel region of the picture that the set of these locations of pixels coordinates just is divided into.For example, after the axle alignment bounding box AABB to Fig. 1 medium green chromatic graph piece has carried out traveling through for the second time, corresponding to all green pixels in this alignment bounding box, corresponding coordinate takes out pixel from picture to be split, then formed the collection of pixels with the corresponding picture to be split of shape of this green segment, this collection of pixels has also just been formed and the corresponding picture of cutting apart of this green segment.
After the first kind of color that writes down in as mentioned above according to mapping table carried out cutting apart to picture to be split, also need according to other color that writes down in the mapping table this picture to be split to be cut apart successively, until finishing according to last a kind of color to till the cutting apart of this picture to be split.Promptly, the axle alignment bounding box to first kind of color carry out traveling through the second time and be partitioned into cut apart picture accordingly after, successively the axle alignment bounding box of other color is carried out traveling through second time again, and from picture to be split, take out respective pixel, thereby according to other color this picture to be split is cut apart successively, until according to last a kind of color segment till.
For example, for illiteracy plate shown in Figure 1, after picture to be split having been carried out cutting apart, also need according to the shape of red segment, blue segment, light blue segment this picture to be split to be cut apart successively according to the shape of green segment.After all finishing the cutting apart of four kinds of colors of all that in according to mapping table, write down, just this picture to be split can be divided into four pictures, these four shapes of cutting apart picture are corresponding with green, redness, blueness, light blue segment among Fig. 1 respectively, are used for doing four segments making picture arrangement game thereby also just formed according to illiteracy plate shown in Figure 1.
Referring to Fig. 3 and Fig. 4, it illustrates uses the example that method of the present invention is cut apart picture.Original picture to be split as shown in Figure 3, it can be any width of cloth picture of being specified or being chosen by the user; First file that goes out with the illiteracy plate file division of Fig. 1 as shown in Figure 4, promptly with the corresponding divided file of green segment.Certainly, along with the difference of the illiteracy plate file that is obtained, quantity and the shape of cutting apart picture all can respective change.
See also Fig. 5 again, the exemplary device of cutting apart picture automatically that illustrates according to the embodiment of the invention of Fig. 5 is used to realize the method for cutting apart picture automatically of the present invention.This device can comprise that covering plate acquisition module, illiteracy plate spider module, shape recognition module and picture cuts apart module.Wherein: cover the plate acquisition module, be used to read in the illiteracy plate, this illiteracy plate is divided into a plurality of segments with different colours; Cover the plate spider module, be used for all pixels of this illiteracy plate are traveled through; The shape recognition module is used for identifying according to the different colours that traverses the shape of each segment on this illiteracy plate; And picture cuts apart module, is used for according to the shape of each segment on this illiteracy plate picture to be split being cut apart.
In addition, this illiteracy plate spider module also can comprise: mapping table is set up the unit, be used for setting up mapping table in the process that this illiteracy plate is traveled through, and be index with the color in this illiteracy plate, corresponding with color is the regional record data of this color segment.Wherein, the regional record data of every kind of color comprise: location of pixels minimum value and the maximal value on directions X and Y direction respectively in the segment of institute's corresponding color.
In addition, this shape recognition module also can comprise: the rectangular area determining unit, be used for each color to this illiteracy plate that traverses, and determine a rectangular area according to described regional record data; And the transparent processing unit, be used in determined rectangular area, other color except institute's corresponding color is carried out transparent processing.
In addition, this picture is cut apart module and also can be comprised:
Rectangular area traversal and pixel extraction unit, be used for the pixel in this rectangular area is once traveled through again, the pairing color of pixel color and this rectangular area that is traversed is compared, an if coordinate (i, j) locate the color of pixel pairing color in this rectangular area just, then (i j) locates to take out the pixel of this picture to be split to the corresponding coordinate in picture to be split; Otherwise, if a coordinate (i, j) locating color of pixel is not the pairing color in this rectangular area, then can (i j) does not locate to take out pixel from the corresponding coordinate this picture to be split; And
Cut apart picture element unit cell, the pixel that is used for this picture to be split that will be taken out is stored in a storage space, forms a width of cloth by the set of whole pixels of this picture to be split that is taken out and cuts apart picture.
Automatically the method and apparatus of cutting apart picture of the present invention can bring following beneficial effect.That is, the invention solves the problem that arbitrarily customization figure is block-shaped in the picture approach, needs are frequently revised algorithm and code of cutting apart of existing picture arrangement game.According to the method and apparatus of cutting apart picture automatically of the present invention, can be divided into segment to picture flexibly, quickly and accurately according to different illiteracy plates, improved applicability and extensibility, can greatly enrich with user-friendly.
Automatically method and the step thereof of cutting apart picture provided by the invention can be realized by for example one or more computer run computer executable instructions of the one or more treatment facilities with data-handling capacity (this computer executable instructions has reflected the thought of the method for cutting apart picture automatically that the present invention proposes).This treatment facility can comprise the storage medium of storing aforementioned computer executable instructions.
Automatically the device of cutting apart picture provided by the invention can be one or more treatment facilities of the aforementioned computer executable instructions of operation.This cuts apart the apparatus assembly that has corresponding function when each module in the device of picture can be moved aforementioned computer executable instructions for this treatment facility automatically.
For example, the method and apparatus of cutting apart picture automatically of the present invention can move and realize on such as various personal digital terminals such as PC, panel computer, smart mobile phones.
Should be noted that those skilled in the art can be understood that, the feature that a certain embodiment of aforementioned reference describes not is to be only limited to this embodiment, but can use with the characteristics combination of describing with reference to other embodiment.
Though described the application with reference to exemplary embodiments, should be appreciated that used term is explanation and exemplary and nonrestrictive term.The spirit or the essence that do not break away from invention because the application can specifically implement in a variety of forms, so be to be understood that, the foregoing description is not limited to any aforesaid details, and should be in the spirit and scope that claim limited of enclosing explain widely, therefore fall into whole variations in claim or its equivalent scope and remodeling and all should be the claim of enclosing and contain.

Claims (10)

1. a method of cutting apart picture automatically comprises the steps:
Read in the illiteracy plate, this illiteracy plate is divided into a plurality of segments with different colours;
All pixels to this illiteracy plate travel through;
Identify the shape of each segment on this illiteracy plate according to the different colours that traverses; And
Shape according to each segment on this illiteracy plate is cut apart picture to be split.
2. the method for claim 1 also comprises:
Setting up mapping table in the process that this illiteracy plate is traveled through, is index with the color in this illiteracy plate, and corresponding with color is the regional record data of this color segment;
Wherein, the regional record data of every kind of color comprise: location of pixels minimum value and the maximal value on directions X and Y direction respectively in the segment of institute's corresponding color.
3. method as claimed in claim 2 also comprises:
To each color in this illiteracy plate that traverses, determine a rectangular area according to described regional record data.
4. method as claimed in claim 3 also comprises:
In the step that the shape of each segment is cut apart picture to be split on according to this illiteracy plate, in determined rectangular area, other color except institute's corresponding color is carried out transparent processing.
5. method as claimed in claim 4 also comprises:
In this transparent processing, respectively the pixel in the pairing rectangular area of each color in this illiteracy plate is once traveled through successively again, and utilize the result of traversal that this picture to be split is cut apart.
6. method as claimed in claim 5 also comprises:
In the step that the pixel in the pairing rectangular area of a kind of color is once traveled through again, the pairing color of pixel color and this rectangular area that is traversed is compared, an if coordinate (i, j) locate the color of pixel pairing color in this rectangular area just, then (i j) locates to take out the pixel of this picture to be split to the corresponding coordinate in picture to be split; Otherwise (i, j) locating color of pixel is not the pairing color in this rectangular area, then can (i j) does not locate to take out pixel from the corresponding coordinate this picture to be split if a coordinate.
7. method as claimed in claim 6 also comprises:
The pixel of this picture to be split of being taken out is stored in the storage space, forms one by the set of whole pixels of this picture to be split that is taken out and cut apart picture.
8. as each described method in the claim 1 to 7, wherein,
This illiteracy plate is to be stored in advance in the database;
The size of this picture to be split, shape, outline are all consistent with size, shape, outline that this covers plate;
In the step that the shape of each segment is cut apart picture to be split on according to this illiteracy plate, the outline of this picture to be split is overlapped with the outline of this illiteracy plate.
9. device of cutting apart picture automatically comprises:
Cover the plate acquisition module, be used to read in the illiteracy plate, this illiteracy plate is divided into a plurality of segments with different colours;
Cover the plate spider module, be used for all pixels of this illiteracy plate are traveled through;
The shape recognition module is used for identifying according to the different colours that traverses the shape of each segment on this illiteracy plate; And
Picture is cut apart module, is used for according to the shape of each segment on this illiteracy plate picture to be split being cut apart.
10. device as claimed in claim 9, wherein,
This illiteracy plate spider module also comprises:
Mapping table is set up the unit, is used for setting up mapping table in the process that this illiteracy plate is traveled through, and be index with the color in this illiteracy plate, corresponding with color is the regional record data of this color segment;
Wherein, the regional record data of every kind of color comprise: location of pixels minimum value and the maximal value on directions X and Y direction respectively in the segment of institute's corresponding color;
This shape recognition module also comprises:
The rectangular area determining unit is used for each color to this illiteracy plate that traverses, and determines a rectangular area according to described regional record data; And
The transparent processing unit is used in determined rectangular area, and other color except institute's corresponding color is carried out transparent processing;
This picture is cut apart module and is also comprised:
Rectangular area traversal and pixel extraction unit, be used for the pixel in this rectangular area is once traveled through again, the pairing color of pixel color and this rectangular area that is traversed is compared, an if coordinate (i, j) locate the color of pixel pairing color in this rectangular area just, then (i j) locates to take out the pixel of this picture to be split to the corresponding coordinate in picture to be split; Otherwise, if a coordinate (i, j) locating color of pixel is not the pairing color in this rectangular area, then can (i j) does not locate to take out pixel from the corresponding coordinate this picture to be split; And
Cut apart picture element unit cell, the pixel that is used for this picture to be split that will be taken out is stored in a space, forms a width of cloth picture by the set of whole pixels of this picture to be split that is taken out.
CN2011102532752A 2011-08-30 2011-08-30 Method and device for automatically segmenting picture Pending CN102289833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102532752A CN102289833A (en) 2011-08-30 2011-08-30 Method and device for automatically segmenting picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102532752A CN102289833A (en) 2011-08-30 2011-08-30 Method and device for automatically segmenting picture

Publications (1)

Publication Number Publication Date
CN102289833A true CN102289833A (en) 2011-12-21

Family

ID=45336219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102532752A Pending CN102289833A (en) 2011-08-30 2011-08-30 Method and device for automatically segmenting picture

Country Status (1)

Country Link
CN (1) CN102289833A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103035028A (en) * 2012-12-11 2013-04-10 广东威创视讯科技股份有限公司 Method and device of achieving interactive application scenario
CN103150656A (en) * 2013-04-02 2013-06-12 乐淘奇品网络技术(北京)有限公司 Method for selecting commodity component by using mask through webpage
CN104574466A (en) * 2015-01-14 2015-04-29 广东小天才科技有限公司 Jigsaw puzzle learning method and system
CN104867105A (en) * 2015-05-30 2015-08-26 北京金山安全软件有限公司 Picture processing method and device
CN106980655A (en) * 2017-03-09 2017-07-25 佛山益企信息科技有限公司 Picture segmentation handles storage method and system
CN107832473A (en) * 2017-11-30 2018-03-23 奕响(大连)科技有限公司 A kind of picture similar decision method after non-equal proportion stretching
CN107886134A (en) * 2017-11-30 2018-04-06 奕响(大连)科技有限公司 A kind of local creative similar decision method of picture

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329725A (en) * 2008-07-30 2008-12-24 电子科技大学 Method for dividing fingerprint image based on gradient projection and morphology
CN101571952A (en) * 2009-06-18 2009-11-04 北京航空航天大学 Method for segmenting video object based on fixed period regional compensation
CN101620679A (en) * 2009-07-22 2010-01-06 凌阳电通科技股份有限公司 Method for eliminating red eye in image

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329725A (en) * 2008-07-30 2008-12-24 电子科技大学 Method for dividing fingerprint image based on gradient projection and morphology
CN101571952A (en) * 2009-06-18 2009-11-04 北京航空航天大学 Method for segmenting video object based on fixed period regional compensation
CN101620679A (en) * 2009-07-22 2010-01-06 凌阳电通科技股份有限公司 Method for eliminating red eye in image

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DOUGLAS CHAI, ET AL: "Face Segmentation Using Skin-Color Map in Videophone Applications", 《IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY》, vol. 9, no. 4, 30 June 1999 (1999-06-30), pages 551 - 564, XP000829658, DOI: doi:10.1109/76.767122 *
黄晶,等: "基于快速彩色空间变换的足球机器人目标搜索", 《哈尔滨工业大学学报》, vol. 35, no. 9, 30 September 2003 (2003-09-30), pages 1036 - 1039 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103035028A (en) * 2012-12-11 2013-04-10 广东威创视讯科技股份有限公司 Method and device of achieving interactive application scenario
CN103035028B (en) * 2012-12-11 2015-10-07 广东威创视讯科技股份有限公司 A kind of method and device realizing interactive application scene
CN103150656A (en) * 2013-04-02 2013-06-12 乐淘奇品网络技术(北京)有限公司 Method for selecting commodity component by using mask through webpage
CN104574466A (en) * 2015-01-14 2015-04-29 广东小天才科技有限公司 Jigsaw puzzle learning method and system
CN104574466B (en) * 2015-01-14 2017-12-12 广东小天才科技有限公司 A kind of picture mosaic learning method and system
CN104867105A (en) * 2015-05-30 2015-08-26 北京金山安全软件有限公司 Picture processing method and device
CN104867105B (en) * 2015-05-30 2018-11-23 北京金山安全软件有限公司 Picture processing method and device
CN106980655A (en) * 2017-03-09 2017-07-25 佛山益企信息科技有限公司 Picture segmentation handles storage method and system
CN107832473A (en) * 2017-11-30 2018-03-23 奕响(大连)科技有限公司 A kind of picture similar decision method after non-equal proportion stretching
CN107886134A (en) * 2017-11-30 2018-04-06 奕响(大连)科技有限公司 A kind of local creative similar decision method of picture

Similar Documents

Publication Publication Date Title
CN102289833A (en) Method and device for automatically segmenting picture
CN109618222B (en) A kind of splicing video generation method, device, terminal device and storage medium
JP4353259B2 (en) Information processing apparatus, image display apparatus, control method therefor, and program causing computer to execute the method
CN101201903B (en) Image processing apparatus, method for controlling image processing apparatus
JP5686673B2 (en) Image processing apparatus, image processing method, and program
KR101423536B1 (en) System for constructiing mixed reality using print medium and method therefor
CN102081497B (en) Information processing apparatus, information processing method, and program
US9792732B2 (en) Systems and methods for activities solver development in augmented reality applications
EP2469538A1 (en) Electronic apparatus, display control method and program
CN108351896A (en) Content file image analysis
CN106816077A (en) Interactive sandbox methods of exhibiting based on Quick Response Code and augmented reality
CN109144384A (en) Display methods, device, hardware device and computer readable storage medium
US20140149932A1 (en) System and method for providing a tapestry presentation
CN107209631A (en) User terminal and its method for displaying image for display image
CN104516867A (en) Table reordering method and table reordering system
JP2012221261A (en) Information processing program, information processing method, information processor and information processing system
CN102214303A (en) Information processing device, information processing method and program
CN109658518A (en) A kind of three-dimensional object display methods, storage medium and computer based on augmented reality
US20140149427A1 (en) System and method for tapestry interface scoring
CN106331427A (en) Saturation enhancement method and apparatuses
US20140149885A1 (en) System and method for providing a tapestry interface with interactive commenting
US20140149860A1 (en) System and method for presenting a tapestry interface
KR20130095488A (en) Apparatus and method for providing three-dimensional model in the smart device
CN108010009A (en) A kind of method and device for removing interference figure picture
CN106570551B (en) Article marking and managing system, device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20111221

C20 Patent right or utility model deemed to be abandoned or is abandoned