CN111090968B - BMP image processing method, device and equipment based on PCB - Google Patents

BMP image processing method, device and equipment based on PCB Download PDF

Info

Publication number
CN111090968B
CN111090968B CN201911208807.3A CN201911208807A CN111090968B CN 111090968 B CN111090968 B CN 111090968B CN 201911208807 A CN201911208807 A CN 201911208807A CN 111090968 B CN111090968 B CN 111090968B
Authority
CN
China
Prior art keywords
pixel
target
bmp image
shape
size
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.)
Active
Application number
CN201911208807.3A
Other languages
Chinese (zh)
Other versions
CN111090968A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911208807.3A priority Critical patent/CN111090968B/en
Publication of CN111090968A publication Critical patent/CN111090968A/en
Application granted granted Critical
Publication of CN111090968B publication Critical patent/CN111090968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a BMP image processing method, a BMP image processing device, BMP image processing equipment and a computer readable storage medium based on a PCB, wherein the BMP image processing method comprises the following steps: reading data of the BMP image, converting the data into decimal numbers and storing the decimal numbers into a target list; acquiring the pixel size of the BMP image through the header information, and determining the number of row pixel points, the total row number and the offset of the BMP image; deleting the header information according to the offset size; determining the size of a pixel in a target shape according to the predefined shape size, the number of row pixel points and the total row number; traversing each line of pixels of the BMP image, and drawing a line for a pixel point with a pixel value of 0 in each line of pixels according to the size of one pixel in the target shape; and converting all line segments in the BMP image into shape, and then combining to obtain the target shape. The method, the device, the equipment and the computer storage medium provided by the invention can directly convert the image into the shape in software.

Description

BMP image processing method, device and equipment based on PCB
Technical Field
The invention relates to the field of PCD manufacture design, in particular to a BMP image processing method, a BMP image processing device, BMP image processing equipment and a computer readable storage medium based on a PCB.
Background
In the process of designing the PCB, pictures are sometimes required to be converted into shape, and the existing method is created by AutoCAD or library-building engineers and then called in a part mode.
The layout engineer cannot directly create in software, so that the efficiency of converting pictures into shape is low, and the phenomenon that the created shape cannot meet the actual requirement exists.
From the above, it can be seen that how to convert an image into a shape without using AutoCAD is a problem to be solved at present.
Disclosure of Invention
The invention aims to provide a BMP image processing method, a BMP image processing device, BMP image processing equipment and a computer-readable storage medium based on a PCB, and aims to solve the problem that a layout engineer cannot directly convert an image into a shape in software in the prior art.
In order to solve the above technical problem, the present invention provides a BMP image processing method based on a PCB, comprising: reading image data of a BMP image to be converted, converting the image data into decimal numbers, and storing the decimal numbers in a target list; the image data comprises header information of the BMP image and pixel values of all pixel points; acquiring the pixel size of the BMP image through the header information, and determining the number of row pixel points, the total row number and the offset of the BMP image according to the pixel size; deleting the head information in the target list according to the offset, and rearranging the pixel values of all the pixel points in the target list; determining the size of a pixel in a target shape obtained after BMP image conversion according to the size of a predefined PCB shape, the number of the pixel points in the row and the total row number; traversing each line of pixels of the BMP image, and drawing a target pixel point with a pixel value of 0 in each line of pixels according to the size of one pixel in the target shape so as to convert the target pixel point into a line segment; and after all the line segments in the BMP image are converted into shape, merging all the shape to obtain the target shape.
Preferably, determining the size of one pixel in the target shape obtained by converting the BMP image according to the predefined size of the PCB shape, the number of the row pixel points, and the total row number includes:
when the length of the predefined PCB shape is Amil and the height is Bmil, the length of one pixel in the target shape obtained after BMP image conversion is A/biWidth, and the height is B/biHeight;
wherein biWidth is the total number of the line pixels, and biHeight is the total line number.
Preferably, traversing each line of pixels of the BMP image, and drawing a line on a target pixel point with a pixel value of 0 in each line of pixels according to the size of one pixel in the target shape so as to convert the target pixel point into a line segment includes:
traversing each row of pixels of the BMP image, and searching target pixel points with pixel values of 0 in each row of pixels;
and determining a starting point and an end point of the target pixel point according to the size of one pixel in the target shape, and drawing a line on the target pixel point according to the starting point and the end point of the target pixel point so as to convert the target pixel point into a line segment.
Preferably, the determining a starting point and an ending point of the target pixel point according to the size of one pixel in the target shape, and drawing a line on the target pixel point according to the starting point and the ending point of the target pixel point so as to convert the target pixel point into a line segment includes:
Determining a starting point (x + width j, y + i height) and an end point (x + width (j +1), y + i height) of the target pixel point (i, j) according to the length width and the height of one pixel in the target shape; wherein i and j are the number of rows and the number of columns of the target pixel point in the BMP image respectively; (x, y) is the initial starting point of the PCB shape;
and drawing a line on the target pixel point to obtain a line segment according to the starting point and the end point of the target pixel point.
Preferably, the reading the image data of the BMP image to be converted, converting the image data into a decimal number, and storing the decimal number in the target list includes:
reading image data of a BMP image to be converted, and inputting the image data into a target list;
converting the image data in the target list from hexadecimal numbers into decimal numbers so as to represent the pixel values of all pixel points in the BMP image by numerical values between [0, 255 ]; the color of the pixel point with the pixel value of 0 is black, and the color of the pixel point with the pixel value of 255 is white.
The invention also provides a BMP image processing device based on PCB, comprising:
the reading module is used for reading the image data of the BMP image to be converted, converting the image data into decimal numbers and storing the decimal numbers into a target list; the image data comprises header information of the BMP image and pixel values of all pixel points;
The acquisition module is used for acquiring the pixel size of the BMP image through the header information and determining the row pixel point number, the total row number and the offset size of the BMP image according to the pixel size;
a deleting module, configured to delete the header information in the target list according to the offset size, and rearrange pixel values of each pixel point in the target list;
the determining module is used for determining the size of one pixel in the target shape obtained after BMP image conversion according to the size of the predefined PCB shape, the number of the row pixel points and the total row number;
the traversal module is used for traversing each line of pixels of the BMP image, and drawing a line on a target pixel point with a pixel value of 0 in each line of pixels according to the size of one pixel in the target shape so as to convert the target pixel point into a line segment;
and the conversion module is used for converting all the line segments in the BMP image into shape and then combining all the shape to obtain the target shape.
Preferably, the determining module comprises:
a pixel size calculating unit, configured to determine that, when the length of the predefined PCB shape is Amil and the height is Bmil, the length of one pixel in the target shape obtained after BMP image conversion is a width ═ a/biWidth, and the height is B/biHeight;
Wherein biWidth is the total number of the line pixels, and biHeight is the total line number.
Preferably, the traversing module comprises:
the searching unit is used for traversing each row of pixels of the BMP image and searching target pixel points with pixel values of 0 in each row of pixels;
and the line drawing unit is used for determining the starting point and the end point of the target pixel point according to the size of one pixel in the target shape, and drawing the target pixel point according to the starting point and the end point of the target pixel point so as to convert the target pixel point into a line segment.
The invention also provides BMP image processing equipment based on the PCB, which comprises:
a memory for storing a computer program; and the processor is used for realizing the steps of the PCB-based BMP image processing method when executing the computer program.
The present invention also provides a computer readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-mentioned PCB-based BMP image processing method.
The BMP image processing method based on the PCB reads the image data of the BMP image to be converted, converts the image data into decimal numbers and stores the decimal numbers in the target list. And acquiring the pixel size of the BMP image according to the head information of the BMP image, and acquiring the total line pixel number, the total line number and the offset size of the BMP image according to the pixel size. And deleting the header information in the target list according to the offset, and rearranging the pixel values of all pixel points of the BMP image in the target list. And determining the size of one pixel in the target shape obtained after BMP image conversion according to the predefined size of the PCB shape, the total number of the pixels in the row and the total row number. Traversing each line of pixels of a BMP image, and drawing a line on a target pixel point with a pixel value of 0 in each line of pixels by combining the size of one pixel in the target shape so as to convert the target pixel point into a line segment. And after traversing of each row of pixels is completed, converting all line segments in the BMP image into shape, and then combining all shape to obtain the target shape. The method provided by the invention realizes the purpose of directly converting the BMP image into the shape in the software without being created by AutoCAD and other library-building engineers, improves the efficiency of creating the shape, and the shape directly created in the software is more suitable for practical application.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a PCB-based BMP image processing method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a decimal number target list storing BMP image data;
FIG. 3 is a schematic diagram of a target list after head portrait information is deleted;
FIG. 4 is a flowchart illustrating a PCB-based BMP image processing method according to a second embodiment of the present invention;
fig. 5 is a block diagram of a BMP image processing apparatus based on a PCB according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a BMP image processing method, a BMP image processing device, BMP image processing equipment and a computer-readable storage medium based on a PCB, and the BMP image can be directly converted into shape in software without being created by AutoCAD and other library-building engineers.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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, fig. 1 is a flowchart illustrating a PCB-based BMP image processing method according to a first embodiment of the present invention; the specific operation steps are as follows:
step S101: reading image data of a BMP image to be converted, converting the image data into decimal numbers, and storing the decimal numbers in a target list; the image data comprises header information of the BMP image and pixel values of all pixel points;
the image data of the BMP image is hexadecimal, after the image data is converted into decimal numbers, the pixel value of each pixel point is 255-0, and the corresponding pixel color is white-black. As shown in fig. 2, storing the decimal number corresponding to the image data into the target list listA, where the image data includes the header information of the BMP image and the data value of each pixel point, and a shaded area in the image is the header information.
Step S102: acquiring the pixel size of the BMP image through the header information, and determining the number of row pixel points, the total row number and the offset of the BMP image according to the pixel size;
the pixel size of the BMP image can be obtained through the head information of the BMP image, and the line pixel total number biWidth, the total line number biHeight, the image data size bisIZeImage and the offset size biOffSize of the BMP image are obtained through calculation according to the pixel size.
Step S103: deleting the head information in the target list according to the offset, and rearranging the pixel values of all the pixel points in the target list;
and deleting the pixels in the target list according to the offset size, rearranging, deleting the header information, and updating the target list as shown in fig. 3.
Step S104: determining the size of a pixel in a target shape obtained after BMP image conversion according to the size of a predefined PCB shape, the number of the row pixel points and the total row number;
step S105: traversing each line of pixels of the BMP image, and drawing a line on a target pixel point with a pixel value of 0 in each line of pixels according to the size of one pixel in the target shape so as to convert the target pixel point into a line segment;
Step S106: and after all the line segments in the BMP image are converted into shape, merging all the shape to obtain the target shape.
The method effectively solves the problem that the image can only be converted into the shape by the creation of the AutoCAD or the library building engineer in the prior art, and the method provided by the embodiment can directly convert the BMP image into the shape in software on the premise of not creating by the AutoCAD or the library building engineer, so that the creating efficiency of the shape is improved, and the shape of the created shape is more in line with the actual application requirement.
Based on the above embodiment, in this embodiment, the size of one pixel of the target shape obtained after the BMP image is converted is determined according to the length and height of the predefined PCB shape and the total number of line pixels and the total number of lines of the BMP image; and determining the starting point and the end point of a target pixel point with the pixel value of 0 according to the size of one pixel of the target shape, thereby realizing the line drawing operation of the target pixel point.
Referring to fig. 4, fig. 4 is a flowchart illustrating a PCB-based BMP image processing method according to a second embodiment of the present invention; the specific operation steps are as follows:
step S401: reading image data of a BMP image to be converted, inputting the image data into a target list, and converting the image data in the target list from a hexadecimal number into a decimal number;
Step S402: acquiring the pixel size of the BMP image through the header information of the BMP image, and determining the row pixel point number, the total row number and the offset size of the BMP image according to the pixel size;
step S403: deleting the head information in the target list according to the offset, and rearranging the pixel values of all the pixel points in the target list;
step S404: determining the size of a pixel in a target shape obtained after BMP image conversion according to the size of a predefined PCB shape, the number of the pixel points in the row and the total row number;
and when the length of the predefined PCB shape is Amil and the height is Bmil, the length of one pixel in the target shape obtained after BMP image conversion is A/biWidth, and the height is B/biHeight.
The length and height of the PCB shape may be defined according to practical application requirements, for example, the length of the PCB shape may be set to 1000 mils, the height may be set to 40mli, or other values.
Step S405: traversing each row of pixels of the BMP image, and searching target pixel points with pixel values of 0 in each row of pixels;
step S406: determining a starting point and an end point of the target pixel point according to the size of one pixel in the target shape, and drawing a line on the target pixel point according to the starting point and the end point of the target pixel point so as to convert the target pixel point into a line segment;
Determining a starting point (x + width j, y + i height) and an end point (x + width (j +1), y + i height) of the target pixel point (i, j) according to the length width and the height of one pixel in the target shape; drawing a line on the target pixel point to obtain a line segment according to the starting point and the end point of the target pixel point;
wherein i and j are respectively the number of rows and the number of columns of the target pixel point in the BMP image; (x, y) is the initial starting point of the PCB shape.
Step S407: and after all the line segments in the BMP image are converted into shape, merging all the shape to obtain the target shape.
The method provided by the embodiment of the invention can be compiled through Cadence software, and Cadence is used as the most widely applied software in the industry, so that the method not only has strong functions and a plurality of related software for support, but also provides an open secondary development interface and a more perfect development language library, and a user can carry out secondary development according to the self requirement. The sketch language is a high-level programming language which is built in Cadence software and is based on a C language and an LISP language, the Cadence provides rich interactive functions for the sketch language, and the work efficiency can be greatly improved by researching the sketch language and then writing tools. And loading a BMP image processing method written by using the skip language in a software command window, and automatically creating shape of the BMP image.
Referring to fig. 5, fig. 5 is a block diagram illustrating a PCB-based BMP image processing apparatus according to an embodiment of the present invention; the specific device may include:
the reading module 100 is configured to read image data of a BMP image to be converted, convert the image data into a decimal number, and store the decimal number in a target list; the image data comprises header information of the BMP image and pixel values of all pixel points;
an obtaining module 200, configured to obtain a pixel size of the BMP image through the header information, and determine a row pixel point number, a total row number, and an offset size of the BMP image according to the pixel size;
a deleting module 300, configured to delete the header information in the target list according to the offset size, and rearrange pixel values of each pixel point in the target list;
a determining module 400, configured to determine, according to a predefined size of the PCB shape, the number of the row pixel points, and the total row number, a size of a pixel in the target shape obtained after the BMP image is converted;
a traversal module 500, configured to traverse each line of pixels of the BMP image, and draw a line for a target pixel point with a pixel value of 0 in each line of pixels according to the size of one pixel in the target shape, so as to convert the target pixel point into a line segment;
And the converting module 600 is configured to convert all line segments in the BMP image into shape, and then merge all shape to obtain the target shape.
The PCB-based BMP image processing apparatus of this embodiment is configured to implement the foregoing PCB-based BMP image processing method, and therefore specific embodiments of the PCB-based BMP image processing apparatus can be found in the foregoing embodiments of the PCB-based BMP image processing method, for example, the reading module 100, the obtaining module 200, the deleting module 300, the determining module 400, the traversing module 500, and the converting module 600 are respectively configured to implement steps S101, S102, S103, S104, S105, and S106 in the foregoing PCB-based BMP image processing method, so that specific embodiments thereof may refer to descriptions of corresponding embodiments of each part, and are not described herein again.
An embodiment of the present invention further provides a BMP image processing apparatus based on a PCB, including: a memory for storing a computer program; and the processor is used for realizing the steps of the PCB-based BMP image processing method when executing the computer program.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the PCB-based BMP image processing method.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts between the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The PCB-based BMP image processing method, apparatus, device and computer-readable storage medium provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A BMP image processing method based on PCB is characterized in that the method comprises the following steps:
reading image data of a BMP image to be converted, converting the image data into decimal numbers, and storing the decimal numbers in a target list; the image data comprises header information of the BMP image and pixel values of all pixel points;
acquiring the pixel size of the BMP image through the header information, and determining the number of row pixel points, the total row number and the offset of the BMP image according to the pixel size;
deleting the head information in the target list according to the offset, and rearranging the pixel values of all the pixel points in the target list;
Determining the size of a pixel in a target shape obtained after BMP image conversion according to the size of a predefined PCB shape, the number of the pixel points in the row and the total row number;
traversing each line of pixels of the BMP image, and drawing a line on a target pixel point with a pixel value of 0 in each line of pixels according to the size of one pixel in the target shape so as to convert the target pixel point into a line segment;
and after all the line segments in the BMP image are converted into shape, merging all the shape to obtain the target shape.
2. The method of claim 1, wherein determining a size of a pixel in the target shape after transforming the BMP image according to a predefined size of the PCB shape, the number of the row pixel points, and the total number of rows comprises:
when the length of the predefined PCB shape is as
Figure DEST_PATH_IMAGE001
mil and height of
Figure 643260DEST_PATH_IMAGE002
In mil, the length of a pixel in the target shape obtained after BMP image conversion is equal to
Figure DEST_PATH_IMAGE003
Height of
Figure 213131DEST_PATH_IMAGE004
Wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE005
for the number of pixel points of the row,
Figure 77002DEST_PATH_IMAGE006
is the total number of rows.
3. The method of claim 2, wherein traversing each row of pixels of the BMP image, drawing a target pixel point having a pixel value of 0 in each row of pixels according to a size of one pixel in the target shape, so as to convert the target pixel point into a line segment comprises:
Traversing each line of pixels of the BMP image, and searching target pixel points with pixel values of 0 in each line of pixels;
and determining a starting point and an end point of the target pixel point according to the size of one pixel in the target shape, and drawing a line on the target pixel point according to the starting point and the end point of the target pixel point so as to convert the target pixel point into a line segment.
4. The method as claimed in claim 3, wherein said determining the start point and the end point of the target pixel according to the size of a pixel in the target shape, and wherein said drawing the target pixel according to the start point and the end point of the target pixel so as to convert the target pixel into the line segment comprises:
determining the target pixel point according to the length width and height of one pixel in the target shape
Figure DEST_PATH_IMAGE007
Starting point of (2)
Figure 257317DEST_PATH_IMAGE008
And an end point
Figure DEST_PATH_IMAGE009
(ii) a Wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE011
and
Figure 949329DEST_PATH_IMAGE012
respectively determining the number of rows and the number of columns of the target pixel points in the BMP image;
Figure DEST_PATH_IMAGE013
the initial starting point of the PCB shape is;
and drawing a line on the target pixel point to obtain a line segment according to the starting point and the end point of the target pixel point.
5. The method of claim 1, wherein reading the image data of the BMP image to be converted, converting the image data into decimal numbers, and storing the decimal numbers in the target list comprises:
Reading image data of a BMP image to be converted, and inputting the image data into a target list;
converting the image data in the target list from hexadecimal number to decimal number so as to use the pixel value of each pixel point in the BMP image
Figure 342133DEST_PATH_IMAGE014
The numerical value between; the color of the pixel point with the pixel value of 0 is black, and the color of the pixel point with the pixel value of 255 is white.
6. A BMP image processing apparatus based on a PCB, comprising:
the reading module is used for reading the image data of the BMP image to be converted, converting the image data into decimal numbers and storing the decimal numbers into a target list; the image data comprises header information of the BMP image and pixel values of all pixel points;
the acquisition module is used for acquiring the pixel size of the BMP image through the header information and determining the row pixel point number, the total row number and the offset size of the BMP image according to the pixel size;
a deleting module, configured to delete the header information in the target list according to the offset size, and rearrange pixel values of each pixel point in the target list;
the determining module is used for determining the size of one pixel in the target shape obtained after BMP image conversion according to the size of the predefined PCB shape, the number of the row pixel points and the total row number;
The traversal module is used for traversing each line of pixels of the BMP image, and drawing a line on a target pixel point with a pixel value of 0 in each line of pixels according to the size of one pixel in the target shape so as to convert the target pixel point into a line segment;
and the conversion module is used for converting all line segments in the BMP image into shape and then combining all shape to obtain the target shape.
7. The apparatus of claim 6, wherein the determining module comprises:
a pixel size calculation unit for calculating the length of the predefined PCB shape
Figure 131098DEST_PATH_IMAGE001
mil and height of
Figure 92101DEST_PATH_IMAGE002
In mil, the length of one pixel in the target shape obtained after BMP image conversionIn the range of
Figure 189851DEST_PATH_IMAGE003
Height of
Figure 58450DEST_PATH_IMAGE004
Wherein the content of the first and second substances,
Figure 639604DEST_PATH_IMAGE005
for the number of pixel points of the row,
Figure 771508DEST_PATH_IMAGE006
is the total number of rows.
8. The apparatus of claim 7, wherein the traversal module comprises:
the searching unit is used for traversing each row of pixels of the BMP image and searching target pixel points with pixel values of 0 in each row of pixels;
and the line drawing unit is used for determining the starting point and the end point of the target pixel point according to the size of one pixel in the target shape, and drawing the target pixel point according to the starting point and the end point of the target pixel point so as to convert the target pixel point into a line segment.
9. A PCB-based BMP image processing apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of a PCB-based BMP image processing method according to any one of claims 1 through 5 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of a PCB-based BMP image processing method according to any one of claims 1 through 5.
CN201911208807.3A 2019-11-30 2019-11-30 BMP image processing method, device and equipment based on PCB Active CN111090968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911208807.3A CN111090968B (en) 2019-11-30 2019-11-30 BMP image processing method, device and equipment based on PCB

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911208807.3A CN111090968B (en) 2019-11-30 2019-11-30 BMP image processing method, device and equipment based on PCB

Publications (2)

Publication Number Publication Date
CN111090968A CN111090968A (en) 2020-05-01
CN111090968B true CN111090968B (en) 2022-08-12

Family

ID=70393837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911208807.3A Active CN111090968B (en) 2019-11-30 2019-11-30 BMP image processing method, device and equipment based on PCB

Country Status (1)

Country Link
CN (1) CN111090968B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183409A (en) * 2007-12-20 2008-05-21 深圳创维-Rgb电子有限公司 Method and system for budget estimating circuit board soldering tin amount through BMP image file
CN101894180A (en) * 2010-06-17 2010-11-24 杨焕峥 Method for obtaining schematic diagram after copying

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183409A (en) * 2007-12-20 2008-05-21 深圳创维-Rgb电子有限公司 Method and system for budget estimating circuit board soldering tin amount through BMP image file
CN101894180A (en) * 2010-06-17 2010-11-24 杨焕峥 Method for obtaining schematic diagram after copying

Also Published As

Publication number Publication date
CN111090968A (en) 2020-05-01

Similar Documents

Publication Publication Date Title
CA2676487C (en) Method for emphasizing differences in graphical appearance between an original document and a modified document with annotations
US8249352B2 (en) Document image processing apparatus, document image processing method and computer readable medium
CN104331928B (en) A kind of contour automatic labeling method based on the triangulation network
CN110458772A (en) A kind of point cloud filtering method, device and storage medium based on image procossing
US20210217234A1 (en) Device and method for extracting terrain boundary
CN111090968B (en) BMP image processing method, device and equipment based on PCB
CN111985014B (en) Modeling method and system based on standard atlas
CN111460764A (en) Electronic book labeling method, electronic equipment and storage medium
CN111309424A (en) Page restoration method and related equipment
CN115270530A (en) Method, system, device and medium for rapidly establishing progress visualization model
CN114356201A (en) Writing beautifying method, device, equipment and readable storage medium
CN112348935B (en) Wire frame rendering method, terminal device and computer-readable storage medium
CN108846806B (en) Image processing method, image processing apparatus, and recording medium
JP2013186705A (en) Data transfer device and data transfer method
CN113240786A (en) Video point cloud rendering method and device, electronic equipment and storage medium
CN112329384A (en) Method, device and equipment for realizing character shadow effect and storage medium
CN112214872B (en) Automatic calculation method and device for railway line longitudinal section scale information
JP2001331763A (en) Method for recognizing table
CN116993624B (en) Image data processing method, device and medium
CN113486624B (en) Method and device for realizing automatic equidistant PCB wiring and electronic equipment
CN116974671B (en) Vector surface pickup method and device, electronic equipment and storage medium
CN110096682B (en) Method for realizing real-time cooperative processing of data in document based on modoc data structure
CN115168112B (en) Method, device, equipment and medium for restoring section data under dynamic section change
JP6373904B2 (en) Data transfer apparatus and data transfer method
CN112379635B (en) PLC ladder diagram analysis method and device, electronic equipment and readable storage medium

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
GR01 Patent grant
GR01 Patent grant