Hi Vladimir,
cc8compt works on a thresholded image, ie. one that has only values 0 or
1 (see also the documentation).
This means that you, depending on your needs, might have to do some
careful pre-processing. For gray-scale images with noise I would
normally first find the noise level, $sig, then create a thresholded
image as:
$tim = $im > 3.0*$sig;
(say, this is not always a good way to do it of course! :), then you
threshold using:
$label_im = cc8compt($tim);
That works fine. If you need to do thresholding based on colour values,
then you need to replace the simple > operation above with somewhat more
complex logic I'd assume.
Cheers,
J.
Vladimir Radulovski wrote:
Hi al - here is Vladimir from Bulgaria.
Tell me has any of the pdl users done things with cc8compt - I do this:
perldl>$im = rpic "b.gif" # the gif is a 2-colour
# after the rpic - I have a nice 20x20 piddle $im, but when i try
perldl> use PDL::Image2D # it loads the module
perldl> $segmented = cc8compt ($im)
I get in $segmented THE SAME VALUES as in $im - it does copying - not
- numbering the different connected components - HELP!
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl