CN103500439A - Image printing method based on image processing technology - Google Patents

Image printing method based on image processing technology Download PDF

Info

Publication number
CN103500439A
CN103500439A CN201310395645.5A CN201310395645A CN103500439A CN 103500439 A CN103500439 A CN 103500439A CN 201310395645 A CN201310395645 A CN 201310395645A CN 103500439 A CN103500439 A CN 103500439A
Authority
CN
China
Prior art keywords
image
matrix
pixel
minor matrix
minor
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.)
Granted
Application number
CN201310395645.5A
Other languages
Chinese (zh)
Other versions
CN103500439B (en
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.)
Hangzhou enjoy Tour Technology Co., Ltd.
Original Assignee
Xian University of Technology
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 Xian University of Technology filed Critical Xian University of Technology
Priority to CN201310395645.5A priority Critical patent/CN103500439B/en
Publication of CN103500439A publication Critical patent/CN103500439A/en
Application granted granted Critical
Publication of CN103500439B publication Critical patent/CN103500439B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an image printing method based on the image processing technology. The image printing method specifically comprises the following steps that first, preprocessing is conducted on an original image; second, contour extraction is conducted on the image preprocessed in the first step; third, the image on which the contour extraction is conducted is compressed; fourth, the compressed image obtained in the third step is printed to a drawing board through a point printing device, and therefore printing and drawing of the original image are achieved. Various image processing technologies are integrated, the image is collected, processed and analyzed, and the processed image is printed out on the drawing board through the point printing device. The image printing method based on the image processing technology can effectively extract the outline of the image. Compared with manual image carving, the image printing method based on the image processing technology greatly shortens time, improves efficiency, achieves liberation of labor, achieves image information collection, processing and analysis, and solves the problem that an existing manual image printing method is low in efficiency.

Description

The drawing method of beating based on image processing techniques
Technical field
The invention belongs to image and process and the automatic control technology field, relate to a kind of drawing method of beating based on image processing techniques.
Background technology
On slabstone, portraying is one of traditional culture of Chinese Typical Representative, and the stone inscription line drawing is exactly typical representative, from Han dynasty, engenders on the record of events inscribed on a tablet, lintel, the stone base of column etc.But along with social development, the continuous progress of science and technology, from the appearance of global First printer in 1885, printed matter starts worldwide to spread to rapidly various aspects.Although printed matter has occupied major part aspect decoration, but flagstone picture still occupies one seat at ornament as a kind of artwork, and along with the raising of living standard and spiritual level, the mankind more and more like having the ornament of artistry, generally, artificial flagstone picture needs manpower to complete, so not only consuming time but also consume power, work efficiency is low, is unfavorable for liberating manpower.
Summary of the invention
The purpose of this invention is to provide a kind of drawing method of beating based on image processing techniques, to solve the existing inefficient problem of drawing method of manually beating.
The technical solution used in the present invention is, the drawing method of beating based on image processing techniques is specifically implemented according to following steps,
Step 1, carry out pre-service to original image;
Step 2, to carrying out the profile extraction through the pretreated image of step 1;
Step 3, compressed the image after step 2 profile extracts;
Step 4, the compression figure that will obtain through step 3 by device for dotting gets on drawing board, completes the picture of beating to original image.
Characteristics of the present invention also are,
The concrete grammar of step 1 is, at first original image carried out to the gray processing processing, obtains gray level image; Again gray level image is carried out to the filtering processing with the final value wave filter; Finally filtered image is carried out to the histogram equalization processing, completed the pre-service of original image.
The concrete grammar of step 2 is to calculate the gradient map through the pretreated image of step 1; The distance function image of compute gradient figure again; Then calculate external constraint and the internal constraint of distance function image, obtain the constraints graph picture; Again to constraint Image Reconstruction gradient map; Finally, by watershed algorithm, the gradient map after reconstruct is cut apart, obtained black white binarization figure, the profile completed pretreated image extracts.
In step 3, the concrete grammar of compression of images is,
3.1) length and the wide size of establishing the binary image obtained through step 2 be respectively m and n, long and wide size compression factor is respectively m1 and n1, p is the length of side that will play the drawing board of picture, according to m1=[m/ (p/2)]+1 and n1=[n/ (p/2)]+1, calculate long and wide size compression factor;
3.2) establish the compression minor matrix size be z * z, if m1 > n1, z is m1; If m1<n1, z is n1; By the calculating of m/z and n/z, obtain respectively remainder e and f, this binary image is dismissed respectively to the capable and f of e row, obtain image after cutting;
3.3) calculate respectively s and t by s=(m-e)/z and t=(n-f)/z, by step 3.2) after the cutting that obtains image to be divided into wide be s, length is the matrix of t, this entry of a matrix element is divided into the minor matrix of z * z again;
3.4) if the sum of all pixels that in minor matrix, pixel value is 0 is greater than the sum of all pixels that pixel value is 1, this minor matrix is made as to 0, if the sum of all pixels that in minor matrix, pixel value is 0 is less than the sum of all pixels that pixel value is 1, this minor matrix is made as to 1, the new matrix finally formed is compressed image.
The concrete grammar of playing picture in step 4 is, the compressed image after step 3 is processed is lined by line scan, if the pixel value of minor matrix is 1, this place, minor matrix position is not got ready; If the pixel value of minor matrix is 0,, at place, this minor matrix position, by device for dotting, on drawing board, get ready, until all minor matrixs scanning and get ready completely complete the picture of beating of original image.
The invention has the beneficial effects as follows, integrate multiple image processing techniques, by the collection to picture, processing and analysis, the image after processing is up on drawing board by device for dotting; The method can be extracted the profile of image effectively, and portrays than manpower, has greatly shortened the time, has improved efficiency, has liberated manpower, realizes the collection to image information, processes and analyzes, and has solved the existing inefficient problem of drawing method of manually beating.
Embodiment
Below in conjunction with embodiment, the present invention is described in detail.
The invention provides a kind of drawing method of beating based on image processing techniques, specifically implement according to following steps,
Step 1, carry out pre-service to original image
At first original image is carried out to the gray processing processing and obtain gray level image, original image comprises colour picture and string diagram, and the image after gray processing contains a large amount of salt-pepper noises usually, and noise is less; So again gray level image is carried out to the filtering processing with the final value wave filter of 3 * 3 templates; In order to strengthen the feature of destination object, finally filtered image is carried out to the histogram equalization processing, completed the pre-service of original image.
To the original image pre-service, because image can be subject to unavoidably destruction and various noise pollution to a certain degree in transmission and storing process, cause picture to lose essence or departed from people's demand, thereby the impact that just needs a series of pretreatment operation to come removal of images to be subject to.
From experiment, the brightness value between [0.2,0.8] in image is mapped between [0,1], the image after histogram equalization can obtain effect preferably; Difference due to intensity of illumination, cause the feature of picture internal object object not obvious, be unfavorable for image is carried out to the profile extraction, in order to extract more like clockwork the profile of destination object, therefore need to carry out the normalization processing to picture, improve the feature caused due to reasons such as illumination not obvious.
Step 2, to carrying out the profile extraction through the pretreated image of step 1
Calculating is through the gradient map of the pretreated image of step 1; The distance function image of compute gradient figure again; Then calculate external constraint and the internal constraint of distance function image, obtain the constraints graph picture; Again to constraint Image Reconstruction gradient map; Finally, by watershed algorithm, the gradient map after reconstruct is cut apart, obtained black white binarization figure, the profile completed pretreated image extracts.
The purpose of carrying out the profile extraction is exactly with minimum pixel description object, therefore image is carried out to the profile extraction just seems extremely important, image outline extracts its essence and exactly image is carried out to rim detection, edge detection operator commonly used comprises the Roberts operator, Sobel operator, Prewitt operator, Canny operator etc., usually very responsive to noise while utilizing these operators to calculate, and easily lose marginal information, so the present invention's selection is watershed algorithm.
Step 3, compressed the image after step 2 profile extracts
3.1) length and the wide size of establishing the binary image obtained through step 2 be respectively m pixel and n pixel, long and wide size compression factor is respectively m1 and n1, the length of side that p is the drawing board that will play picture, and the unit of p is millimeter; According to m1=[m/ (p/2)]+1 and n1=[n/ (p/2)]+1, calculate long and wide size compression factor;
3.2) establish the compression minor matrix size be z * z, if m1 > n1, z is m1; If m1<n1, z is n1; By the calculating of m/z and n/z, obtain respectively remainder e and f, this binary image is dismissed respectively to the capable pixel of e and f row pixel, obtain image after cutting;
In order to make after compression of images the size that does not produce distortion and compressed images be no more than the relative size of playing picture machine drawing board, so the size of subdivision matrix is chosen the length and width of number larger in m1 and n1 as subdivision matrix,
3.3) calculate respectively s and t by s=(m-e)/z and t=(n-f)/z, by step 3.2) after the cutting that obtains image to be divided into wide be s pixel, length is the matrix of t pixel, this entry of a matrix element is divided into the minor matrix of z * z again;
In order to be divided into the image that will print the matrix of integral multiple, therefore need to be to length and wide adjustment of print image, calculate remainder e and f by m/z and n/z, e and f are respectively number of lines of pixels and the pixel columns that will dismiss the print image matrix, because e and f are less than z, therefore can not affect the whole content of image.
3.4) if the sum of all pixels that in minor matrix, pixel value is 0 is greater than the sum of all pixels that pixel value is 1, this minor matrix is made as to 0, if the sum of all pixels that in minor matrix, pixel value is 0 is less than the sum of all pixels that pixel value is 1, this minor matrix is made as to 1, the new matrix finally formed is compressed image.
Step 4, by device for dotting, the compression figure that will obtain through step 3 gets on drawing board, completes the picture of beating to original image.
The concrete grammar of playing picture is,
Compressed image after step 3 is processed is lined by line scan, if the pixel value of minor matrix is 1, this place, minor matrix position is not got ready; If the pixel value of minor matrix is 0,, at place, this minor matrix position, by device for dotting, on drawing board, get ready, until all minor matrixs scanning and get ready completely complete the picture of beating of original image.
Embodiment
Step 1, at first carry out gray processing to a colour picture that is of a size of 420 pixels * 406 pixels and process and obtain its gray level image; Again gray level image is carried out to the filtering processing with the final value wave filter of 3 * 3 templates; Finally filtered image is carried out to the histogram equalization processing, completed the pre-service of original image.
Step 2, calculate the gradient map through the pretreated image of step 1; The distance function image of compute gradient figure again; Then calculate external constraint and the internal constraint of distance function image, obtain the constraints graph picture; Again to constraint Image Reconstruction gradient map; Finally, by watershed algorithm, the gradient map after reconstruct is cut apart, obtained black white binarization figure, the profile completed pretreated image extracts.
Step 3, compressed the image after step 2 profile extracts
3.1) length and the wide size of the binary image that obtains through step 2 be respectively 420 pixels and 406 pixels, the length of side of drawing board is 350mm, long compression factor for and wide size compression factor be 3;
3.2) size of establishing the compression minor matrix is z * z, z=3, e=0, f=1, dismiss 1 row by this binary image, obtains image after cutting;
3.3) after cutting image to be divided into wide be 140 pixels, the matrix that length is 135 pixels, this entry of a matrix element is divided into the minor matrix of 3*3 again;
3.4) if the sum of all pixels that in minor matrix, pixel value is 0 is greater than the sum of all pixels that pixel value is 1, this minor matrix is made as to 0, if the sum of all pixels that in minor matrix, pixel value is 0 is less than the sum of all pixels that pixel value is 1, this minor matrix is made as to 1, the new matrix finally formed is compressed image.
Step 4, lined by line scan to the compressed image after step 3 is processed, if the pixel value of minor matrix is 1, this place, minor matrix position is not got ready; If the pixel value of minor matrix is 0,, at place, this minor matrix position, by device for dotting, on drawing board, get ready, until all minor matrixs scanning and get ready completely complete the picture of beating of original image.
The drawing method of beating based on image processing techniques, integrate multiple image processing techniques, by the collection to picture, processing and analysis, the image after processing printed on drawing board by device for dotting; The method can be extracted the profile of image effectively, and portrays than manpower, has greatly shortened the time, has improved efficiency, has liberated manpower, realizes the collection to image information, processes and analyzes, and has solved the existing inefficient problem of drawing method of manually beating.

Claims (5)

1. the drawing method of beating based on image processing techniques, is characterized in that, specifically according to following steps, implement,
Step 1, carry out pre-service to original image;
Step 2, to carrying out the profile extraction through the pretreated image of step 1;
Step 3, compressed the image after step 2 profile extracts;
Step 4, the compression figure that will obtain through step 3 by device for dotting gets on drawing board, completes the picture of beating to original image.
2. the drawing method of beating based on image processing techniques as claimed in claim 1, is characterized in that, the concrete grammar of described step 1 is,
At first original image is carried out to the gray processing processing, obtain gray level image; Again gray level image is carried out to the filtering processing with the final value wave filter; Finally filtered image is carried out to the histogram equalization processing, completed the pre-service of original image.
3. the drawing method of beating based on image processing techniques as claimed in claim 1 or 2, is characterized in that, the concrete grammar of described step 2 is,
Calculating is through the gradient map of the pretreated image of step 1; The distance function image of compute gradient figure again; Then calculate external constraint and the internal constraint of distance function image, obtain the constraints graph picture; Again to constraint Image Reconstruction gradient map; Finally, by watershed algorithm, the gradient map after reconstruct is cut apart, obtained black white binarization figure, the profile completed pretreated image extracts.
4. the drawing method of beating based on image processing techniques as claimed in claim 3, is characterized in that, in described step 3, the concrete grammar of compression of images is,
3.1) length and the wide size of establishing the binary image obtained through step 2 be respectively m pixel and n pixel, long and wide size compression factor is respectively m1 and n1, p is the length of side that will play the drawing board of picture, according to m1=[m/ (p/2)]+1 and n1=[n/ (p/2)]+1, calculate long and wide size compression factor;
3.2) establish the compression minor matrix size be z * z, if m1 > n1, z is m1; If m1<n1, z is n1; By the calculating of m/z and n/z, obtain respectively remainder e and f, this binary image is dismissed respectively to the capable pixel of e and f row pixel, obtain image after cutting;
3.3) calculate respectively s and t by s=(m-e)/z and t=(n-f)/z, by step 3.2) after the cutting that obtains image to be divided into wide be s pixel, length is the matrix of t pixel, this entry of a matrix element is divided into the minor matrix of z * z again;
3.4) if the sum of all pixels that in minor matrix, pixel value is 0 is greater than the sum of all pixels that pixel value is 1, this minor matrix is made as to 0, if the sum of all pixels that in minor matrix, pixel value is 0 is less than the sum of all pixels that pixel value is 1, this minor matrix is made as to 1, the new matrix finally formed is compressed image.
5. the drawing method of beating based on image processing techniques as claimed in claim 4, is characterized in that, the concrete grammar of playing picture in described step 4 is,
Compressed image after step 3 is processed is lined by line scan, if the pixel value of minor matrix is 1, this place, minor matrix position is not got ready; If the pixel value of minor matrix is 0,, at place, this minor matrix position, by device for dotting, on drawing board, get ready, until all minor matrixs scanning and get ready completely complete the picture of beating of original image.
CN201310395645.5A 2013-09-03 2013-09-03 Drawing method is beaten based on image processing techniques Expired - Fee Related CN103500439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310395645.5A CN103500439B (en) 2013-09-03 2013-09-03 Drawing method is beaten based on image processing techniques

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310395645.5A CN103500439B (en) 2013-09-03 2013-09-03 Drawing method is beaten based on image processing techniques

Publications (2)

Publication Number Publication Date
CN103500439A true CN103500439A (en) 2014-01-08
CN103500439B CN103500439B (en) 2016-04-20

Family

ID=49865642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310395645.5A Expired - Fee Related CN103500439B (en) 2013-09-03 2013-09-03 Drawing method is beaten based on image processing techniques

Country Status (1)

Country Link
CN (1) CN103500439B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491120A (en) * 2015-12-01 2016-04-13 小米科技有限责任公司 Method and device for picture transfer
CN105718945A (en) * 2016-01-20 2016-06-29 江苏大学 Apple picking robot night image identification method based on watershed and nerve network
CN109175718A (en) * 2018-11-01 2019-01-11 重庆大学产业技术研究院 A kind of picture laser carving method based on halftone technique
CN112634309A (en) * 2020-11-30 2021-04-09 上海联影医疗科技股份有限公司 Image processing method, image processing device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1707502A (en) * 2004-06-10 2005-12-14 佳能株式会社 Image processing apparatus and control method therefor,
CN101600039A (en) * 2008-06-05 2009-12-09 佳世达科技股份有限公司 The method of half tone image conversion method, Method of printing and generation halftone shield
CN102332162A (en) * 2011-09-19 2012-01-25 西安百利信息科技有限公司 Method for automatic recognition and stage compression of medical image regions of interest based on artificial neural network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1707502A (en) * 2004-06-10 2005-12-14 佳能株式会社 Image processing apparatus and control method therefor,
CN101600039A (en) * 2008-06-05 2009-12-09 佳世达科技股份有限公司 The method of half tone image conversion method, Method of printing and generation halftone shield
CN102332162A (en) * 2011-09-19 2012-01-25 西安百利信息科技有限公司 Method for automatic recognition and stage compression of medical image regions of interest based on artificial neural network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈林林 等: "基于形态学梯度重建的分水岭算法改进研究", 《中国印刷与包装研究》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491120A (en) * 2015-12-01 2016-04-13 小米科技有限责任公司 Method and device for picture transfer
CN105718945A (en) * 2016-01-20 2016-06-29 江苏大学 Apple picking robot night image identification method based on watershed and nerve network
CN105718945B (en) * 2016-01-20 2020-07-31 江苏大学 Apple picking robot night image recognition method based on watershed and neural network
CN109175718A (en) * 2018-11-01 2019-01-11 重庆大学产业技术研究院 A kind of picture laser carving method based on halftone technique
CN112634309A (en) * 2020-11-30 2021-04-09 上海联影医疗科技股份有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN112634309B (en) * 2020-11-30 2023-08-15 上海联影医疗科技股份有限公司 Image processing method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN103500439B (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN102163284B (en) Chinese environment-oriented complex scene text positioning method
CN102158653B (en) Device and method for acquiring digital image with high dynamic range in real time
CN103310218B (en) A kind of overlap blocks fruit precise recognition method
CN102214355B (en) Cutout method of clothing display material
CN106651872A (en) Prewitt operator-based pavement crack recognition method and system
CN105424709A (en) Fruit surface defect detection method based on image marking
CN106157303A (en) A kind of method based on machine vision to Surface testing
CN103500439A (en) Image printing method based on image processing technology
CN108830877A (en) The stereoscopic micro-image quantitative description of rock core
CN103258201A (en) Form line extraction method integrating global information and local information
CN103530853A (en) Infrared intensity image and infrared polarization image enhancement and fusion method
CN108830857A (en) A kind of adaptive Chinese character rubbings image binaryzation partitioning algorithm
CN105632015A (en) Bank bill fingerprint feature anti-counterfeiting identification method based on cloud platform
CN103226829A (en) Image edge detection method based on edge enhancement operator
CN106815583A (en) A kind of vehicle at night license plate locating method being combined based on MSER and SWT
CN104156733A (en) Foundation cloud form identification method based on multiscale structure characteristics
CN105719275A (en) Parallel combination image defect segmentation method
CN104036530B (en) A kind of processing method and processing device of diameter radar image
CN109766892A (en) A kind of ray detection image tagged information character dividing method based on edge detection
CN102999890A (en) Method for dynamically calibrating image light intensity on basis of environmental factors
CN110176020A (en) A kind of bird&#39;s nest impurity method for sorting merging 2D and 3D rendering
CN109034007A (en) A kind of vegetation extraction optimization method of the remote sensing image based on convolutional neural networks
CN103324931A (en) Method and device for image color binarization
CN107239761A (en) Fruit tree branch pulling effect evaluation method based on skeleton Corner Detection
CN102750680A (en) Tea image enhancement method based on empirical mode decomposition and color space

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Lao Yandong

Inventor before: Xu Hongwei

Inventor before: Chen Linlin

Inventor before: Bai Xuejuan

CB03 Change of inventor or designer information
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171009

Address after: 311200 11 households of 46 families in Zhangshu village, Mount Huangshan village, Xiaoshan District, Hangzhou, Zhejiang

Patentee after: Lao Yandong

Address before: 710048 Shaanxi city of Xi'an Province Jinhua Road No. 5

Patentee before: Xi'an University of Technology

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171013

Address after: 310051 Building 1, building 599, 7 Waterfront Road, Changhe Road, Changhe street, Hangzhou, Zhejiang, Binjiang District

Patentee after: Hangzhou enjoy Tour Technology Co., Ltd.

Address before: 311200 11 households of 46 families in Zhangshu village, Mount Huangshan village, Xiaoshan District, Hangzhou, Zhejiang

Patentee before: Lao Yandong

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160420

Termination date: 20190903