/** * Returns the pixel intensity value of the pixel at a given offset within * the backing buffer. This method takes into account bytes per pixel. * * @param offset The relative offset (taking into account the number of * bytes per pixel) within the backing buffer. * @return The intensity value. */ public double getPixelValue(int offset) { return getPixelValueDirect(offset * bytesPerPixel); }
/** * Returns the pixel intensity value of the pixel at a given offset within * the backing buffer. This method does not take into account bytes per * pixel. * * @param offset The absolute offset within the backing buffer. * @return The intensity value. */ public double getPixelValueDirect(int offset) { offset = getReorderedPixelOffset(data.capacity(), offset, rowSize); return super.getPixelValueDirect(offset); }
return data.getPixelValueDirect( bytesPerPixel * (sizeX * x2 + x1)); case PlaneDef.XZ: return data.getPixelValueDirect( bytesPerPixel return data.getPixelValueDirect( bytesPerPixel
discreteValue = qs.quantize( data.getPixelValueDirect(pix * bytesPerPixel)); else discreteValue =
discreteValue = qs.quantize( data.getPixelValueDirect(pix * bytesPerPixel)); else discreteValue =