From: "Vasco M" <kingjew@hotmail.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webx
Newsgroups: comp.soft-sys.matlab
Subject: Re: Image compression in Matlab
Message-ID: <eed822e.43@webx.raydaftYaTP>
Date: Wed, 2 Mar 2005 02:24:33 -0500
References: <wf077lebijgw@legacy> <et9f1l615syn@legacy> <eed822e.42@webx.raydaftYaTP>
Lines: 31
NNTP-Posting-Host: 64.136.49.226
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:264169



I did a test:

[x,map] = imread('julius.jpg');
>> size(x)

ans =

    77 65 3

>> d = dct(x);
??? In an assignment A(matrix,:) = B, the number of columns in A
and B
must be the same.

Error in ==> C:\MATLAB6p5\toolbox\signal\signal\dct.m
On line 61 ==> y(1:n,:) = aa;

>> d = dct(x(:,:,1)); % You need to extract the individual faces
from the 3D matrix. x(:,:,1), x(:,:,2), x(:,:,3)

zedkiller wrote:
>
>
> ercan kaplan wrote:
>>
>>
>> Hi,
>> I need matlab code for a function that splits an image into 8x8
> blocks ?
> If anybody can help it's am emergency thanks
>>