Probably the best way to do this is to add a function for channel selection. This function can be based on the code used in the color threshold algorithm. Basically use the Channel parameter to select from (R, G, B, H, S, V) color spaces (or others as we progress). There is a lot we can do to clean up this part of the code.
Probably the best way to do this is to add a function for channel selection. This function can be based on the code used in the color threshold algorithm. Basically use the Channel parameter to select from (R, G, B, H, S, V) color spaces (or others as we progress). There is a lot we can do to clean up this part of the code.