how can i use image which is save in variable?

in the following code i wanted to use gray image which saved in variable b for further use,but it gives an error "undefined b" on second line... kindly sort this out
CODE:
i=imread('C:\Users\Romesha\Desktop\eye.jpg');b=rgb2gray(i);imshow(b); im = imread(b); imshow(im);

답변 (0개)

이 질문은 마감되었습니다.

질문:

2014년 1월 21일

마감:

2014년 1월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by