My image having pixel values between 0 to 8(classified image). The following code is used to read the colors of the image. Here i want know the pixel value of the specific color.
Band band = ds.GetRasterBand(1); ColorTable ct = band.GetRasterColorTable(); for (int i = 0; i < ct.GetCount(); i++) { ColorEntry ce = ct.GetColorEntry(i); Color cr1 = Color.FromArgb(ce.c4, ce.c1, ce.c2, ce.c3); } suppose here i am getting yellow, brown,blue,.......i want to know pixel value of the image where yellow color is located, like this brown,blue etc............... -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/how-to-get-pixel-vlaue-of-specific-color-tp5212348p5212348.html Sent from the GDAL - Dev mailing list archive at Nabble.com. _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev