Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Can a function which works well for grayscale images be applied for RGB images also?

1 Ansicht (letzte 30 Tage)
Anushka
Anushka am 4 Aug. 2015
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Can a function which works well for grayscale images be applied for RGB images also?

Antworten (1)

David Young
David Young am 4 Aug. 2015
In general, yes. You can either apply it to each of the R, G and B planes in turn, and then recombine the results, or you may be able to generalise the function so that it is applicable to an image with vector-valued pixels. The details depend on the function, of course.
  3 Kommentare
Walter Roberson
Walter Roberson am 4 Aug. 2015
tempImage = reshape(YourRGBImge, size(YourRGBImage,1), []);
now apply the encryption to tempImage. Afterwards you can reshape() the result to size(YourRGBImage)
David Young
David Young am 4 Aug. 2015
Anushka - might have been a good idea to put that in the original question!
Walter - maybe your comment should be a separate answer?
I've changed the tags, by the way, as they were too general to help anyone identify the topic.

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by