Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Can a function which works well for grayscale images be applied for RGB images also?
조회 수: 1 (최근 30일)
이전 댓글 표시
Can a function which works well for grayscale images be applied for RGB images also?
댓글 수: 0
답변 (1개)
David Young
2015년 8월 4일
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
Walter Roberson
2015년 8월 4일
tempImage = reshape(YourRGBImge, size(YourRGBImage,1), []);
now apply the encryption to tempImage. Afterwards you can reshape() the result to size(YourRGBImage)
David Young
2015년 8월 4일
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.
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!