High-level Application Use a for loop to generate successive images that make peppers.png appear to be glowing green. You may use the imsharpen() function.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Harshal Patel
le 13 Août 2019
Commenté : KALYAN ACHARJYA
le 2 Mar 2020
High-level Application Use a for loop to generate successive images that make peppers.png appear to be glowing green. You may use the imsharpen() function
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 14 Août 2019
Modifié(e) : KALYAN ACHARJYA
le 14 Août 2019
"Use a for loop to generate successive images that make peppers.png appear to be glowing green."
Is this one?
image_test=imread('peppers.png');
green_panel=image_test(:,:,2);
max_i=4; % Decide as per your requiremnets
for i=1:0.25:max_i
green_panel=1.5*image_test(:,:,2);
image_result=cat(3,image_test(:,:,1)./i,max_i*image_test(:,:,2),image_test(:,:,3)./i);
figure, imshow(image_result);
end
Use of imsharpen() function, and see the differences, you can easily incorporate this too.
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!