Path: news.mathworks.com!not-for-mail
From: "Sprinceana " <mihaispr@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: breaking up a large matrix before loading into matlab
Date: Fri, 3 Jul 2009 06:28:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <h2k8dh$6uc$1@fred.mathworks.com>
References: <18789979.66027.1246568708618.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: "Sprinceana " <mihaispr@yahoo.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246602481 7116 172.30.248.37 (3 Jul 2009 06:28:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 3 Jul 2009 06:28:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1740796
Xref: news.mathworks.com comp.soft-sys.matlab:552607


For example if your big matrix (stored in variable) is 720x960 and you want to load only 10*10:


img=imread('poza.jpg');imshow(img);


>>whos img

  Name      Size                    Bytes  Class

  img     720x960                  691200  uint8 array

Make this (to store only 10*10 part of that matrix):

small_img=img(1:10,1:10);
imagesc(small_img);