dyn_thresh 动态阈值分割
The condition for LightDark = 'light' is:g_o>=g_t+offset ,light就提取相对参考图更亮的区域。
For LightDark='dark' ,the conditon is: g_o<=g_t-offset ,dark就提取相对参考图更暗的区域
For LightDark='equal',g_t-offset<=g_o<=g_t+offset,选取和参考图差不多的区域。
Withdyn_threshold, contours of an object can be extracted, where the objects' size (diameter) is determined by the mask size of the lowpass filter and the amplitude of the objects' edges:The larger
the mask size is chosen, the larger the found regions become. As a rule of thumb, the mask size shouldbe about twice the diameter of the objects to be extracted. It is important not to set the parameter Offset to zero because in this case too many small regions will be found (noise). Values between 5 and 40 are a useful choice. The largerOffset is chosen, the smaller the extracted regions become. All points of the input image fulfilling the above condition are stored jointly in one region. If necessary, the connected components can be obtained by callingconnection.