Stéphane,
thank you, I can work with that.
Regards,
Philipp
Am Mi., 15. Juli 2020 um 22:14 Uhr schrieb Stéphane Mottelet <
stephane.motte...@utc.fr>:
> Another possibility: compute the connected components of the green plane
> bitmap image and keep only the largest one. You can use imlabel
Another possibility: compute the connected components of the green plane
bitmap image and keep only the largest one. You can use imlabel then
imblobprop (in IPCV):
im=im2bw(imread("G.jpg"),0.5); // I took a screenshot of your G plane image
clf
subplot(1,2,1)
imshow(im)
[im_labeled,n] =
Stéphane,
Thanks for the hint.
This is nice for dots being completely surrounded by the green area.
In general there might be cases, where the dots are part of the red and
part of the green area.
The result would than be like this:
[image: grafik.png]
Appreciate your input.
Philipp
Am Mi.,
Hello,
Maybe this is not relevant, but if the green region is garanteed to be
always simply connected, you just have to fill holes in your
absdiff(G,B) image (imfill function in IPCV).
S.
Le 15/07/2020 à 17:58, P M a écrit :
Dear Scilab community,
Thanks to Antoine's functions I am able