From: rustyraj 18 on
I have a grayscale image from which i want to blacken out a certain region of interest.the region can be any closed polygon.I need to set the pixels inside the i=region i choose to zero.
I used the ROI tool but it interpolates the data on boundary.I dont need that I need perfect black.

Urgent

With regards
rustyraj18
From: us on
"rustyraj 18" <rustyraj18(a)gmail.com> wrote in message <i0int4$nae$1(a)fred.mathworks.com>...
> I have a grayscale image from which i want to blacken out a certain region of interest.the region can be any closed polygon.I need to set the pixels inside the i=region i choose to zero.
> I used the ROI tool but it interpolates the data on boundary.I dont need that I need perfect black.
>
> Urgent
>
> With regards
> rustyraj18

how do you use ROIPOLY(?)...
how do you apply the (logical) mask, which it returns, to your image(?)...

us