distance_transform | Distance Transforms of Sampled Functions | Data Manipulation library
kandi X-RAY | distance_transform Summary
kandi X-RAY | distance_transform Summary
Distance Transforms of Sampled Functions
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of distance_transform
distance_transform Key Features
distance_transform Examples and Code Snippets
Community Discussions
Trending Discussions on distance_transform
QUESTION
ANSWER
Answered 2020-May-10 at 19:55Your issue is that imshow() will not present the image properly. You need to do imwrite().
This works for me in Python/OpenCV.
Input:
QUESTION
In image processing, each of the following methods can be used to get the orientation of a blob region:
- Using second order central moments
- Using PCA to find the axis
- Using distance transform to get the skeleton and axis
- Other techniques, like fitting the contour of the region with an ellipse.
When should I consider using a specific method? How do they compare, in terms of accuracy and performance?
...ANSWER
Answered 2017-Apr-06 at 19:39I'll give you a vague general answer, and I'm sure others will give you more details. This issue comes up all the time in image processing. There are N ways to solve my problem, which one should I use? The answer is, start with the simplest one that you understand the best. For most people, that's probably 1 or 2 in your example. In most cases, they will be nearly identical and sufficient. If for some reason the techniques don't work on your data, you have now learned for yourself, a case where the techniques fail. Now, you need to start exploring other techniques. This is where the hard work comes in, in being a image processing practitioner. There are no silver bullets, there's a grab bag of techniques that work in specific contexts, which you have to learn and figure out. When you learn this for yourself, you will become god like among your peers.
For this specific example, if your data is roughly ellipsoidal, all these techniques will be similar results. As your data moves away from ellipsoidal, (say spider like) the PCA/Second order moments / contours will start to give poor results. The skeleton approaches become more robust, but mapping a complex skeleton to a single axis / orientation can become a very difficult problem, and may require more apriori knowledge about the blob.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install distance_transform
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page