/** * Sets the percentiles used to compute clips for this group. The default * percentiles are 0 and 100, which correspond to the minimum and maximum * array values. * <p> * Calling this method enables the computation of clips from percentiles. * Any clip values specified or computed previously will be forgotten. * @param percMin the percentile corresponding to clipMin. * @param percMax the percentile corresponding to clipMax. */ public void setPercentiles(double percMin, double percMax) { _clips.setPercentiles(percMin,percMax); double clipMin = _clips.getClipMin(); double clipMax = _clips.getClipMax(); //System.out.println("clip min="+clipMin+" max="+clipMax); for (ImagePanel ip:_ipList) ip.setClips(clipMin,clipMax); _colorMap.setValueRange(clipMin,clipMax); }
/** * Sets the percentiles used to compute clips for 1st image panels in * this group. The default percentiles are 0 and 100, which correspond * to the minimum and maximum array values. * <p> * Calling this method enables the computation of clips from percentiles. * Any clip values specified or computed previously will be forgotten. * @param percMin the percentile corresponding to clipMin. * @param percMax the percentile corresponding to clipMax. */ public void setPercentiles1(double percMin, double percMax) { _clips1.setPercentiles(percMin,percMax); double clipMin = _clips1.getClipMin(); double clipMax = _clips1.getClipMax(); //System.out.println("clip min="+clipMin+" max="+clipMax); for (ImagePanel ip:_ip1List) ip.setClips(clipMin,clipMax); _colorMap1.setValueRange(clipMin,clipMax); }
/** * Sets the percentiles used to compute clips for 2nd image panels in * this group. The default percentiles are 0 and 100, which correspond * to the minimum and maximum array values. * <p> * Calling this method enables the computation of clips from percentiles. * Any clip values specified or computed previously will be forgotten. * @param percMin the percentile corresponding to clipMin. * @param percMax the percentile corresponding to clipMax. */ public void setPercentiles2(double percMin, double percMax) { _clips2.setPercentiles(percMin,percMax); double clipMin = _clips2.getClipMin(); double clipMax = _clips2.getClipMax(); //System.out.println("clip min="+clipMin+" max="+clipMax); for (ImagePanel ip:_ip2List) ip.setClips(clipMin,clipMax); _colorMap2.setValueRange(clipMin,clipMax); }
/** * Sets the clips for this group. Image panels in this group map array * values to bytes, which are then used as indices into a specified color * model. This mapping from array values to byte indices is linear, and * so depends on only these two clip values. The clip minimum value * corresponds to byte index 0, and the clip maximum value corresponds to * byte index 255. Sample values outside of the range [clipMin,clipMax] * are clipped to lie inside this range. * <p> * Calling this method disables the computation of clips from percentiles. * Any clip values computed or specified previously will be forgotten. * @param clipMin the sample value corresponding to color model index 0. * @param clipMax the sample value corresponding to color model index 255. */ public void setClips(double clipMin, double clipMax) { _clips.setClips(clipMin,clipMax); clipMin = _clips.getClipMin(); clipMax = _clips.getClipMax(); for (ImagePanel ip:_ipList) ip.setClips(clipMin,clipMax); _colorMap.setValueRange(clipMin,clipMax); }
/** * Sets the clips for 2nd image panels in this group. Image panels in * this group map array values to bytes, which are then used as indices * into a specified color model. This mapping from array values to byte * indices is linear, and so depends on only these two clip values. The * clip minimum value corresponds to byte index 0, and the clip maximum * value corresponds to byte index 255. Sample values outside of the * range [clipMin,clipMax] are clipped to lie inside this range. * <p> * Calling this method disables the computation of clips from percentiles. * Any clip values computed or specified previously will be forgotten. * @param clipMin the sample value corresponding to color model index 0. * @param clipMax the sample value corresponding to color model index 255. */ public void setClips2(double clipMin, double clipMax) { _clips2.setClips(clipMin,clipMax); clipMin = _clips2.getClipMin(); clipMax = _clips2.getClipMax(); for (ImagePanel ip:_ip2List) ip.setClips(clipMin,clipMax); _colorMap2.setValueRange(clipMin,clipMax); }
/** * Sets the clips for 1st image panels in this group. Image panels in * this group map array values to bytes, which are then used as indices * into a specified color model. This mapping from array values to byte * indices is linear, and so depends on only these two clip values. The * clip minimum value corresponds to byte index 0, and the clip maximum * value corresponds to byte index 255. Sample values outside of the * range [clipMin,clipMax] are clipped to lie inside this range. * <p> * Calling this method disables the computation of clips from percentiles. * Any clip values computed or specified previously will be forgotten. * @param clipMin the sample value corresponding to color model index 0. * @param clipMax the sample value corresponding to color model index 255. */ public void setClips1(double clipMin, double clipMax) { _clips1.setClips(clipMin,clipMax); clipMin = _clips1.getClipMin(); clipMax = _clips1.getClipMax(); for (ImagePanel ip:_ip1List) ip.setClips(clipMin,clipMax); _colorMap1.setValueRange(clipMin,clipMax); }