Histograms for image processing
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Histograms en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!