I = imread('img.jpg'); I = (double(I).^3)
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
You could use mat2gray() to map the min to 0 and the max to 1.
I = mat2gray(I);
Multiply by 255 if you want in the range 0-255 and cast to uint8 if you want
I = uint8(255 * mat2gray(I));
I would recommend using a more descriptive variable name than I. You don't want it to be mistaken for a 1 or an l, and you don't want your code to look like alphabet soup.
SEE COMPLETE ANSWER CLICK THE LINK
Comments
Post a Comment