Rotate image will remove any other image effects in MATLAB
5 views (last 30 days)
Show older comments
Ahmed El sherif
on 5 Apr 2015
Commented: Image Analyst
on 6 Apr 2015
I made a simple image processing project by using MATLAB with GUI, i have a button for uploading an image, another button for making the image black and white and another button to rotate the image. When i press the black and white effect button it works great, but when i press the rotate button the black and white effect will be removed after rotating. How can i fix that ?
0 Comments
Accepted Answer
Image Analyst
on 5 Apr 2015
Sounds like you are operating on the original image rather than on the gray scale version. How are you getting the image into your callback function for the rotate button? Are you using getimage() to pull it out of the axes? Are you using one of the ways on the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F ????
4 Comments
Image Analyst
on 6 Apr 2015
If you want to rotate the binary image, pass a into imrotate(). If you want to rotate the original image, pass im1 into imrotate.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!