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

1 次查看(过去 30 天)
a=imread('C:\Users\dona2264\Downloads\SanDiego.jpg');
g = rgb2gray(a);
b = im2double(g);
c= mat2gray(b);

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by