MATLAB Answers

0

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

Asked by John Marl on 10 Nov 2018 at 20:48
Latest activity Answered by Walter Roberson
on 10 Nov 2018 at 21:02
a=imread('C:\Users\dona2264\Downloads\SanDiego.jpg');
g = rgb2gray(a);
b = im2double(g);
c= mat2gray(b);

  0 Comments

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 10 Nov 2018 at 21:02

d = c .^ (1/4);
imwrite(d, 'NewImage.jpg');

  0 Comments

Sign in to comment.