For grayscale images (U8 type) I use the IMAQ AutoB Threshold.vi (Method=Clustering) to determine the optimal threshold of an image (ie. some threshold value between 0 to 255) which I then parse to the IMAQ Threshold.vi which then applies this threshold level to the image.
However I can't seem to find an equivalent AutoThreshold VI for colour (RGB type) images, which is currently forcing me to manually set the colour thresholds to the IMAQ Color Threshold.vi.
The only VI that comes close is the IMAQ ColorHistogram.vi and I was just wondering if there was something else I had missed?
What I'm trying to do is isolate a blue vertical bar in a colour ultrasound image (where most of the image is either black or white). So I set the Red/Green range low (Min=0/Max=100) and the Blue range high (Min=200/Max=255). However I then got an image which had a purplish tinge to the background so the FIXED threshold ranges didn't isolate the blue vertical bar properly.
So I wanted some dynamic way of detecting the colours in the image and then set the thresholds appropriately so it would always isolate the vertical bar.
Chris