Package com.marimon.image.framework.datamodel

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


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

    @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

Related Classes of com.marimon.image.framework.datamodel.ShortMatrixSignal

Copyright © 2018 www.massapicom. 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.