image function
Hello,
I am trying to run the script below that I created in Matlab 2016a in Compose 2017.3. It seems that 'image' function is not available in this version of Compose. Is it going to be available in the next version? (Any jpg file would work to test the script)
Matlab 2016a:
fig = imread('bb.jpg');
f = figure();
image(fig);
Compose:
addtoolbox('omlimgtoolbox');
fig = imread('bb.jpg');
f = figure();
image(fig); - I receive an error at this line in Compose -
I also tried 'imshow' command which directly uses the jpg image in the figure plot. However, it doesn't fit the image in the figure plot. When I use an image which is larger than the default plot area, I need to manually adjust the figure size to see the entire image.
Thank you
Berker
Answers
-
Hello Berker,
The image function is unfortunately not included in Compose yet and required to manually adjust the figure plot when we use imshow.
Thanks,
Sijo George
0