A kind of image procossing, which is used, is convenient for adjustment of image size method of cutting out
Technical field
The present invention relates to picture size tailoring technique field, specially a kind of image procossing is used to be cut out convenient for adjustment of image size
Shear method.
Background technique
Image procossing, be it is a kind of image is analyzed with computer, to reach the technology of required result, also known as at image
Reason, picture, which is cut, belongs to one kind of image procossing, picture batch cut can be divided into opposite cutting, absolutely cut, it is fixed cut,
Thumbnail, size cut five major class, and picture size cutting can also be classified as in the cutting of image size, it is intended to carry out size ruler to image
The interception again of very little aspect.
It in image cutting-out, needs to pick up image in advance, needs to carry out image a series of processing step after pickup
Suddenly, corresponding size Cut out step is carried out again later, the methods of image cutting-out are varied, cannot treat different things as the same, and need
In conjunction with specific image actual conditions, to select or arrange suitable methods.
Existing picture size method of cutting out, when being cut out to irregular image, often because for convenience of, save when
Between etc. factors, unitized to image, disposably cut out segmentation, this results in the imaging of final institute's truncated picture not clear enough
It is clear, and image is not enough clearly often because caused by the resolution ratio given of image is not suitable under different sizes, into
During row image cropping, this kind of problem and caused influence are considered especially.
Summary of the invention
In view of the deficiencies of the prior art, it is used the present invention provides a kind of image procossing and is convenient for adjustment of image size cutting side
Method solves the problems mentioned above in the background art.
In order to achieve the above object, the present invention is achieved by the following technical programs: a kind of image procossing is used to adjust
Picture size method of cutting out, the described image procossing are specifically divided to two kinds with convenient for adjustment of image size method of cutting out, and one kind is needle
It is a kind of for for irregular or have the picture size method of cutting out of particular/special requirement to the picture size method of cutting out of regular image,
The picture size method of cutting out for regular image comprising the following steps:
(1) image is imported;
(2) scan image determines overall situation length;
(3) it determines resolution ratio, and adjusts color difference;
(4) picture size is determined according to diagonal line rule and cut;
It is described for it is irregular or have particular/special requirement picture size method of cutting out comprising the following steps:
(1) image is imported;
(2) scan image determines overall situation length;
(3) it determines resolution ratio, and adjusts color difference;
(4) image outline feature is chosen, according to dotted line at face principle, free distribution grid on the image;
(5) line being linked to be according to grid point or face, as far as possible along image selected areas edge without staying side to intercept;
(6) after image is cut off, resolution ratio is redefined, image is repaired by PS software;
(7) blank document is separately built, image is deposited in the blank document with white background;
(8) step (4), (5), (6) and (7) are repeated, until obtaining final goal image.
Optionally, the regular image can directly be cut according to diagonal line rule, described irregular or have special want
The image asked is not cut directly then according to diagonal method.
Optionally, the scan image is scanned pickup to image, and the content for scanning pickup is specially image color point
The pickup of pickup, the image aspects distribution of cloth and three aspects of pickup of image readable information.
Optionally, described image readable information be specially the filename of image, file format, publisher, issuing time and
The original size of the original resolution and image of storage size and image.
Optionally, the distribution grid is for choosing image outline feature, and distribution grid is specially the dot matrix of point off density
It picks up.
Optionally, the point array pickup of the point off density includes region point array pickup in image lines point array pickup, image set
With image color intersectional region point array pickup.
Optionally, described image lines point array pickup passes through intensive strip dot matrix, the frame line of tracing image selected areas
Item.
Optionally, described image concentrated area point array pickup covers image selected areas by intensive blocking dot matrix
Concentrated area, the concentrated area of described image selected areas are specially COLOR COMPOSITION THROUGH DISTRIBUTION region and segment region.
Optionally, described image color intersectional region point array pickup covers area selected by image by intensive blocking dot matrix
The color intersectional region in domain, the color intersectional region of described image selected areas are specially the color between different colorations, tone, tinctorial pattern
Color transitional region.
The present invention provides a kind of image procossing use be convenient for adjustment of image size method of cutting out, have it is following the utility model has the advantages that
The image procossing, which is used, divides the image into two major class, i.e. rule schema for characteristics of image convenient for adjustment of image size method of cutting out
Picture and image that is irregular or having particular/special requirement, and methods appropriate are respectively adopted to these two types of images and carry out size and sanction
The processing for cutting aspect directlys adopt diagonal line principle for regular image to determine image cropping size, for irregular or have
The image of particular/special requirement is then to divide layer by layer, and during segmentation, to image progress, timely resolution adjustment and PS are repaired
It is multiple, guarantee that final gained image has extraordinary clarity as much as possible, to it is irregular or have the image of particular/special requirement into
When row is cut, in such a way that grid is distributed, size and the region of institute's screenshot picture are determined, it can be with regard to image actual conditions, to figure
As size is targetedly adjusted, to achieve the purpose that convenient for adjustment of image size.
Detailed description of the invention
Fig. 1 is that picture size of the present invention cuts flow diagram;
Fig. 2 is scan image flow diagram of the present invention;
Fig. 3 is that the present invention chooses image outline feature flow diagram.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.
Please refer to Fig. 1-3, the present invention provides a kind of technical solution: a kind of image procossing is used to be cut convenient for adjustment of image size
Method, the image procossing are specifically divided to two kinds with convenient for adjustment of image size method of cutting out, a kind of image for for regular image
Size method of cutting out, it is a kind of for for irregular or have the picture size method of cutting out of particular/special requirement, for the figure of regular image
As size method of cutting out comprising the following steps:
(1) image is imported;
(2) scan image determines overall situation length;
(3) it determines resolution ratio, and adjusts color difference;
(4) picture size is determined according to diagonal line rule and cut;
For it is irregular or have particular/special requirement picture size method of cutting out comprising the following steps:
(1) image is imported;
(2) scan image determines overall situation length;
(3) it determines resolution ratio, and adjusts color difference;
(4) image outline feature is chosen, according to dotted line at face principle, free distribution grid on the image;
(5) line being linked to be according to grid point or face, as far as possible along image selected areas edge without staying side to intercept;
(6) after image is cut off, resolution ratio is redefined, image is repaired by PS software;
(7) blank document is separately built, image is deposited in the blank document with white background;
(8) step (4), (5), (6) and (7) are repeated, until obtaining final goal image;
Regular image can directly be cut according to diagonal line rule, irregularly or have the image of particular/special requirement not according to diagonal line
Rule is directly cut, which, which uses, divides the image into convenient for adjustment of image size method of cutting out for characteristics of image
Two major class, i.e. regular image and image that is irregular or having particular/special requirement, and side appropriate is respectively adopted to these two types of images
Processing in terms of formula method carries out size and cuts directlys adopt diagonal line principle for regular image to determine image cropping
Size is then to divide layer by layer for irregular or have the image of particular/special requirement;
Scan image is scanned pickup to image, and the content for scanning pickup is specially the pickup of image color distribution, image shape
The pickup of state distribution and three aspects of pickup of image readable information, the process of scan image are actually that acquisition image is basic
The process of form, it is therefore an objective to determine image keynote, primary colours and basic layout, image readable information is specially the file of image
The original size of the original resolution and image of name, file format, publisher, issuing time and storage size and image is led to
Captured image readable information is crossed, image information is carried out perfect, resolution ratio is not caused by avoiding image file format from having difference
Well determining problem;
Distribution grid is for choosing image outline feature, and distribution grid is specially the point array pickup of point off density, the point of densification
Battle array is picked up so that pick process is more careful accurate, and line face is described more close to original image, and the point array pickup of point off density includes scheming
As region point array pickup and image color intersectional region point array pickup in lines point array pickup, image set, by image lines, figure
As concentrated area and image color intersectional region tripartite's point array pickup, image outline feature is restored to the maximum extent, is obtained more
It is careful close to image outline, image lines point array pickup passes through intensive strip dot matrix, the frame line of tracing image selected areas
Item carries out edge division to image selected areas, and region point array pickup in image set passes through intensive blocking dot matrix, coverage diagram
As the concentrated area of selected areas, the concentrated area of image selected areas is specially COLOR COMPOSITION THROUGH DISTRIBUTION region and segment region, to figure
As selected areas color, block concentrated expression region are divided, image color intersectional region point array pickup passes through intensive blocking point
Battle array covers the color intersectional region of image selected areas, and the color intersectional region of image selected areas is specially different colorations, color
It adjusts, the color transition region between tinctorial pattern, the image selected areas color transitional region that crosses is divided;
To irregular or during have the image of particular/special requirement divide layer by layer, timely resolution ratio tune is carried out to image
Whole and PS is repaired, and guarantees that final gained image has extraordinary clarity as much as possible, to irregular or have particular/special requirement
Image when being cut, in such a way that grid is distributed, determine size and the region of institute's screenshot picture, can be with regard to the practical feelings of image
Condition targetedly adjusts picture size, to achieve the purpose that convenient for adjustment of image size.
To sum up, which, which uses, is convenient for adjustment of image size method of cutting out, classifies to various forms of images, and
Classification is cut, and the image after cutting can retain high clarity, to it is irregular or have the image of particular/special requirement into
When row is cut, image is divided layer by layer, it is accurate to cut, it is ensured that will not crop excessive image or it is reserved excessively need not
It wants other than image, additionally it is possible to guarantee that intercepted final image has high clarity.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,
Anyone skilled in the art in the technical scope disclosed by the present invention, according to the technique and scheme of the present invention and its
Inventive concept is subject to equivalent substitution or change, should be covered by the protection scope of the present invention.