Method for transforming full distance of three-dimensional binary image
A technology of binary image and distance transformation, which is applied in the field of image processing and can solve the problems of long operation time and so on.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082] See attached figure 1 , Is a flowchart of the first method for full distance transformation of a three-dimensional binary image disclosed in an embodiment of the present invention, and the method may include:
[0083] Step S101: Divide the three-dimensional binary image into corresponding numbers of two-dimensional binary images along one of the axes;
[0084] Specifically, along the x-axis, the three-dimensional binary image can be divided into m two-dimensional binary pictures, along the y-axis, the three-dimensional binary image can be divided into n two-dimensional binary pictures, along the z-axis, the three-dimensional binary images can be divided The value image is divided into s two-dimensional binary pictures.
[0085] Step S101 is the prior art and will not be repeated here.
[0086] Step S102: separately calculate the two-dimensional complete distance transformation of each pixel in each divided two-dimensional binary picture;
[0087] The complete distance transforma...
Embodiment 2
[0181] See Figure 8 , Is a schematic flowchart of a method for separately calculating the two-dimensional complete distance transformation of each pixel in each divided two-dimensional binary image provided by an embodiment of the present invention, that is, the method for implementing step S102 in the first embodiment, the method may include :
[0182] Step S801: Determine the second closest background pixel range of the fourth pixel based on the complete distance between the third target pixel and the fourth pixel and the distance between the third target pixel and the nearest background pixel, and set the second nearest background pixel range According to a preset rule, it is divided into a first sub-nearest background pixel range set and a second sub-nearest background pixel range set. The first sub-nearest background pixel range set includes at least one first sub-nearest background pixel range, and the at least one sub-nearest background pixel range The number of rows in t...
Embodiment 3
[0195] See Picture 10 , Is a schematic flowchart of a method for separately calculating the two-dimensional complete distance transformation of each pixel in each divided two-dimensional binary image provided by an embodiment of the present invention, that is, the method for implementing step S102 in the first embodiment, the method may include:
[0196] Step S1001: Determine the second nearest background pixel range of the fourth pixel according to the complete distance between the third target pixel and the fourth pixel, and the two-dimensional complete distance between the third target pixel and the nearest background pixel;
[0197] Step S1002: using the first function and the second function to search for the background pixel closest to the fourth pixel in each layer of the second closest background pixel range;
[0198] Each layer of the second nearest background pixel range refers to the boundary of a square centered on the fourth pixel or the third target pixel.
[0199] Speci...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 