Gemstones like precious opal are beautiful to look at and deceivingly complex. As you look at such gems from different angles ...
Threshold-based segmentation by selecting a target color vector in one of six color spaces (RGB, HSV, CIELAB, CIEXYZ, YCbCr or YIQ (NTSC)) and isolating pixels within a user-specified tolerance.