Examples of ShortMatrixSignal


Examples of com.marimon.image.framework.datamodel.ShortMatrixSignal

                Point2D point = samp.getPoint();
                samples[i][j] = new ShortSample2D(point, new ShortSampleValue(
                        samp.getValue().shortValue()));
            }
        }
        return new ShortMatrixSignal(samples);
    }
View Full Code Here

Examples of com.marimon.image.framework.datamodel.ShortMatrixSignal

                        .random() * 255));
                Point2D point = new Point2D(i, j);
                result[i][j] = new ShortSample2D(point, value);
            }
        }
        return new ShortMatrixSignal(result);
    }
View Full Code Here

Examples of com.marimon.image.framework.datamodel.ShortMatrixSignal

    @Test
    @Ignore
    public void testEncodeNoise() throws ImageFormatException, IOException {

        ShortMatrixSignal image = (ShortMatrixSignal) MatrixSignalFactory
                .getInstance().getByteNoise(300, 200);

        JPEGImageWriter writer = new JPEGImageWriter(image);
        writer.writeToFile("./src/gen/noise.jpg");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.