is Arnold transform for color image and for grey/binary image different?
1 次查看(过去 30 天)
显示 更早的评论
i need to scramble a rgb color image. now i want to know is Arnold transform for color image and for grey/binary image different? it will be great if any one can refer the appropriate code from file exchange
0 个评论
回答(1 个)
Walter Roberson
2015-10-5
The 3D version is different; see http://www.mathworks.com/matlabcentral/answers/167213-3-dimensioal-arnold-cat-map
However you could reshape() your color image to be rows by (cols * 3), and then pad the result out to square and apply the arnold transform to that.
3 个评论
Walter Roberson
2015-10-5
There is no such thing as a 2D rgb color image in MATLAB. In MATLAB, 2D images can be pseudocolor ("color mapped"), or you can have 3D arrays which are RGB "true color". If you have a 2D array of data that represents color then you should just do a normal arnold transform on it and apply the colormap any time you want to display the result. If you have a 3D truecolor array, then you could divide it into channels and apply the arnold map to each, or you could reshape to have 3 times as many columns and apply the arnold map to that, or you could apply the 3D cat map.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modify Image Colors 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!