![]() Setting the Visibilty doesn't close the figure, it just hides it. Obviously with uint8 data you have to be more careful with the difference, but that wasn't what you were asking about anyway I assume. If you want to get an image to show in a subplot, just do: img = out_figure_image(hFigs(i)) subplot ( 2, 1, 1 ) imagesc ( A ) subplot ( 2, 1, 2 ) imagesc ( D ) would, for example show an original image and the difference image from some other matrix. Then you can save this figure to the hard drive directly with Matlab's function save(), but I'm not sure this exactly what you want to do here. subimage converts images to RGB for display purposes, thus avoiding colormap conflicts. ![]() You can use subimage in conjunction with subplot to create figures with multiple images, even if the images have different colormaps. You can use subimage in conjunction with subplot to create figures with multiple images, even if the images have different colormaps. subimage (I) displays the RGB (truecolor), grayscale, or binary image I in the current axes. If you add the parameter 'Figure', it makes a copy of the figure without all the callbacks, and returns a handle to this new figure. subimage (I) displays the RGB (truecolor), grayscale, or binary image I in the current axes. ![]() The function out_figure_image.m function is part of Brainstorm and is used to make screen captures of images, not figures. I don't know why but the out_figure_image function returns error when I set as filename extension. You can use the imshow function with the MATLAB subplot function to display multiple images in a single figure window. If I do not close it, the figure handles are still in memory, even if anything is displayed in Brainstorm and so when I re-run the script on a new set of images, I end up getting in the hFigs object bot the previous and the new images.ĭo you have any other hint on how to deal with this problem? The problem that I am struggling to solve now is how to close the Brainstorm figure after I got all the necessary data. % Clear the temporary matrix and go the next image % Set the destination figure as the active one % Set the Brainstorm figure as not visibile Tmp_bst_image = out_figure_image(hFigs(i), 'Figure', ) I tried to select a subplot in the command window by example subplot(3,3,4) but the subplot get blank. file of a subplot and I want to add a x-label for each of the subplots. % Store the Brainstorm image matrix (3D uint8 values) in a temporary Learn more about figure, subplot, axes, file Hello, I have fig. % Create a new figure and set it to invisible fig, so I was unable to export the data as a standard figure object even if it seemed to me the right thing to do based on the function help and the function source code (line 72).Īnyway, I came out with this script which kind of does what I want: % Get all the figures displayed in the GUI MATLAB TUTORIAL FOR IMAGE PROCESSING HOW TO SEE MULTIPLE IMAGES BY USING SUBPLOT FUNCTION IN MATLAB EXAM TIME 12.2K subscribers Subscribe 50 Share Save 4.3K views 2 years ago Hello Gyz. I don't know why but the out_figure_image function returns error when I set as filename extension.
0 Comments
Leave a Reply. |