/** * Returns a new simple frame with an image panel group. * @param f a 3D array. * @return the simple frame. */ public static SimpleFrame asImagePanels(float[][][] f) { return asImagePanels(new ImagePanelGroup(f)); }
/** * Returns a new simple frame with an image panel group. * @param s1 sampling in the 1st dimension (Z). * @param s2 sampling in the 2nd dimension (Y). * @param s3 sampling in the 3rd dimension (X). * @param f a 3D array. * @return the simple frame. */ public static SimpleFrame asImagePanels( Sampling s1, Sampling s2, Sampling s3, float[][][] f) { return asImagePanels(new ImagePanelGroup(s1,s2,s3,f)); }
/** * Adds an image panel group to a simple frame from given samplings and * a 3D array. * @param s1 sampling in the 1st dimension (Z). * @param s2 sampling in the 2nd dimension (Y). * @param s3 sampling in the 3rd dimension (X). * @param f a 3D array. * @return the image panel group. */ public ImagePanelGroup addImagePanels( Sampling s1, Sampling s2, Sampling s3, float[][][] f) { return addImagePanels(new ImagePanelGroup(s1,s2,s3,f)); }
float k3 = 4.0f*FLT_PI*(float)d3; float[][][] f = sin(rampfloat(0.0f,k1,k2,k3,n1,n2,n3)); final ImagePanelGroup ipg = new ImagePanelGroup(s1,s2,s3,f); ipg.setPercentiles(1,99); World world = new World();