How to export color thresholder tool values?

4 views (last 30 days)
I am trying to use the color thresholder tool in an application where several images are inputted. , however it is only possible to export either the singular masked image or a function that will mask any image that is then put into the function.
Is it possible to export just the threshold values of the mask? They appear in the exported function as the following, but I would like to be able to use them without an external function. Thanks!
% Define thresholds for channel 1 based on histogram settings
channel1Min = 0.98;
channel1Max = 0.033;

Answers (1)

Image Analyst
Image Analyst on 8 Aug 2022
Just export the function and then copy the threshold values from the exported function to your own custom code.

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!