Package jsky.image

Examples of jsky.image.ImageProcessor


     * Construct an image display widget with the given name.
     *
     * @param name name to associate with this instance
     */
    public DivaGraphicsImageDisplay(String name) {
        this(new ImageProcessor(), name);
    }
View Full Code Here


        this.title = title;
        this.filename = new File(filename).getAbsolutePath();
        this.url = url;
        this.scale = imageDisplay.getScale();

        ImageProcessor imageProcessor = imageDisplay.getImageProcessor();
        this.cmap = imageProcessor.getColorLookupTableName();
        this.itt = imageProcessor.getIntensityLookupTableName();
        this.hcut = imageProcessor.getHighCut();
        this.lcut = imageProcessor.getLowCut();
        this.userSetCutLevels = imageProcessor.isUserSetCutLevels();
        this.scaleAlg = imageProcessor.getScaleAlgorithm();

        _initAction();
    }
View Full Code Here

     */
    public void stateChanged(ChangeEvent ce) {
        ImageChangeEvent e = (ImageChangeEvent) ce;
        if (e.isNewImage() && !e.isBefore()) {
            DivaMainImageDisplay imageDisplay = (DivaMainImageDisplay) e.getSource();
            ImageProcessor imageProcessor = imageDisplay.getImageProcessor();
            imageDisplay.removeChangeListener(this);

            // restore image processor settings
            imageProcessor.setColorLookupTable(cmap);
            imageProcessor.setIntensityLookupTable(itt);
            imageProcessor.setScaleAlgorithm(scaleAlg);
            imageProcessor.setCutLevels(lcut, hcut, userSetCutLevels);
            imageDisplay.setScale(scale);

            imageProcessor.update();
        }
    }
View Full Code Here

TOP

Related Classes of jsky.image.ImageProcessor

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.