73747576777879
* @see ca.eandb.jmist.framework.display.visualizer.ColorVisualizer#apply(ca.eandb.jmist.framework.color.Color) */ @Override public RGB visualize(Color color) { double value = (color.getValue(channel) - range.minimum()) / range.length(); return new RGB(value, value, value); }
136137138139140141142143144145146
} } } } if (rgbPixelType != null) { RGB rgb = color.toRGB(); for (int y = y0; y < y0 + h; y++) { for (int x = x0; x < x0 + w; x++) { image.setRGB(x, y, rgb); } }
158159160161162163164165166
float value = (float) pixel.getValue(i); image.setFloat(x, y, name, value); } } if (rgbPixelType != null) { RGB rgb = pixel.toRGB(); image.setRGB(x, y, rgb); } }
186187188189190191192193194195196
} } if (rgbPixelType != null) { for (int y = 0; y < h; y++) { for (int x = 0; x < w; x++) { RGB rgb = pixels.getPixel(x, y).toRGB(); image.setRGB(x0 + x, y0 + y, rgb); } } } }