how to get co-efficient from an image

I have an image plz tell how to get co-efficient as output

3 Comments

You will need to expand on your question. Which co-efficients are you referring to?
Consider that in the code
IMG = imread('lena256.tif');
then the array IMG could be termed to be the "coefficients" of the image.
Walter am getting numreric values as per ur comment in my previous question
I=imread('lena.bmp')
K=dec2bin(I);
[r c]=size(K)
J=K-0;
W=zeros(r,c);
J=K-W
i get numeric values
walter plz look at this picture
http://www.sendspace.com/file/rq0diw
i have completed till modified ebcot .plz tell how to get output bit stream

Sign in to comment.

Answers (1)

K = dec2bin(I) - '0';
I did specifically say to subtract the character '0' not the number 0.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Asked:

FIR
on 2 Jan 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!