Package edu.harvard.hul.ois.ots.schemas.MIX

Examples of edu.harvard.hul.ois.ots.schemas.MIX.ReferenceBlackWhite


       
        BasicImageInformation bii = mix.getBasicImageInformation();
        BasicImageCharacteristics bic = bii.getBasicImageCharacteristics();
        PhotometricInterpretation phi = bic.getPhotometricInterpretation();
        List<ReferenceBlackWhite> rbwList = phi.getReferenceBlackWhites();
        ReferenceBlackWhite rbw = rbwList.get(0);
        List<Component> compList = rbw.getComponents();
        assertTrue (compList.size() == 3);
        Component comp = compList.get(0);
        assertEquals ("Y", comp.getComponentPhotometricInterpretation().toString ());
        double headroom = comp.getHeadroom().toRational().getDouble();
        assertTrue (headroom == 0.0);
View Full Code Here


        }
        catch (Exception e) {
            return;
        }
        try {
            ReferenceBlackWhite rbw = new ReferenceBlackWhite ();
            phi.addReferenceBlackWhite(rbw);
            for (int i = 0; i < 6; i += 2) {
                Component comp = new Component ();
                rbw.addComponent(comp);
                String interp;
                switch (i) {
                case 0:
                    if (rgb)
                        interp = "R";
View Full Code Here

TOP

Related Classes of edu.harvard.hul.ois.ots.schemas.MIX.ReferenceBlackWhite

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.