How do I flip a color image (RGB) in MATLAB?
The fliplr does not seem to work without losing the color contents, as it only deals with 2D.
As well, the imrotate may not rotate color images.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The function
flipdimwill work for N-D matrices, whereas the functionsflipudandfliplronly work for 2-D matrices:NOTE: In more recent versions of MATLAB (R2013b and newer), the function
flipis now recommended instead offlipdim.