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!