Histograms for image processing
Show older comments
Hi, I need some explanation for the following code we wrote in class today:
function [imageMapped] = L1_image_map(image,T)
imageMapped = zeros(size(image));
for channel = 1:size(image,3)
for ii= 1:size(image,1)
for jj=1:size(image,2)
imageMapped(ii,jj, channel)=T(image(ii,jj,channel) +1,channel);
end
imageMapped = im2uint8(imageMapped);
end
end
end
Where T is the transformation function T=255*CDF. Thanks!
Accepted Answer
More Answers (0)
Categories
Find more on Histograms in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!