static IBWImage iBWImageFromFloats(int w, float[] pixels) { ret new IBWImage { int h = l(pixels)/w; public int getWidth() { ret w; } public int getHeight() { ret h; } public float getFloatPixel(int x, int y) { ret pixels[y*w+x]; } }; }