Image processing clipping method convenient for adjusting image size
Technical Field
The invention relates to the technical field of image size cutting, in particular to a method for conveniently adjusting image size cutting for image processing.
Background
Image processing is a technology for analyzing images by a computer to achieve a required result, and is also called image processing, picture cropping belongs to one of image processing, picture batch cropping can be divided into five categories of relative cropping, absolute cropping, fixed cropping, thumbnail and size cropping, and image size cropping can be classified into image size cropping, so that the image is re-cropped in size.
In image cropping, a series of processing steps are required to be performed on the image after the image is picked up, and then the corresponding size cropping step is performed.
The conventional image size cutting method usually performs unified and disposable cutting and segmentation on the images due to factors such as convenience and time saving when cutting the irregular images, so that the finally cut images are not clear enough, the insufficient definition of the images is often caused by unsuitable resolution ratio given by the images with different sizes, and the problem and the influence caused by the problem are particularly considered in the process of cutting the images.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a clipping method for conveniently adjusting the image size for image processing, which solves the problems in the prior art.
In order to achieve the above purpose, the invention is realized by the following technical scheme: an image processing method for facilitating adjustment of image size cutting, the image processing method for facilitating adjustment of image size cutting is divided into two, namely an image size cutting method for regular images and an image size cutting method for irregular or special requirements, the image size cutting method for regular images specifically comprises the following steps:
(1) Importing an image;
(2) Scanning the image to determine a global space;
(3) Determining the resolution and adjusting the chromatic aberration;
(4) Determining the image size according to diagonal rule and cutting;
the image size clipping method aiming at irregular or special requirements specifically comprises the following steps:
(1) Importing an image;
(2) Scanning the image to determine a global space;
(3) Determining the resolution and adjusting the chromatic aberration;
(4) Selecting image contour features, and freely distributing grids on the image according to a dot-line-to-plane principle;
(5) According to the line or plane formed by the grid points, intercepting the line or plane along the edge of the selected area of the image as far as possible without leaving edges;
(6) After the image is cut off, the resolution is determined again, and the image is repaired through PS software;
(7) A blank document is built, and the image is reserved in the blank document in a white background;
(8) Repeating steps (4), (5), (6) and (7) until a final target image is obtained.
Optionally, the regular image may be directly cut according to the diagonal rule, and the irregular or specially required image may not be directly cut according to the diagonal rule.
Optionally, the scanned image is scanned and picked up, and the content of the scanned and picked up is specifically three aspects of image color distribution picking up, image morphology distribution picking up and image readable information picking up.
Optionally, the image readable information is specifically a file name, a file format, a publisher, a publishing time and a storage size of the image, and an original resolution of the image and an original size of the image.
Optionally, the distribution grid is used for selecting the image contour feature, and the distribution grid is specifically a lattice pick-up of dense points.
Optionally, the dot matrix pick-up of the dense dots includes image line dot matrix pick-up, image concentrated area dot matrix pick-up, and image color intersection area dot matrix pick-up.
Optionally, the image line dot matrix is picked up, and the border lines of the selected area of the image are traced through the dense strip dot matrix.
Optionally, the image concentrated area lattice is picked up, and the concentrated area of the image selected area is covered by the dense block lattice, and the concentrated area of the image selected area is specifically a color distribution area and a tile area.
Optionally, the dot matrix of the image color intersection area is picked up, and the color intersection area of the selected area of the image is covered by the dense block dot matrix, wherein the color intersection area of the selected area of the image is specifically a color transition area among different chromaticity, hue and color samples.
The invention provides a clipping method for image processing, which is convenient for adjusting the image size, and has the following beneficial effects: the image processing is used for conveniently adjusting the image size cutting method, aiming at image characteristics, the images are divided into two major types, namely regular images and irregular or special-requirement images, the two types of images are respectively processed in size and cutting aspect by adopting a proper mode method, the diagonal principle is directly adopted for determining the image cutting size for the regular images, the irregular or special-requirement images are segmented layer by layer, in the segmentation process, the timely resolution adjustment and PS repair are carried out on the images, the final obtained images are ensured to have very good definition as far as possible, the sizes and the areas of the captured images are determined in a grid distribution mode when the irregular or special-requirement images are cut, and the image sizes can be adjusted in a targeted mode according to the actual condition of the images, so that the aim of conveniently adjusting the image sizes is fulfilled.
Drawings
FIG. 1 is a schematic diagram of an image size cropping process according to the present invention;
FIG. 2 is a schematic diagram of a scanned image process according to the present invention;
FIG. 3 is a flow chart illustrating the process of selecting image profile features according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
Referring to fig. 1-3, the present invention provides a technical solution: the image processing method for facilitating adjustment of image size includes two specific methods, namely an image size cutting method for regular images and an image size cutting method for irregular or special requirements, and specifically comprises the following steps:
(1) Importing an image;
(2) Scanning the image to determine a global space;
(3) Determining the resolution and adjusting the chromatic aberration;
(4) Determining the image size according to diagonal rule and cutting;
the image size cutting method aiming at irregular or special requirements specifically comprises the following steps:
(1) Importing an image;
(2) Scanning the image to determine a global space;
(3) Determining the resolution and adjusting the chromatic aberration;
(4) Selecting image contour features, and freely distributing grids on the image according to a dot-line-to-plane principle;
(5) According to the line or plane formed by the grid points, intercepting the line or plane along the edge of the selected area of the image as far as possible without leaving edges;
(6) After the image is cut off, the resolution is determined again, and the image is repaired through PS software;
(7) A blank document is built, and the image is reserved in the blank document in a white background;
(8) Repeating steps (4), (5), (6) and (7) until a final target image is obtained;
the regular image can be cut directly according to the diagonal rule, the irregular or special-requirement image is cut directly without the diagonal rule, the image processing is convenient for adjusting the image size cutting method, the image is divided into two major categories aiming at the image characteristics, namely the regular image and the irregular or special-requirement image, the two categories of images are respectively processed in the aspects of size and cutting by adopting a proper method, the diagonal rule is directly adopted for determining the image cutting size for the regular image, and the irregular or special-requirement image is divided layer by layer;
scanning and picking up the image, wherein the content of the scanning and picking up is specifically three aspects of image color distribution picking up, image form distribution picking up and image readable information picking up, the image scanning process is actually a process of acquiring the basic form of the image, the purpose of the image scanning process is to determine the basic tone, the basic color and the basic layout of the image, the image readable information is specifically the file name, the file format, the publisher, the release time and the storage size of the image, the original resolution of the image and the original size of the image, and the image information is perfected by picking up the image readable information, so that the problem of poor resolution caused by difference of the file formats of the image is avoided;
the distribution grid is used for selecting image contour features, the distribution grid is particularly dense dot matrix pick-up, the dense dot matrix pick-up enables the pick-up process to be finer and more accurate, line surface drawing is closer to an original image, the dense dot matrix pick-up comprises image line dot matrix pick-up, image concentrated region dot matrix pick-up and image color intersection region dot matrix pick-up, three-party dot matrix pick-up of image lines, image concentrated regions and image color intersection regions is used for maximally restoring the image contour features, the image line dot matrix pick-up is used for tracing border lines of the image selected region, edge division is carried out on the image selected region, the image concentrated region dot matrix pick-up is used for covering the concentrated region of the image selected region, the concentrated region of the image selected region is particularly a color distribution region and a block region, the color and block concentrated representation region of the image selected region are divided, the image color intersection regions of the image selected region are covered through the dense regional dot matrix, the color intersection regions of the image selected region are particularly different in chromaticity, hue and color intersection regions are different in hue and color intersection regions, and color intersection regions are divided into transition regions;
in the process of carrying out layer-by-layer segmentation on irregular or specially required images, timely resolution adjustment and PS repair are carried out on the images, so that the finally obtained images are guaranteed to have very good definition as far as possible, when the irregular or specially required images are cut, the sizes and the areas of the captured images are determined in a grid distribution mode, the image sizes can be adjusted in a targeted manner according to the actual conditions of the images, and therefore the purpose of conveniently adjusting the image sizes is achieved.
In summary, the image processing is convenient for adjusting the image size cutting method, classifying and cutting images in different forms, and the cut images can keep extremely high definition, when the images with irregular or special requirements are cut, the images are divided layer by layer, the cutting is accurate, the condition that excessive images are not cut or unnecessary images are reserved is ensured, and the cut final images can be ensured to have extremely high definition.
The foregoing is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art, who is within the scope of the present invention, should make equivalent substitutions or modifications according to the technical scheme of the present invention and the inventive concept thereof, and should be covered by the scope of the present invention.