Histograms for image processing
Afficher commentaires plus anciens
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!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Histograms dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!