I changed the inverted LUT but same issue is there. If you have time help me to solve this issue.
This is my sample macro.
run(“Convert to Mask”);
run(“Gray Scale Attribute Filtering”, “operation=Closing attribute=Area minimum=25000 connectivity=4”);
run(“Morphological Filters”, “operation=Dilation element=Disk radius=5”);
Here I have use attribute morphological operator to remove objects smaller than 25000 px. But same issue is there. theory says (MorpholibJ documentation),
" Attribute filtering
Attribute filters aim at removing components of an image based on a certain size criterion, rather than on intensity. The most common and useful criterion is the number of pixels/voxels (i.e., the area or volume). For example, a morphological size opening operation with a threshold value of 20 will remove all blobs containing fewer than 20 voxels. The length of the diagonal of the bounding box can also be of interest to discriminate elongated versus round component shapes."
But opening attribute does not work like that. But closing attribute gives the result.