protected final void computeMinMaxFromStrip(DataType dataType,int numStrips,int size,int width,int height) throws IOException {
  if (iStream != null) {
    iStream.close();
  }
  iStream=new FileImageInputStream(new File(dataFilePath));
  iStream.seek(imageStart);
  minimum=new double[samplesPerPixel];
  Arrays.fill(minimum,Double.MAX_VALUE);
  maximum=new double[samplesPerPixel];
  Arrays.fill(maximum,-Double.MAX_VALUE);
  byte[] bbArray=new byte[size];
  ByteBuffer bbuf=ByteBuffer.wrap(bbArray);
  bbuf.order(byteOrder);
  bbuf.rewind();
  for (int i=0; i < numStrips; ++i) {
    int h=Math.min(rasterLength - height * i,height);
    int len=h * width * bytesPerSample;
    iStream.read(bbArray,0,len);
    bbuf.rewind();
    computeMinMax(bbuf);
  }
}

protected final void computeMinMaxFromStrip ( DataType dataType , int numStrips , int size , int width , int height ) throws IOException { if ( iStream != null ) { iStream . close ( ) ; } iStream = new FileImageInputStream ( new File ( dataFilePath ) ) ; iStream . seek ( imageStart ) ; minimum = new double [ samplesPerPixel ] ; Arrays . fill ( minimum , Double . MAX_VALUE ) ; maximum = new double [ samplesPerPixel ] ; Arrays . fill ( maximum , - Double . MAX_VALUE ) ; byte [ ] bbArray = new byte [ size ] ; ByteBuffer bbuf = ByteBuffer . wrap ( bbArray ) ; bbuf . order ( byteOrder ) ; bbuf . rewind ( ) ; for ( int i = 0 ; i < numStrips ; ++ i ) { int h = Math . min ( rasterLength - height * i , height ) ; int len = h * width * bytesPerSample ; iStream . read ( bbArray , 0 , len ) ; bbuf . rewind ( ) ; computeMinMax ( bbuf ) ; } }
compute minimum and maximum .
