How to change Threshold Colors's Thresholding Method by Macro

Back Ground


I want to change a Thresholding Method in Threshold Color by Macro.

I found some topics related to it, but it is just for “Threshold” in gray scale image, not for “Color threshold”. (Change Threshold method selected in the Threshold window from a macro)

Is there any way to change the Thresholding Method in Threshold Colors by Macro?

Sample image and/or code

Take this images for example , I want to change the area enclosed by the red line in the second picture automatically with a macro

What I do

I started to Macro Record, but the change of Thresholding Method was not reflected.

Thank you very much in advance for your help!