CN102456213A - Photo processing method - Google Patents
Photo processing method Download PDFInfo
- Publication number
- CN102456213A CN102456213A CN2010105137695A CN201010513769A CN102456213A CN 102456213 A CN102456213 A CN 102456213A CN 2010105137695 A CN2010105137695 A CN 2010105137695A CN 201010513769 A CN201010513769 A CN 201010513769A CN 102456213 A CN102456213 A CN 102456213A
- Authority
- CN
- China
- Prior art keywords
- lines
- photographing device
- background
- prospect
- pixel information
- 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
Links
Images
Landscapes
- Image Processing (AREA)
Abstract
The invention provides a photo processing method, wherein one implementation method comprises the steps of: generating background lines on the internal edge of the view finding boundary of photographing equipment; acquiring the pixel information of the background covered by the background lines; computing a foreground image boundary according to the pixel information; and cutting a foreground image according to the foreground image boundary. Compared with the prior art, the photo processing method has the advantages that a user is not required to mark foreground and background lines, the foreground lines and the background lines are directly introduced on the photographing equipment, the user is only required to define a foreground frame required to be cut in the background lines during photographing and to enable a foreground to be within the focusing area of the photographing equipment, the pixel information required in the foreground and the background can be directly acquired, the photo can be segmented at a dash and the method is suitable for large-scale photo processing.
Description
Technical field
The present invention relates to technical field of image processing, the photo disposal route of parts of images in particularly a kind of intercepting photo.
Background technology
In the prior art, the method for required part in the image being carried out intercepting has multiple.For example set up cut-off rule through the method for artificial judgment, like the noose instrument in the Photoshop image processing software by intercepting position and remainder interdigit.For example adopt various algorithms to seek by the border at intercepting position automatically again, thereby realize from former figure, being separated by the intercepting position.Such algorithm has varied, for example the sectional drawing algorithm that adopted for No. 03116447.1 of Chinese invention patent application.
But above-mentioned prior art exists significantly not enough.Though adopt artificial judgment more accurate to the establishment on border by the method for intercepting image boundary, the artificial accurate operation to locating devices such as mouses of consuming time and needs is not suitable for the processing to great amount of images.In addition, because the complicacy of image, existing automatic sectional drawing algorithmic method is difficult to accurately confirm by the border at intercepting position, therefore also has limitation.
A kind of in addition border degree of accuracy of seeking is than higher method C Rother for example, the dividing method of being mentioned in " Grabcut:Interactive foreground extraction using iterated graph cuts " article that V Kolmogorov and A Blake deliver on " (ACM Transactions on Graphics (TOG) " the 23rd volume of publishing in August, 2004.
The step of this method comprises: the user delineates first group of lines in prospect inside on picture; Gather the information of first group of pixel that lines streaked, be designated as first group of pixel set information; On said picture background, delineate second group of lines; Gather the information of second group of pixel that lines streaked, be designated as second group of pixel set information; Bring first group of pixel set information and second pixel set information into the border computation model and calculate the border between prospect and the background.
When adopting the said method split image, first group of lines and second group of lines do not need point-device delineating, and have very big randomness.But since two groups lines streaked has comprised prospect and background information, cooperate corresponding algorithm again, can obtain segmentation effect than higher accuracy.
Similarly the image segmentation algorithm model also comprises the partitioning algorithm of mentioning among the Interactive Graph Cuts for Optimal Boundary&Region Segmentation of Objects in N-D Images that Boykov&Jolly delivers in calendar year 2001 on ICCV in addition.Perhaps Yin Li, Jian Sun, Chi-Keung Tang, and the partitioning algorithm in the ACM Transactions on Graphics that on SIGGRAPH ' 04, delivered in 2004, mentioned of Heung-Yeung Shum.
The shortcoming of these methods is that the user also need delineate prospect and background lines, and then efficient is lower to handle picture or photo if desired in large quantity.
Summary of the invention
Embodiment of the present invention technical matters to be solved is: how to improve the efficient of cutting apart photo.
For solving the problems of the technologies described above, according to an embodiment of the invention, the photo disposal route is provided, comprise step: at the border inward flange generation background lines of finding a view of photographing device; Gather the Pixel Information of the background that said background lines are covered; Calculate the foreground image border according to said Pixel Information.
Alternatively, also comprise step: according to said foreground image border intercepting foreground image.
Alternatively, said background lines are arranged on the camera lens of said photographing device.
Alternatively, said photographing device is digital photographing device, and said background lines are arranged on the sensitive chip of said digital photographing device.
Alternatively, said background lines are closed lines, single hop lines or multistage lines.
Alternatively, also comprise step: the focus point edge at photographing device generates the prospect lines; The Pixel Information of the prospect that collection prospect lines are covered; Said being specially according to the Pixel Information of prospect and the Pixel Information of background according to said Pixel Information calculating foreground image border calculated the foreground image border.
Alternatively, said prospect lines are arranged on the camera lens of said photographing device.
Alternatively, said photographing device is digital photographing device, and said prospect lines are arranged on the sensitive chip of said digital photographing device.
Alternatively, said prospect lines are closed lines, single hop lines or multistage lines.
According to another implementation of the invention, the photo disposal route is provided, comprises step: at the inward flange generation background lines of the photo of photographing device output; Gather the Pixel Information of the background that said background lines are covered; Calculate the foreground image border according to said Pixel Information.
Alternatively, also comprise step: according to said foreground image border intercepting foreground image.
Alternatively, said photographing device is digital photographing device, and said background lines are generated by the imaging system of said digital photographing device.
Alternatively, said background lines are closed lines, single hop lines or multistage lines.
Alternatively, also comprise step: the focus point edge at the photo of photographing device output generates the prospect lines; The Pixel Information of the prospect that collection prospect lines are covered; Said being specially according to the Pixel Information of prospect and the Pixel Information of background according to said Pixel Information calculating foreground image border calculated the foreground image border.
Alternatively, said photographing device is digital photographing device, and said prospect lines are generated by the imaging system of said digital photographing device.
Alternatively, said prospect lines are closed lines, single hop lines or multistage lines.
Compared with prior art; The present invention does not need the user to delineate prospect and background lines, but on photographing device directly introducing prospect lines and background lines, the user only need will need the prospect of intercepting to confine in the background lines when taking pictures; And the prospect that makes is in the focusing zone of camera installation; Just can directly obtain Pixel Information required in prospect and the background, make accomplish without any letup cutting apart of photo, be fit to large batch of photo and handle.
Description of drawings
Fig. 1 is the process flow diagram of photo disposal route in the one embodiment of the invention;
Fig. 2 is the process flow diagram of photo disposal route in the another embodiment of the present invention;
Fig. 3 is the process flow diagram of photo disposal route among another embodiment of the present invention;
Fig. 4 is a middle photo synoptic diagram embodiment illustrated in fig. 3;
Fig. 5 be embodiment illustrated in fig. 3 in the foreground image synoptic diagram of intercepting from photo.
Embodiment
A lot of details have been set forth in the following description so that make much of the present invention.But the present invention can implement much to be different from alternate manner described here, and those skilled in the art can do similar popularization under the situation of intension of the present invention, so the present invention does not receive the restriction of following disclosed practical implementation.
Secondly, the present invention utilizes synoptic diagram to be described in detail, and when the embodiment of the invention was detailed, for ease of explanation, said synoptic diagram was an instance, and it should not limit the scope of the present invention's protection at this.
Do detailed explanation below in conjunction with the accompanying drawing specific embodiments of the invention.
Photo disposal route as shown in Figure 1, as to provide in enforcement of the present invention comprises step:
S101 is at the border inward flange generation background lines of finding a view of photographing device;
S102, the Pixel Information of collection background background that lines cover;
S103 calculates the foreground image border according to Pixel Information;
S104 is according to foreground image border intercepting foreground image.
Execution in step S101 at first is at the border inward flange generation background lines of finding a view of photographing device.Step S101 substitutes a step of delineating the background lines of being accomplished by the user in the prior art.Here the said border inward flange of finding a view is meant in one section zone in the view-finder border, for example can be length apart from the view-finder border be the long limit of view-finder or diameter length 30% with interior zone, also comprise the border itself of finding a view.The concrete size in this section zone, those skilled in the art can obtain through the experiment of limited number of time.
This is said generation background lines, can for example be that the background lines are arranged on the camera lens of photographing device, for example comprises being drawn on the camera lens or on camera lens, sticking the background lines.
In a preferred embodiment of the present invention, the photographing device that is adopted is digital photographing device, for example can be digital camera.In the preferred embodiment, can the background lines be arranged on the sensitive chip of digital photographing device.For example can on the photosensitive unit of the relevant position of CCD chip, carry out thin layer applies.
The above-mentioned background lines can be straight-line segments, comprise single hop lines or multistage lines; Can be curve also, comprise closed curve or non-closed curve; Can also regular line segment or the curve of right and wrong.
Execution in step S102 is the information of the pixel on the path passed through of the background lines that set among the acquisition step S101 then.These information include but not limited to information such as brightness, color and GTG.These information are to calculate in the model that is used for bringing in the mentioned document of background technology for example, and the kind of the information of therefore being gathered depends on the needs of the model that subsequent calculations adopts.
Then execution in step S103 brings the Model Calculation foreground image border in the document of mentioning in the background technology for example into according to Pixel Information.The output in this step promptly is the boundary position of foreground image.That is to say that after step S103 carried out, foreground image can be confined.
Last execution in step S104, according to the foreground image border with image boundary intercepting foreground image.Thereby obtain foreground image.
In the above-described embodiments; Do not need the user to delineate the background lines; But on photographing device, directly introducing the background lines, the user only need will need the prospect of intercepting to confine in the background lines when taking pictures, and just can directly obtain Pixel Information required in the background; Thereby the prospect of acquisition border, and then intercepting foreground image.Make accomplish without any letup cutting apart of photo, be fit to large batch of photo and handle.
Photo disposal route as shown in Figure 2, as to provide in another enforcement of the present invention comprises step:
S201 is at the photo inward flange generation background lines of photographing device output;
S202, the Pixel Information of collection background background that lines cover;
S203 calculates the foreground image border according to Pixel Information;
S204 is according to foreground image border intercepting foreground image.
In the present embodiment, be to adopt digital photographing device output photo.Thereby the background lines among the step S201 can be generated by the imaging system of digital photographing device.That is to say, through the border inward flange generation background lines of software/hardware mode at the photo of digital photographing device output.Such generating mode can be to be accomplished by the software/hardware of digital photographing device self.Certainly, one skilled in the art will appreciate that can also be through the photo adding background lines of the software/hardware beyond the digital photographing device self to digital photographing device output.
Here said photo inward flange is meant in one section zone in the photo border, the length that for example can be the distance picture border be the long limit of photo or diameter length 30% with interior zone, also comprise photo border itself.The concrete size in this section zone, those skilled in the art can obtain through the experiment of limited number of time.
Because the digital photographing device that adopts, thereby can on the real-time display screen of photographing device, show this residing position of background lines.That is to say, both can be at the view-finder inward flange generation background lines of photographing device, again can be in the photo of output also generation background lines.
Other steps are identical with previous embodiment in the present embodiment, repeat no more at this.
Photo disposal route as shown in Figure 3, as to provide in another enforcement of the present invention comprises step:
S301, at the focus point edge of photographing device or the focus point edge of the photo of photographing device output generate the prospect lines;
S302 is at the photo inward flange generation background lines of border inward flange or the photographing device output of finding a view of photographing device;
S303, the Pixel Information of collection prospect prospect that lines cover;
S304, the Pixel Information of collection background background that lines cover;
S305 calculates the foreground image border according to the Pixel Information of prospect and the Pixel Information of background;
S306 is according to foreground image border intercepting foreground image.
As shown in Figure 4, comprise prospect 401 in the view area of photographing device, i.e. pine tree.Part except prospect 401 in the view area of photographing device is a background 402, comprises cloud, background etc.In the prior art, when taking pictures, need elder generation that the focus of camera lens is accumulated on the prospect 401, enough clear to guarantee required prospect 401.
Execution in step S301 then, at the focus point edge of photographing device or the focus point edge of the photo of photographing device output generate prospect lines 403.Here said focus point edge is near the focus point and surrounds one section zone of focus point, for example can be that the length of side or diameter are that the long edge lengths 20% of view-finder is with interior zone.The concrete size in this section zone, those skilled in the art can obtain through the experiment of limited number of time.
In a preferred embodiment of the present invention, the photographing device that is adopted is digital photographing device, for example can be digital camera.In the preferred embodiment, can prospect lines 403 be arranged on the sensitive chip of digital photographing device.For example can on the photosensitive unit of the relevant position of CCD chip, carry out thin layer applies.
Adopt among another preferred embodiment of digital photographing device in the present invention, these prospect lines 403 are generated by the imaging system of digital photographing device.That is to say, generate prospect lines 403 at the focus edge of the photo of digital photographing device output through software.Such generating mode can be to be accomplished by the software/hardware of digital photographing device self.Certainly, one skilled in the art will appreciate that can also be through the focus edge adding prospect lines 403 of the software/hardware beyond the digital photographing apparatus to the photo of digital photographing device output.
Above-mentioned prospect lines 403 can be straight-line segments, comprise single hop lines or multistage lines; Can be curve also, comprise closed curve or non-closed curve; Can also regular line segment or the curve of right and wrong.
Then execution in step S302 is at the photo inward flange background lines 404 of find a view the border inward flange or the photographing device output of photographing device.Here the step of generation background lines 404 with previous embodiment in corresponding step identical, previous embodiment is existing to be described in detail, repeats no more at this.
Execution in step S303 then gathers the Pixel Information of prospect lines 403 prospects that cover.Promptly gather the information of the pixel on the path that prospect lines 403 are passed through.These information include but not limited to information such as brightness, color and GTG.These information are to calculate in the model that is used for bringing in the mentioned document of background technology for example, and the kind of the information of therefore being gathered depends on the needs of the model that subsequent calculations adopts.
Follow execution in step S304, gather the Pixel Information of background lines 404 backgrounds that cover.Corresponding steps is identical in this step and the previous embodiment, repeats no more at this.
Execution in step S305 then is according to foreground pixel information and background pixel information calculations prospect 401 image boundaries.Be about to foreground pixel information and background pixel information and bring Model Calculation prospect 401 image boundaries in the document of mentioning in the background technology for example into.The output in this step promptly is the boundary position of prospect 401 images.
Last execution in step S306 is according to the image of foreground image border intercepting prospect 401.As shown in Figure 5, obtain the image of prospect 401.
In the present embodiment, owing to added prospect lines 403, can obtain the Pixel Information of prospect 401, thereby can adopt in the background technology more accurately that computation model comes calculating prospect 401, make that the border of prospect 401 is more accurate.
Though the present invention discloses as above with preferred embodiment, yet be not in order to limit the present invention.Any technological human body person who is familiar with this area; Do not breaking away under the technical scheme scope situation of the present invention; All the method for above-mentioned announcement capable of using and technology contents are made many possible changes and modification to technical scheme of the present invention, or are revised as the equivalent embodiment of equivalent variations.Therefore, every content that does not break away from technical scheme of the present invention, all still belongs in the scope of technical scheme protection of the present invention any simple modification, equivalent variations and modification that above embodiment did according to technical spirit of the present invention.
Claims (16)
1. the photo disposal route is characterized in that, comprises step:
The border inward flange generation background lines of finding a view at photographing device;
Gather the Pixel Information of the background that said background lines are covered;
Calculate the foreground image border according to said Pixel Information.
2. photo disposal route according to claim 1 is characterized in that, also comprises step: according to said foreground image border intercepting foreground image.
3. photo disposal route according to claim 1 is characterized in that: said background lines are arranged on the camera lens of said photographing device.
4. photo disposal route according to claim 1 is characterized in that: said photographing device is digital photographing device, and said background lines are arranged on the sensitive chip of said digital photographing device.
5. photo disposal route according to claim 1 is characterized in that: said background lines are closed lines, single hop lines or multistage lines.
6. photo disposal route according to claim 1 is characterized in that, also comprises step:
Focus point edge at photographing device generates the prospect lines;
The Pixel Information of the prospect that collection prospect lines are covered;
Said being specially according to the Pixel Information of prospect and the Pixel Information of background according to said Pixel Information calculating foreground image border calculated the foreground image border.
7. photo disposal route according to claim 6 is characterized in that: said prospect lines are arranged on the camera lens of said photographing device.
8. photo disposal route according to claim 6 is characterized in that: said photographing device is digital photographing device, and said prospect lines are arranged on the sensitive chip of said digital photographing device.
9. photo disposal route according to claim 6 is characterized in that: said prospect lines are closed lines, single hop lines or multistage lines.
10. the photo disposal route is characterized in that, comprises step:
Inward flange generation background lines at the photo of photographing device output;
Gather the Pixel Information of the background that said background lines are covered;
Calculate the foreground image border according to said Pixel Information.
11. photo disposal route according to claim 10 is characterized in that, also comprises step: according to said foreground image border intercepting foreground image.
12. photo disposal route according to claim 10 is characterized in that: said photographing device is digital photographing device, and said background lines are generated by the imaging system of said digital photographing device.
13. photo disposal route according to claim 10 is characterized in that: said background lines are closed lines, single hop lines or multistage lines.
14. photo disposal route according to claim 10 is characterized in that, also comprises step:
Focus point edge at the photo of photographing device output generates the prospect lines;
The Pixel Information of the prospect that collection prospect lines are covered;
Said being specially according to the Pixel Information of prospect and the Pixel Information of background according to said Pixel Information calculating foreground image border calculated the foreground image border.
15. photo disposal route according to claim 14 is characterized in that: said photographing device is digital photographing device, and said prospect lines are generated by the imaging system of said digital photographing device.
16. photo disposal route according to claim 14 is characterized in that: said prospect lines are closed lines, single hop lines or multistage lines.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105137695A CN102456213A (en) | 2010-10-20 | 2010-10-20 | Photo processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105137695A CN102456213A (en) | 2010-10-20 | 2010-10-20 | Photo processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102456213A true CN102456213A (en) | 2012-05-16 |
Family
ID=46039377
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105137695A Pending CN102456213A (en) | 2010-10-20 | 2010-10-20 | Photo processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102456213A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103400344A (en) * | 2013-07-15 | 2013-11-20 | 肖遥 | Photo processing method based on digital image |
WO2015021796A1 (en) * | 2013-08-16 | 2015-02-19 | 北京京东尚科信息技术有限公司 | Method and device for manufacturing virtual fitting model image |
CN106373139A (en) * | 2016-08-18 | 2017-02-01 | 广州视源电子科技股份有限公司 | Image processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101137011A (en) * | 2006-08-29 | 2008-03-05 | 索尼株式会社 | Image processing apparatus, image processing method and computer program |
CN101149462A (en) * | 2006-09-22 | 2008-03-26 | 索尼株式会社 | Imaging apparatus, control method of imaging apparatus, and computer program |
CN101416219A (en) * | 2006-02-14 | 2009-04-22 | 快图影像有限公司 | Foreground/background segmentation in digital images |
CN101777184A (en) * | 2009-11-11 | 2010-07-14 | 中国科学院自动化研究所 | Local distance study and sequencing queue-based visual target tracking method |
-
2010
- 2010-10-20 CN CN2010105137695A patent/CN102456213A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101416219A (en) * | 2006-02-14 | 2009-04-22 | 快图影像有限公司 | Foreground/background segmentation in digital images |
CN101137011A (en) * | 2006-08-29 | 2008-03-05 | 索尼株式会社 | Image processing apparatus, image processing method and computer program |
US20080056572A1 (en) * | 2006-08-29 | 2008-03-06 | Frank Nielsen | Image processing apparatus, image processing method and computer program |
CN101149462A (en) * | 2006-09-22 | 2008-03-26 | 索尼株式会社 | Imaging apparatus, control method of imaging apparatus, and computer program |
CN101777184A (en) * | 2009-11-11 | 2010-07-14 | 中国科学院自动化研究所 | Local distance study and sequencing queue-based visual target tracking method |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103400344A (en) * | 2013-07-15 | 2013-11-20 | 肖遥 | Photo processing method based on digital image |
CN103400344B (en) * | 2013-07-15 | 2015-09-23 | 肖遥 | A kind of photo processing method based on digital picture |
WO2015021796A1 (en) * | 2013-08-16 | 2015-02-19 | 北京京东尚科信息技术有限公司 | Method and device for manufacturing virtual fitting model image |
GB2534046A (en) * | 2013-08-16 | 2016-07-13 | Beijing Jingdong Shangke Information Technology Co Ltd | Method and device for manufacturing virtual fitting model image |
GB2534046B (en) * | 2013-08-16 | 2017-05-10 | Beijing Jingdong Shangke Information Technology Co Ltd | Method and device for manufacturing virtual fitting model image |
AU2014308419B2 (en) * | 2013-08-16 | 2017-08-10 | Beijing Jingdong Shangke Information Technology Co, Ltd. | Method and device for manufacturing virtual fitting model image |
CN106373139A (en) * | 2016-08-18 | 2017-02-01 | 广州视源电子科技股份有限公司 | Image processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11457138B2 (en) | Method and device for image processing, method for training object detection model | |
WO2020259179A1 (en) | Focusing method, electronic device, and computer readable storage medium | |
CN110381369B (en) | Method, device and equipment for determining recommended information implantation position and storage medium | |
Li et al. | Reconstructing building mass models from UAV images | |
CN110334635B (en) | Subject tracking method, apparatus, electronic device and computer-readable storage medium | |
WO2017016050A1 (en) | Image preview method, apparatus and terminal | |
EP2956891B1 (en) | Segmenting objects in multimedia data | |
KR101167567B1 (en) | Fish monitoring digital image processing apparatus and method | |
Fabrizio et al. | Text segmentation in natural scenes using toggle-mapping | |
US20150319373A1 (en) | Method and device to compose an image by eliminating one or more moving objects | |
WO2018032702A1 (en) | Image processing method and apparatus | |
WO2021129597A1 (en) | Descriptive sub-map generation method, positioning method and apparatus, device, and storage medium | |
CN102456213A (en) | Photo processing method | |
CN108471497A (en) | A kind of ship target real-time detection method based on monopod video camera | |
WO2023040437A1 (en) | Curbstone determination method and apparatus, and device and storage medium | |
US9995905B2 (en) | Method for creating a camera capture effect from user space in a camera capture system | |
CN113610873B (en) | Noctilucent remote sensing image data processing method and device | |
CN105335451A (en) | Processing method and apparatus for display data in finder frame, shooting method and terminal | |
CN109726716A (en) | A kind of image processing method and system | |
CN109508641A (en) | A kind of recognition methods of urban water-body, device, storage medium and equipment | |
Liu et al. | Fog effect for photography using stereo vision | |
CN111382645B (en) | Method and system for identifying overdue building in electronic map | |
CN114372931A (en) | Target object blurring method and device, storage medium and electronic equipment | |
CN114022843A (en) | Picture processing method and device, computer equipment and storage medium | |
Walton et al. | Vehicle object retargeting from dynamic traffic videos for real-time visualisation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120516 |