image processing

Words
85
Reading
1 min
8y
Listen to this post
~1 min

first i picked a picture than i also made a matlab code. Than copyed the picture in jpg form in the matlab bin. in this code, i only gave 3 stage or color of the car.

CODE:

 file_name = 'G:\Study materials\matlab\edited\mc-3.jpg'; 

 X = imread(file_name); 

figure(1) imshow(X)

 I = rgb2gray(X) 

figure(2) imshow(I)

 BW1 = edge(I,'sobel'); 

figure(3) imshow(BW1) 

BW2 = edge(I,'prewitt');

 figure(4) imshow(BW2) 

BW3 = edge(I,'roberts');

 figure(5) imshow(BW3) ;

that's a simple image processing .....if you have any question please comment me about matlab and image processing .

image processing | Ecency