Apply a threshold on a structure
显示 更早的评论
Hi, I have 3 components which are struct type and I would like to apply a threshold using wthresh. My problem is that wthresh function doesn't accept a struct in input parameter. How can I do that ? Thanks for your answers
1 个评论
Guillaume
2016-6-7
A structure is simply a container for several variables (the fields of the structure). 'Thresholding a structure' does not mean anything. So, you need to be clearer about what you want to do.
You may want to threshold all the fields of the structure, or just one (which one?).
回答(1 个)
Walter Roberson
2016-6-6
0 个投票
structfun(), probably with 'Uniform', 0
2 个评论
Aurore Lanoix
2016-6-7
Walter Roberson
2016-6-7
structfun(@(field) wthresh(field, 's', T), Component1, 'Uniform', 0)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Thresholding 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!