I have a grey scale image:
and I am doing the following:
bin = Binarize[image, 0.18]
pos = PixelValuePositions[bin, 1]; resultImage = ReplaceImageValue[bin, pos -> Red]
ReplaceImageValue is extremely slow, it takes 48 sec.
In other languages likes Matlab or IDL this is done in less than a sec.
What is here the problem? The same is with
Thanks for your help.
PS: Is there a difference between