From: Gary on
Hi i can get blkproc to work but when i use the following blockproc code nothing is returned after processing. I.e. a : empty 0x0 double

fun = @FunctionaName;

for i=1:300
% get the current frame
currentFrame = mov(i).cdata;
frame = currentFrame(:,:,3);

% block processing on the image
a = blockproc(frame,[8 8],fun,'BorderSize',[4 4]);
result(i,:) = transpose(a(:));
end


however if i do
....
a=blkproc(frame,[8 8],[4 4] ,fun);

it works fine.

What am I missing here? I want my code to work in future versions of matlab thats why i want to use blockproc.

Cheers,

Gary
From: Ashish Uthama on
On Sat, 20 Mar 2010 21:58:04 -0400, Gary <uk_robo(a)hotmail.com> wrote:

> Hi i can get blkproc to work but when i use the following blockproc code
> nothing is returned after processing. I.e. a : empty 0x0 double
>
> fun = @FunctionaName;
> for i=1:300
> % get the current frame
> currentFrame = mov(i).cdata;
> frame = currentFrame(:,:,3);
> % block processing on the image
> a = blockproc(frame,[8 8],fun,'BorderSize',[4 4]);
> result(i,:) = transpose(a(:)); end
>
>
> however if i do ...
> a=blkproc(frame,[8 8],[4 4] ,fun); it works fine. What am I missing
> here? I want my code to work in future versions of matlab thats why i
> want to use blockproc.
>
> Cheers, Gary

Hi Gary,

Could you show us the function signature of 'FunctionName'?