Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to change an image without displaying it

Subject: How to change an image without displaying it

From: Jonathan

Date: 28 Jul, 2009 14:29:03

Message: 1 of 3

Hi,

I'm trying to add information on an image (title, xlabel, ylabel, text, to superimpose other images) without displaying it. Untill I'm trying

F= figure('visible','off');
imshow(data);
title('test');

But a new window appears when I'm working with the graphical Matlab interface, and the following error message with the text mode Matlab (with only the option -nodisplay)

??? Error using ==> imshow at 191
IMSHOW requires Java to run.

Thanks for any idea you could have.

Subject: How to change an image without displaying it

From: Dave Brackett

Date: 29 Jul, 2009 22:39:02

Message: 2 of 3

"Jonathan " <jbferracci@gmail.com> wrote in message <h4n1vf$2ef$1@fred.mathworks.com>...
> Hi,
>
> I'm trying to add information on an image (title, xlabel, ylabel, text, to superimpose other images) without displaying it. Untill I'm trying
>
> F= figure('visible','off');
> imshow(data);
> title('test');
>
> But a new window appears when I'm working with the graphical Matlab interface, and the following error message with the text mode Matlab (with only the option -nodisplay)
>
> ??? Error using ==> imshow at 191
> IMSHOW requires Java to run.
>
> Thanks for any idea you could have.


Have you tried installing java?

Subject: How to change an image without displaying it

From: ImageAnalyst

Date: 29 Jul, 2009 23:00:58

Message: 3 of 3

Jonathan:
Like Dave said, it appears that you need Java, although I'm surprised
that you don't already have it since I think the MATLAB installer
should install it if your don't have it. But anyway, check on that.
If you have Windows, you can check the system tray (lower right corner
of your desktop), or the Control Panel.

You're getting a new window because you asked for one with the figure
() command. If you don't want an additional figure window, then don't
figure() and your image array ("data") will go into the current figure
if one already exists. If one doesn't already exist, a new one will
be automatically created even without you calling the figure()
function.
Good luck,
ImageAnalyst

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us