FreeMan chain code-based straight line detection method and terminal
A straight line detection and chain code technology, applied in the field of data processing, can solve the problems of reducing the time complexity and space complexity of straight line detection, and achieve the effects of low time and space complexity, improved accuracy, and simple calculation process.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0096] Such as figure 1 As shown, the present embodiment provides a kind of straight line detection method based on FreeMan chain code, comprising:
[0097] S1. Use the FreeMan chain code to represent the line segment in the preset image.
[0098] Among them, the definition of the FreeMan chain code is described as, choose a pixel as the reference point P, and the adjacent pixels are in 8 different positions, and assign direction values 0 to 7 to them, called 0 to 7 bits Chaincode direction value, such as figure 2 shown. A line can be represented by the code value string of the Freeman chain code, which is called the chain code of the line graph. image 3 Given a 9×9 bitmap, one of the line segments starts from S and ends at E. figure 2 It is a schematic diagram showing the direction of the chain code, and the left point of P is represented as the point numbered 4 in the direction of P. In the same way, image 3 The first pixel point (a) of the line segment from S to...
Embodiment 2
[0126] The present embodiment provides a kind of edge detection method, comprises the straight line detection method based on FreeMan chain code described in embodiment one, also includes:
[0127] S1. Detect a preset image according to the line detection method based on the FreeMan chain code provided in Embodiment 1, and obtain multiple chain codes marked as lines.
[0128] For example, Figure 9 for the original image, Figure 10 for right Figure 9 The image after binarization and denoising processing, that is, the preset image described in this embodiment, Figure 11 It is a schematic diagram of the straight line segment detected by the line detection method based on FreeMan chain code.
[0129] S2. Obtain four chain codes marked as straight lines to obtain a chain code set; the chain code set includes a third chain code, a fourth chain code, a fifth chain code, and a sixth chain code.
[0130] For example, the set of chaincodes contains Figure 12 L1 (third chain co...
Embodiment 3
[0161] Such as Figure 16 As shown, the present embodiment provides a line detection terminal based on FreeMan chain code, including one or more processors 1 and memory 2, the memory 2 is stored with a program, and is configured to be processed by the one or more Device 1 performs the following steps:
[0162] S1. Use the FreeMan chain code to represent the line segment in the preset image.
[0163] Among them, the definition of the FreeMan chain code is described as, choose a pixel as the reference point P, and the adjacent pixels are in 8 different positions, and assign direction values 0 to 7 to them, called 0 to 7 bits Chaincode direction value, such as figure 2 shown. A line can be represented by the code value string of the Freeman chain code, which is called the chain code of the line graph. image 3 Given a 9×9 bitmap, one of the line segments starts from S and ends at E. figure 2 It is a schematic diagram showing the direction of the chain code, and the left ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



