From: Shala Sel on
Hello
Could you please help me to debug the error

??? Subscripted assignment dimension mismatch.

Error in ==> blkproc at 89
aa(border(1)+(1:ma),border(2)+(1:na)) = a;

in the code

I = imread('100.jpg');
fun=(a)dct2;
J=blkproc(I,[8 8],fun);
.................

Thank you

Shala
From: us on
"Shala Sel" <sahiselva(a)yahoo.com> wrote in message <hua7ud$l09$1(a)fred.mathworks.com>...
> Hello
> Could you please help me to debug the error
>
> ??? Subscripted assignment dimension mismatch.
>
> Error in ==> blkproc at 89
> aa(border(1)+(1:ma),border(2)+(1:na)) = a;
>
> in the code
>
> I = imread('100.jpg');
> fun=(a)dct2;
> J=blkproc(I,[8 8],fun);
> ................
>
> Thank you
>
> Shala

well... the only thing you do not show is the obvious culprit: FUN...
what does it do...
how does its output look for a nxn input mat...

us
From: Shala Sel on
Thank you very much for your reply....

I am trying to block a 512x512 color image into 8x8
blocks so that I can DCT each one.

Shala
From: Brendan Hannigan on
"Shala Sel" <sahiselva(a)yahoo.com> wrote in message <huaj0p$29n$1(a)fred.mathworks.com>...
> Thank you very much for your reply....
>
> I am trying to block a 512x512 color image into 8x8
> blocks so that I can DCT each one.
>
> Shala

BLKPROC does not support MxNx3 input images. Only 2D images are supported.

I think DCT2 also only supports MxN.
From: us on
"Brendan Hannigan" <bhannigaHELLO(a)THEREmathworks.com> wrote in message <i005j1$lv3$1(a)fred.mathworks.com>...
> "Shala Sel" <sahiselva(a)yahoo.com> wrote in message <huaj0p$29n$1(a)fred.mathworks.com>...
> > Thank you very much for your reply....
> >
> > I am trying to block a 512x512 color image into 8x8
> > blocks so that I can DCT each one.
> >
> > Shala
>
> BLKPROC does not support MxNx3 input images. Only 2D images are supported.
>
> I think DCT2 also only supports MxN.

a hint:
- if(f) you own the img proc tbx...

help blockproc; % <- it handles m x n x p images...

us
 | 
Pages: 1
Prev: blkproc
Next: IMAQ adaptor toolkit and NI boards