VisualBinary | study project for 3D binary visualization | Data Visualization library
kandi X-RAY | VisualBinary Summary
kandi X-RAY | VisualBinary Summary
VisualBinary is a study project for 3D binary visualization.
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 VisualBinary
VisualBinary Key Features
VisualBinary Examples and Code Snippets
Community Discussions
Trending Discussions on VisualBinary
QUESTION
I am trying to segment a simple image using watershed function provided by BoofCV in Java. So I have writen (copied, edited and adjusted) the following code :
...ANSWER
Answered 2018-Nov-08 at 16:22You get this result because you are not processing the background as a region. The markers you provide to watershed are only the contour of your shapes. Since the background isn't a region, the watershed algorithm splits it equally to each region. It is done equally because the distance in your original image of each shape to the background is the same (binary image).
If you want to get the background as another region, then provide to the watershed algorithm some points of the background as markers such as the corners for example.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install VisualBinary
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