Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

how can i use image which is save in variable?

1 view (last 30 days)
romasha
romasha on 21 Jan 2014
Closed: Walter Roberson on 21 Jan 2014
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);

Answers (0)

Community Treasure Hunt

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

Start Hunting!