Matlab Programming Please help Thanks Download this small im
Matlab Programming. Please help. Thanks
Download this small image http://carmaux.cs.gsu.edu/~mweeks/csc4630/PICT0040a.JPG, load it onto a variable with the \"imread\" command, then use the \"im2bw\" command to make it a logical image (i.e.image2black and white). Next, reverse the result, so that the black and white colors are swapped. Then show it with the \"imshow\" command. Use the command \"text(10,10, \'cells\');\" (you will see what it does). Use \"title\", \"xlabel\", and \"ylabel\" to add information to the figure, where the title is the filename of the image, the label on the x-axis is \"pc9\", and the y-axis label is your name. Print this image, and show your code.
Solution
% loading image
[X,map] = imread(\'smiley.tif\');
% making black white image
Black_White = im2bw(X,map,0.4);
% displaying normal image and black and white converted image
imshow(X,map), figure, imshow(Black_White)
xlabel(\'pc9\')
ylabel(\'image data\')
plot([0:1:100],X,\'*\')
