How can i use roifilt2 with a function that has more than 1 parameter?

3 views (last 30 days)
I need to use roifilt2 with a function that needs more than one parameter apart from the input image. i.e
I=imread('my_image');
BW=I>10;
fun=@chenvese;
roifilt2(I,BW,fun);
The function chenvese(File Exchange)that performs active contour without edges, is defined as
seg= chenvese(I,mask,num_iter,mu, method)
How can i pass these parameters through roifilt2? I would prefer this option than setting default values at the function, if no input is given.
Thanks for any ideas.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!