Prev: blkproc
Next: IMAQ adaptor toolkit and NI boards
From: Shala Sel on 4 Jun 2010 02:54 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 4 Jun 2010 05:29 "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 4 Jun 2010 06:03 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 24 Jun 2010 13:45 "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 24 Jun 2010 14:25 "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 |