Reply by محمد احمد December 11, 20122012-12-11
بتاريخ الاثنين، 10 ديسمبر، 2012 UTC+3 10:32:16 م، كتب محمد احمد:
> hi everybody, > > i am working on a project on digital watermark for image based on IRO (region of interest). > > the first step in this project is to separate ROI using roipoly or imfreehand or any other interactively way, and then considering RONI(reigon of non interest) and applying 3 level DWT using "Haar" wevelt. WHERE only RONI will be used for watermark embedding. > > please if any one can help with matlab code for separation of ROI out of cover medical image and prepare the RONI for other steps: > > > > i have this code but how i can deal with RONI. > > clc; > > clear; > > close all; > > a=imread('eight.tif'); > > imshow(a); > > [r c]=ginput(5); > > BW = roipoly(a,r,c); > > figure, imshow(BW) > > [R C]=size(BW); > > for i=1:R > > for j=1:C > > if BW(i,j)==1 > > Out(i,j)=a(i,j); > > else > > Out(i,j)=0; > > end > > end > > end > > figure; > > imshow(Out,[]);title('output image');
hi,,,,,,where are you
Reply by محمد احمد December 10, 20122012-12-10
hi everybody, 
i am working on a project on digital watermark for image based on IRO (region of interest).
the first step in this project is to separate ROI using roipoly or imfreehand or any other interactively way, and then considering RONI(reigon of non interest) and applying 3 level DWT using "Haar" wevelt. WHERE only RONI will be used for watermark embedding.
please if any one can help with matlab code for separation of ROI out of cover medical image and prepare the RONI for other steps:

i have this code but how i can deal with RONI. 
clc;
clear;
close all;
a=imread('eight.tif');
imshow(a);
[r c]=ginput(5);
BW = roipoly(a,r,c);
figure, imshow(BW)
[R C]=size(BW);
for i=1:R
for j=1:C
if BW(i,j)==1
Out(i,j)=a(i,j);
else
Out(i,j)=0;
end
end
end
figure;
imshow(Out,[]);title('output image');