Path: news.mathworks.com!not-for-mail
From: "ridhi jain" <rivi_jain@yahoo.co.in>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Guide, load image from folder
Date: Mon, 18 May 2009 17:46:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 29
Message-ID: <gus6sq$2si$1@fred.mathworks.com>
References: <ggq8t2$mcg$1@fred.mathworks.com> <ggqa9i$679$1@fred.mathworks.com> <45c06a8d-1591-4c4c-a67e-f8a516ff9c95@r3g2000vbp.googlegroups.com>
Reply-To: "ridhi jain" <rivi_jain@yahoo.co.in>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1242668762 2962 172.30.248.35 (18 May 2009 17:46:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 18 May 2009 17:46:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1833515
Xref: news.mathworks.com comp.soft-sys.matlab:540786


hi,
once again i am encountering the problem of displaying a grayscale image on axes.
In my project when i watermark an image i immediately want to display the watermarked image in the axes. I used the simple code:
f = fullfile('C:','Users','ongc','Documents','MATLAB','watermark112.jpg')
t = imread(f);
axes(handles.axes9);
image(t);
axis off ;

when i insert this code just after my code for watermarking the image, i go errors such as:
Error in ==> final>insert_watermark_stego_Callback at 224
axes(handles.axes7);

Error in ==> gui_mainfcn at 96
        feval(varargin{:});

Error in ==> final at 42
    gui_mainfcn(gui_State, varargin{:});

Error in ==>
guidemfile>@(hObject,eventdata)final('insert_watermark_stego_Callback',hObject,eventdata,guidata(hObject))


??? Error while evaluating uicontrol Callback

Then i trie to use another push button to display the image in the axes. The image was displayed but was red in color as the previous case. Image as u said is 2D monochrome. What is the solution to this.
Thanx for your help...

-ridhi