I am interested in using the Process/Math/Macro capability, but I am not quite understanding how the syntax works for the equation that the command uses.
For instance, if I want to segment an image into three levels of gray (20,170,255), I thought that I could write
if(v<50) v=20;else;if(v>200) v=255;else;if(v<200 || v>50) v=170);
however this just makes my entire image = 170.
This does work
if(v<50) v=20;else;if(v>200) v=255;
so it’s the || (AND) function that isn’t working as I expected. Any thoughts?