Comments (2)
Hi,
this is not really a bug. In this sample image, the blobs do not touch each other, and hence are not adjacent. Therefore, an empty output is normal...
To have an adjacency result, one possibility is to compute the influence region of each blob, using for example watershed on the distance transform.
run("Blobs (25K)");
setAutoThreshold("Default");
//run("Threshold...");
//setThreshold(126, 255);
setOption("BlackBackground", false);
run("Convert to Mask");
run("Close");
run("Invert");
run("Chamfer Distance Map", "distances=[Borgefors (3,4)] output=[32 bits] normalize");
run("Classic Watershed", "input=blobs-dist mask=None min=0 max=255");
run("Region Adjacency Graph", "show image=blobs.gif");
selectWindow("blobs.gif");
Hope this helps?
from morpholibj.
Hi,
Thanks for the heads up! I see now that you expect the regions to be touching. Thing is I would have expected it to work by first computing a voronoi diagram (which is what you did) and that it was then simply measuring the distance of each particle to its delaunay neighbors.
But not I see that I need to add that extra step myself. Thanks so much. I did almost the same but passed by the voronoi diagram.
run("Blobs (25K)");
setAutoThreshold("Default");
//run("Threshold...");
//setThreshold(126, 255);
setOption("BlackBackground", false);
run("Convert to Mask");
run("Voronoi");
setThreshold(0, 1);
setOption("BlackBackground", true);
run("Convert to Mask");
run("Connected Components Labeling", "connectivity=4 type=[8 bits]");
run("Region Adjacency Graph", "show image=blobs.gif");
selectWindow("blobs.gif");
from morpholibj.
Related Issues (20)
- Configure Analyze Regions HOT 14
- MorphoLibJ as a dependency versions conflict HOT 21
- croplabel() , set pixel/voxel size and origin of the cropped image HOT 3
- MorphoLibJ is on bioconda HOT 1
- measurements should contain an additional column with image calibration unit
- Fill holes in labels HOT 4
- Erode labels HOT 4
- Suggestion for Intensity Measurements and Analyze Regions commands HOT 1
- orientation features in 2D have different ranges
- enhance analysis of timelapse images HOT 2
- closing close to image boundary HOT 2
- plugin “Draw Table Values” should be scriptable
- Issue with the ‘Label Edition’ plugin
- Label Morphological Filter: Erosion Operation for touching labels HOT 7
- Remove Border Labels does not work on Virtual stacks
- MorpholibJ Draw Table Value plugin error HOT 1
- Using Distance Transform Watershed without a GUI / UI HOT 6
- "Fill Label Holes" plugin results in full-white image when applied to binary image
- Typo in MorphologicalSegmentation.java HOT 1
- Error when applying opening/closing with an ellipsoid structuring element HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morpholibj.