Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet


Discussion Groups

Discussion Groups | Matlab DSP | reconstructing the gray scale image from binary

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

reconstructing the gray scale image from binary - swathi sairam - Sep 1 10:01:18 2008



Hi,
 In my watermarking project, I detect edges and embed my watermark in high intensity regions
of the edges in the host gray scale image. So the host image will be transformed into binary
image while applying edge detection algorithm.Now my problem is how to reconstruct the binary
edge detected image to the corresponding gray scale image.

the code upto this is:

image_1 = imread('lena.png');
edge_1 = edge(image_1,'canny');
 
and doing the embedding.....

while reconstructing after embedding i get only the binary image. 
please give me any idea for the reconstruction of the binary image to the corresponding gray
scale image.


(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: reconstructing the gray scale image from binary - denn...@gmail.com - Sep 8 9:10:01 2008

>Hi,
> In my watermarking project, I detect edges and embed my watermark in high intensity
regions of the edges in the host gray scale image. So the host image will be transformed into
binary image while applying edge detection algorithm.Now my problem is how to reconstruct the
binary edge detected image to the corresponding gray scale image.
>
>the code upto this is:
>
>image_1 = imread('lena.png');
>edge_1 = edge(image_1,'canny');
> 
>and doing the embedding.....
>
>while reconstructing after embedding i get only the binary image. 
>please give me any idea for the reconstruction of the binary image to the corresponding
gray scale image.
>

Try this

image_gray_scale = im2uint(image_binary);

Hope this helps!

------------------------------------



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )