Using a user defined fucntion with blockproc
4 views (last 30 days)
Show older comments
Is there a mistake in my syntax using blocproc:
Binary1=blockproc(OrigImage,[tileRowSize, tileColSize],@(x) myOperation(hObject, eventdata, handles, x.data));
the function I use "myOperation" is as follows:
function myOperation(hObject, eventdata, handles,tile)
[thresh1, thresh2] = Threshold(hObject, eventdata, handles,tile); %my personal thresholding function
%Create Binary Image
size(tile)
ix=tile;
level=thresh2
ix(ix<level)=0;
ix(ix>level+1)=1;
Im getting
Binary1 =
[]
0 Comments
Answers (2)
Image Analyst
on 15 Jan 2015
I don't have time to look at it now, but in the meantime, see my blockproc demos, attached.
0 Comments
Iain
on 15 Jan 2015
What does your "myfunction" function output? It looks like it's not producing any output.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!