/** * Adds a pixels view of the specified sampled function f(x1,x2). * @param s1 the sampling of the variable x1; must be uniform. * @param s2 the sampling of the variable x2; must be uniform. * @param f array[n2][n1] of sampled function values f(x1,x2), where * n1 = f[0].length and n2 = f.length. * @return the pixels view. */ public PixelsView addPixels(Sampling s1, Sampling s2, float[][] f) { return addPixels(0,0,s1,s2,f); }
/** * Adds a pixels view of the specified sampled function f(x1,x2). * Assumes zero first sample values and unit sampling intervals. * @param f array[nc][n2][n1] of sampled function values f(x1,x2), * where n1 = f[0][0].length, n2 = f[0].length, and nc is the * number of components. * @return the pixels view. */ public PixelsView addPixels(float[][][] f) { return addPixels(0,0,f); }
/** * Adds a pixels view of the specified sampled function f(x1,x2). * Assumes zero first sample values and unit sampling intervals. * @param f array[n2][n1] of sampled function values f(x1,x2), where * n1 = f[0].length and n2 = f.length. * @return the pixels view. */ public PixelsView addPixels(float[][] f) { return addPixels(0,0,f); }
/** * Adds a pixels view of the specified sampled function f(x1,x2). * @param s1 the sampling of the variable x1; must be uniform. * @param s2 the sampling of the variable x2; must be uniform. * @param f array[nc][n2][n1] of sampled function values f(x1,x2), * where n1 = f[0][0].length, n2 = f[0].length, and nc is the * number of components. * @return the pixels view. */ public PixelsView addPixels(Sampling s1, Sampling s2, float[][][] f) { return addPixels(0,0,s1,s2,f); }
/** * Adds a pixels view of the specified sampled function f(x1,x2). * Assumes zero first sample values and unit sampling intervals. * @param f array[n2][n1] of sampled function values f(x1,x2), where * n1 = f[0].length and n2 = f.length. * @return the pixels view. */ public PixelsView addPixels(float[][] f) { return _panel.addPixels(f); }
/** * Adds a pixels view of the specified sampled function f(x1,x2). * @param s1 the sampling of the variable x1; must be uniform. * @param s2 the sampling of the variable x2; must be uniform. * @param f array[n2][n1] of sampled function values f(x1,x2), where * n1 = f[0].length and n2 = f.length. * @return the pixels view. */ public PixelsView addPixels(Sampling s1, Sampling s2, float[][] f) { return _panel.addPixels(s1,s2,f); }
cv1.setContours(50); final PixelsView pv2 = panel2.addPixels(array); final ContoursView cv2 = panel2.addContours(array);
PixelsView pv0 = panel.addPixels(0,0,f); pv0.setInterpolation(PixelsView.Interpolation.NEAREST); pv0.setColorModel(ColorMap.JET); pv0.set(f); PixelsView pv0b = panel.addPixels(0,0,s1,s2,f); pv0b.setInterpolation(PixelsView.Interpolation.LINEAR); pv0b.setColorModel(ColorMap.GRAY); pv0b.setPercentiles(0.0f,100.0f); PixelsView pv1 = panel.addPixels(0,1,f); pv1.setInterpolation(PixelsView.Interpolation.LINEAR); pv1.setColorModel(ColorMap.GRAY); pv1.set(f); PixelsView pv1b = panel.addPixels(0,1,s1,s2,f); pv1b.setInterpolation(PixelsView.Interpolation.NEAREST); pv1b.setColorModel(ColorMap.JET);
PixelsView pv0 = panel.addPixels(0,0,new float[][][]{f0,f1,f2}); pv0.setInterpolation(PixelsView.Interpolation.NEAREST); pv0.setClips(0,0.0f,2.0f); pv0.set(new float[][][]{f0,f1,f2}); // should have no effect! PixelsView pv0b = panel.addPixels(0,0,s1,s2,new float[][][]{f1,f0,f2}); pv0b.setInterpolation(PixelsView.Interpolation.LINEAR); pv0b.setClips(0,0.0f,2.0f); pv0b.setClips(2,0.0f,2.0f); PixelsView pv1 = panel.addPixels(0,1,new float[][][]{f1,f2,f0}); pv1.setInterpolation(PixelsView.Interpolation.LINEAR); pv1.setClips(0,0.0f,2.0f); pv1.setClips(2,0.0f,2.0f); PixelsView pv1b = panel.addPixels(0,1,s1,s2,new float[][][]{f1,f0,f2}); pv1b.setInterpolation(PixelsView.Interpolation.NEAREST); pv1b.setClips(0,0.0f,2.0f);