Hi,
I have a question about the algorithm of the p algorithm (segmentByP in src/python/packages/mamba/hierarchies.py, lines 184-235):
First the input image gets multiplied with a gain and saved into a 32 bit image "imWrk5", I think because the result wouldn't fit into an 8 bit image. Then 3 lines later copyBytePlane() is used to copy the plane with index 0 to an 8 bit image. I don't understand that. The way I see it, "imWrk5" is still a gray-scale image, just with a larger range (uint32 instead of uint8).
What's the purpose of copying just the first byte of a 4 byte pixel value?
Or is this really just a conversion from 32 bit to 8 bit gray-scale? I can't read that from the doc-string however...
--
You received this message because you are subscribed to the Google Groups "Mamba Image" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mamba-image+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.