Clear Filters
Clear Filters

How do i raise the pixels in c to a power of .25? and then store the new image?

1 view (last 30 days)
a=imread('C:\Users\dona2264\Downloads\SanDiego.jpg');
g = rgb2gray(a);
b = im2double(g);
c= mat2gray(b);

Answers (1)

Walter Roberson
Walter Roberson on 10 Nov 2018
d = c .^ (1/4);
imwrite(d, 'NewImage.jpg');

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!