CN112529990A - Method for splicing and drawing color chips - Google Patents

Method for splicing and drawing color chips Download PDF

Info

Publication number
CN112529990A
CN112529990A CN202110079588.4A CN202110079588A CN112529990A CN 112529990 A CN112529990 A CN 112529990A CN 202110079588 A CN202110079588 A CN 202110079588A CN 112529990 A CN112529990 A CN 112529990A
Authority
CN
China
Prior art keywords
dice
picture
pictures
value
points
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
CN202110079588.4A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202110079588.4A priority Critical patent/CN112529990A/en
Publication of CN112529990A publication Critical patent/CN112529990A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Abstract

The invention discloses a color sub-picture splicing method, which comprises the following steps of obtaining a picture; step two, calculating pixel points; step three, placing dices; step four, manufacturing two pictures; step five, subsequent treatment; in the first step, the pixel value of each point of the picture is obtained, and a P value is calculated through a gray formula; replacing the pixel value of the point with the P value to generate and obtain a gray picture; the method for splicing the color sub-pictures is convenient to operate, the pictures are converted into grey-scale pictures through an algorithm, the number of dice points corresponding to each pixel point is calculated, and the dice are placed to make the original pictures; the algorithm calculates the number of points of the two pictures, and then calculates the number of points of the pictures by the similar method, so as to conveniently realize the arrangement of dices to restore the two pictures, thereby enabling the two pictures to be more artistic and being beneficial to the enjoyment of users; the depth of the pixel is converted into the corresponding dice point number, and the similar point number is calculated according to the algorithm, so that the multi-face drawing is achieved.

Description

Method for splicing and drawing color chips
Technical Field
The invention relates to the technical field of color matching picture processing, in particular to a color matching picture processing method.
Background
The color piece picture splicing is performed by calculating dice and putting through calculation data, so that the picture can be spliced; the traditional method for splicing the color son into a picture has the difference between the numerical value and the original data, the spliced picture has a great difference, and the pictures of one piece of work seen from two different angles are different; the more the two sides of the picture are connected and the color values are approximate, the more incomplete one side of the picture is displayed; the scheme of splicing without connection can result in larger work size; aiming at the defects, a color sub-picture splicing method is necessary.
Disclosure of Invention
The invention aims to provide a color sub-mosaic method to solve the problems in the background technology.
In order to solve the technical problems, the invention provides the following technical scheme: a color sub-picture splicing method comprises the steps of obtaining a picture; step two, calculating pixel points; step three, placing dices; step four, manufacturing two pictures; step five, subsequent treatment;
wherein in the first step, obtaining the picture comprises the following steps:
1) acquiring a pixel value of each point of the picture, and calculating to obtain a P value through a gray formula;
2) replacing the pixel value of the point with the P value to generate and obtain a gray picture;
in the second step, the pixel point calculation includes the following steps:
1) converting the gray picture obtained in the step one 2) into a P value of each pixel point into a dice point number, wherein the larger the P value is, the more the P value is, the larger the P value is, the less the P value is, the dice point number is converted into a corresponding dice point number, and then, putting the dice to piece up the dice drawing works of the original picture;
2) the dice has six faces, the color interval is divided into 6 sections by manpower for 1,2, 3,4,5 and 6 points respectively, then the color value is divided according to 6 intervals, the simplified formula K = P/(255/5) +1, and the point number K is calculated;
in the third step, the dice placing method comprises the following steps:
1) the dice of two pictures are calculated by placing dice in a 45-degree three-dimensional mode, then two data are combined, according to a specific corresponding relation, the first face is displayed as far as possible according to original data, and the number of points which can be displayed on the other face is only 4, namely 1- [2,3,4,5], 2- [1,3,4,6], 3- [1,2,5,6], 4- [1,2,5,6], 5- [1,3,4,6], 6- [2,3,4,5 ];
2) the first surface is 1, the second surface is any number of [2-5], and the first surface and the second surface are directly placed;
3) the second surface is 1, and the number 2 close to 1 is found from the interval of [2-5] for placing;
4) the second surface is 6, and then 5 is found for placing, similarly, [2-6] can also find out similar numerical values according to the algorithm, and a picture can be spliced, so that the picture viewed from two different angles of a work is different;
in the fourth step, the two pictures are made by the following steps:
1) calculating the data of the two images by the method of the second step and the method of the third step;
2) through the processing of similar values, original data is changed to adapt to the corresponding relation of the number of the dice, two pictures are directly spliced and placed without being connected, one picture is displayed on the left side, and the other picture is displayed on the right side;
and in the fifth step, a base is manufactured, the dice generated in the previous step are placed on the base, and finally the dice are fixed by pouring AB glue, so that the dice are not easy to fall off and can be molded.
According to the technical scheme, the gray formula in the step one 1) is P =0.299 red +0.587 green +0.114 blue; wherein red represents the red value of the original image, green represents the green value of the original image, and blue represents the blue value of the original image.
According to the technical scheme, the K range in the step two 2) is [1-6 ].
According to the technical scheme, the number of the placed dice is manually recorded in the step three 4).
According to the technical scheme, the dice are placed according to the matched dice points in the step four 2).
According to the technical scheme, the number of dice can be customized in the fifth step, namely the number of dice does not have the traditional number [1-6] but can be 6 adjacently, and 4 faces can be pieced out to form the picture.
Compared with the prior art, the invention has the following beneficial effects: the method for splicing the color sub-pictures is convenient to operate, the pictures are converted into grey-scale pictures through an algorithm, the number of dice points corresponding to each pixel point is calculated, and the dice are placed to make the original pictures; the algorithm calculates the number of points of the two pictures, and then calculates the number of points of the pictures by the similar method, so as to conveniently realize the arrangement of dices to restore the two pictures, thereby enabling the two pictures to be more artistic and being beneficial to the enjoyment of users; the depth of the pixel is converted into the corresponding dice point number, and the similar point number is calculated according to the algorithm, so that the multi-face drawing is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a method of making a picture according to the present invention;
FIG. 2 is a flow chart of the present invention for making two pictures;
fig. 3 is an overall method flow diagram of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1-3, the present invention provides a technical solution: a color sub-picture splicing method comprises the steps of obtaining a picture; step two, calculating pixel points; step three, placing dices; step four, manufacturing two pictures; step five, subsequent treatment;
wherein in the first step, obtaining the picture comprises the following steps:
1) acquiring a pixel value of each point of the picture, and calculating a P value through a gray formula, wherein the gray formula is P =0.299 red +0.587 green +0.114 blue; wherein red represents an original image red value, green represents an original image green value, and blue represents an original image blue value;
2) replacing the pixel value of the point with the P value to generate and obtain a gray picture;
in the second step, the pixel point calculation includes the following steps:
1) converting the gray picture obtained in the step one 2) into a P value of each pixel point into a dice point number, wherein the larger the P value is, the more the P value is, the larger the P value is, the less the P value is, the dice point number is converted into a corresponding dice point number, and then, putting the dice to piece up the dice drawing works of the original picture;
2) the dice has six faces, the color interval is divided into 6 sections by manpower for 1,2, 3,4,5 and 6 points respectively, then the color value is divided according to 6 intervals, a simplified formula K = P/(255/5) +1, the point number K is calculated, and the K range is [1-6 ];
in the third step, the dice placing method comprises the following steps:
1) the dice of two pictures are calculated by placing dice in a 45-degree three-dimensional mode, then two data are combined, according to a specific corresponding relation, the first face is displayed as far as possible according to original data, and the number of points which can be displayed on the other face is only 4, namely 1- [2,3,4,5], 2- [1,3,4,6], 3- [1,2,5,6], 4- [1,2,5,6], 5- [1,3,4,6], 6- [2,3,4,5 ];
2) the first surface is 1, the second surface is any number of [2-5], and the first surface and the second surface are directly placed;
3) the second surface is 1, and the number 2 close to 1 is found from the interval of [2-5] for placing;
4) the second side is 6, then find 5 to put, similarly, [2-6] can find out the similar numerical value according to this algorithm too, can piece up a picture, so can get a work and see the picture from two different angles and make different, the dice point number put of manual record;
in the fourth step, the two pictures are made by the following steps:
1) calculating the data of the two images by the method of the second step and the method of the third step;
2) through the processing of similar values, original data is changed, so that the corresponding relation of the matched dice points is adapted, two pictures are directly spliced and placed without being connected, one picture is displayed on the left side, the other picture is displayed on the right side, and the pictures are placed according to the matched dice points;
in the fifth step, the dice generated in the above step are placed on the base, and finally the dice are fixed by pouring AB glue, so that the dice are not easy to fall off and can be formed, the number of the dice can be customized, namely the number of the dice does not have the traditional number of (1-6) and can be 6 adjacently, and 4 faces can be pieced together to form the picture.
Based on the above, the invention has the advantages that the method for splicing the color sub-pictures is convenient to operate, the pictures are converted into the gray-scale pictures through the algorithm, the number of the dice points corresponding to each pixel point is calculated, and the original pictures are restored by placing the dice; the algorithm calculates the number of points of the two pictures, and then calculates the number of points of the pictures by the similar method, so as to conveniently realize the arrangement of dices to restore the two pictures, thereby enabling the two pictures to be more artistic and being beneficial to the enjoyment of users; the depth of the pixel is converted into the corresponding dice point number, and the similar point number is calculated according to the algorithm, so that the multi-face drawing is achieved.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. A color sub-picture splicing method comprises the steps of obtaining a picture; step two, calculating pixel points; step three, placing dices; step four, manufacturing two pictures; step five, subsequent treatment; the method is characterized in that:
wherein in the first step, obtaining the picture comprises the following steps:
1) acquiring a pixel value of each point of the picture, and calculating to obtain a P value through a gray formula;
2) replacing the pixel value of the point with the P value to generate and obtain a gray picture;
in the second step, the pixel point calculation includes the following steps:
1) converting the gray picture obtained in the step one 2) into a P value of each pixel point into a dice point number, wherein the larger the P value is, the more the P value is, the larger the P value is, the less the P value is, the dice point number is converted into a corresponding dice point number, and then, putting the dice to piece up the dice drawing works of the original picture;
2) the dice has six faces, the color interval is divided into 6 sections by manpower for 1,2, 3,4,5 and 6 points respectively, then the color value is divided according to 6 intervals, the simplified formula K = P/(255/5) +1, and the point number K is calculated;
in the third step, the dice placing method comprises the following steps:
1) the dice of two pictures are calculated by placing dice in a 45-degree three-dimensional mode, then two data are combined, according to a specific corresponding relation, the first face is displayed as far as possible according to original data, and the number of points which can be displayed on the other face is only 4, namely 1- [2,3,4,5], 2- [1,3,4,6], 3- [1,2,5,6], 4- [1,2,5,6], 5- [1,3,4,6], 6- [2,3,4,5 ];
2) the first surface is 1, the second surface is any number of [2-5], and the first surface and the second surface are directly placed;
3) the second surface is 1, and the number 2 close to 1 is found from the interval of [2-5] for placing;
4) the second surface is 6, and then 5 is found for placing, similarly, [2-6] can also find out similar numerical values according to the algorithm, and a picture can be spliced, so that the picture viewed from two different angles of a work is different;
in the fourth step, the two pictures are made by the following steps:
1) calculating the data of the two images by the method of the second step and the method of the third step;
2) through the processing of similar values, original data is changed to adapt to the corresponding relation of the number of the dice, two pictures are directly spliced and placed without being connected, one picture is displayed on the left side, and the other picture is displayed on the right side;
and in the fifth step, a base is manufactured, the dice generated in the previous step are placed on the base, and finally the dice are fixed by pouring AB glue, so that the dice are not easy to fall off and can be molded.
2. The method for splicing color sub-pictures according to claim 1, wherein: the formula of the gray scale in the step one 1) is P =0.299 red +0.587 green +0.114 blue; wherein red represents the red value of the original image, green represents the green value of the original image, and blue represents the blue value of the original image.
3. The method for splicing color sub-pictures according to claim 1, wherein: the K range in the step two 2) is [1-6 ].
4. The method for splicing color sub-pictures according to claim 1, wherein: and in the third step 4), manually recording the number of the placed dice.
5. The method for splicing color sub-pictures according to claim 1, wherein: and placing according to the matched dice points in the step four 2).
6. The method for splicing color sub-pictures according to claim 1, wherein: in the fifth step, the number of dice points can be customized, namely the number of dice points is 6 instead of the traditional number [1-6], and 4 faces can be pieced together to form the picture.
CN202110079588.4A 2021-01-21 2021-01-21 Method for splicing and drawing color chips Pending CN112529990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110079588.4A CN112529990A (en) 2021-01-21 2021-01-21 Method for splicing and drawing color chips

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110079588.4A CN112529990A (en) 2021-01-21 2021-01-21 Method for splicing and drawing color chips

Publications (1)

Publication Number Publication Date
CN112529990A true CN112529990A (en) 2021-03-19

Family

ID=74975413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110079588.4A Pending CN112529990A (en) 2021-01-21 2021-01-21 Method for splicing and drawing color chips

Country Status (1)

Country Link
CN (1) CN112529990A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5572235A (en) * 1992-11-02 1996-11-05 The 3Do Company Method and apparatus for processing image data
US20080144107A1 (en) * 2006-12-18 2008-06-19 Innovive Technologies Llc Method for arranging a collection of visual content
CN108230415A (en) * 2016-12-12 2018-06-29 天津职业技术师范大学 Dice draws printing instrument

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5572235A (en) * 1992-11-02 1996-11-05 The 3Do Company Method and apparatus for processing image data
US20080144107A1 (en) * 2006-12-18 2008-06-19 Innovive Technologies Llc Method for arranging a collection of visual content
CN108230415A (en) * 2016-12-12 2018-06-29 天津职业技术师范大学 Dice draws printing instrument

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
冷俊敏等: "三维显示技术现状与发展", 《中国印刷与包装研究》 *
初识这世间万般留恋: "《使用骰子作画》", 《HTTPS://BLOG.CSDN.NET/A1044187112/ARTICLE/DETAILS》 *
北晚在线: "《真牛!1.6万个骰子拼出钟南山袁隆平画像,网友:没想到竟还是双面的》", 《HTTPS://BAIJIAHAO.BAIDU.COM/S?ID=1684489941106383292&WFR=SPIDER&FOR=PC》 *

Similar Documents

Publication Publication Date Title
CN1173296C (en) Improved image conversion and encoding techniques
CN108257139B (en) RGB-D three-dimensional object detection method based on deep learning
CN101322398B (en) Camera system and exposure adjusting method
CN100571335C (en) Image syncretizing effect real-time estimating method and device based on pixel space relativity
CN101166286A (en) Imaging pickup apparatus, image pickup method, image processing apparatus, image processing method, and image processing program
CN105049718A (en) Image processing method and terminal
MY138084A (en) Method for image texture describing
CN105701809B (en) A kind of method for correcting flat field based on line-scan digital camera scanning
CN110910390A (en) Panoramic three-dimensional color point cloud semantic segmentation method based on depth distortion convolution
CN107958481A (en) A kind of three-dimensional rebuilding method and device
CN101771825B (en) Method and device for compensating chroma of images
Matysiak et al. High quality light field extraction and post-processing for raw plenoptic data
CN112529990A (en) Method for splicing and drawing color chips
CN105100773B (en) Three-dimensional video-frequency preparation method, three-dimensional view preparation method and manufacturing system
CN101841654A (en) Image processing apparatus and image processing method
CN110288531B (en) Method and tool for assisting operator in making standard identity card photo
TW201324374A (en) Image processing device and image processing method thereof
CN111435986B (en) Method for acquiring source image database, training device and electronic equipment
CN104954767B (en) A kind of information processing method and electronic equipment
CN112017169A (en) Processing method of mosaic picture
JP2005354130A (en) Image processing system, program, and storage medium
JP2951646B1 (en) Surface shape data creation system and recording medium
US7324704B2 (en) Method of repairing scratches in digital images
CN110505485A (en) Motion compensation process, device, computer equipment and storage medium
CN112348742B (en) Image nonlinear interpolation acquisition method and system based on deep learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210319

RJ01 Rejection of invention patent application after publication