Package jjil.algorithm

Examples of jjil.algorithm.Gray8RectStretch


            Gray8Rect gr = new Gray8Rect(r, Byte.MAX_VALUE);
            gr.push(imMask);
            imMask = (Gray8Image) gr.getFront();
        }
        // Stretch imMask to original image size; this is the result
        Gray8RectStretch grs = new Gray8RectStretch(image.getWidth(), image.getHeight());
        grs.push(imMask);
        super.setOutput(grs.getFront());
    }
View Full Code Here


        Sequence seq = new Sequence(crop);
        seq.add(new Gray8Reduce(1,cHeightReduce));
        int cReducedHeight = cCroppedHeight / cHeightReduce;
        // we stretch the cropped image so cInputWidth becomes cTargetWidth. This means
        // cTotalWidth must become cTargetWidth * cTotalWidth / cInputWidth
        Gray8RectStretch stretch = new Gray8RectStretch(
                cTargetWidth * cTotalWidth / cInputWidth, cReducedHeight);
        seq.add(stretch);
        seq.add(new Gray8HistEq());
        seq.push(imageInput);
        return seq.getFront();
View Full Code Here

TOP

Related Classes of jjil.algorithm.Gray8RectStretch

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.