Message Boards Message Boards

0
|
3950 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Why doesn't RegionBinarize operate on an image with ColorProfileData ?

Posted 11 years ago
I'm using RegionBinarize on a number of images, but occasionally it does nothing.
These image always have 
ColorSpace->ColorProfileData[<>,Description->sRGB IEC61966-2.1,DeviceColorSpace->RGB,IndependentColorSpace->XYZ]

Why does RegionBinarize not operate on this image?
And,/or how can I convert it to a image with ColorSpace-> RGB?
ImageColorConvert [img, "RGB"] does not do the job.
This will work,
ColorConvert[ ColorConvert[img, "XYZ"], "RGB"]
but why?

I will attach a small image here, the sequence of tests I've performed.

Thanks in advance,

Ed Komp

POSTED BY: Ed Komp
3 Replies
Posted 11 years ago
I have had some trouble attaching the short bit of Mathematica code,
so I will try putting it into a reply

Sorry,

Ed Komp
 Print [ "***  Original Image"]
 img
 ImageColorSpace[img]
 Options [img, ColorSpace]
 RegionBinarize[img, { {50, 100}} , .2]
 
 
 Print ["***  Image after ColorConvert to RGB"]
 img1 = ColorConvert[img, "RGB"]
ImageColorSpace[img1]
Options [img1, ColorSpace]
RegionBinarize[img1, { {50, 100}} , .2]


Print ["*** Image after ColorConvert to XYZ and back to RGB"]
img2 = ColorConvert[ ColorConvert[img, "XYZ"], "RGB"]
ImageColorSpace[img2]
Options [img2, ColorSpace]
RegionBinarize[img2, { {50, 100}} , .2]
POSTED BY: Ed Komp
Sorry for the inconvenience.  This is a known problem for which a correction is in the works.
POSTED BY: Bruce Miller
Posted 11 years ago
Bruce,

Thanks for the information.
At least I have something of workaround for now.
I will close this discussion.

Ed
POSTED BY: Ed Komp
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract