Path: news.mathworks.com!not-for-mail
From: "Arvind " <ab835@georgetown.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Creating an image from a binary mask file using RESHAPE
Date: Tue, 3 Nov 2009 19:51:01 +0000 (UTC)
Organization: Georgetown University
Lines: 6
Message-ID: <hcq1j5$3so$1@fred.mathworks.com>
References: <hcq0hf$r5g$1@fred.mathworks.com>
Reply-To: "Arvind " <ab835@georgetown.edu>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257277861 3992 172.30.248.38 (3 Nov 2009 19:51:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 3 Nov 2009 19:51:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1971406
Xref: news.mathworks.com comp.soft-sys.matlab:582151


Last edit post, I promise :P

I forgot to mention I have a workaround just by doing the wrong reshape command when I swapped the rows and columns:
x=reshape(vector,192,256,20)

but since it was flipped on the y=-x axis, I just did a 'rot90' followed by a 'flipud'...this works (ie, if I plot it using IMSHOW, I see the exact ROI I drew in my image viewer)...but I'm still not sure what's going on with reshape.