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

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


        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);
       
        YCbCr ycbcr = phi.getYCbCr();
        YCbCrCoefficients ycbcrc = ycbcr.getYCbCrCoefficients();
        double lumaRed = ycbcrc.getLumaRed().toRational().getDouble ();
View Full Code Here


        }
        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";
                    else
                        interp = "Y";
                    break;
                case 2:
                    if (rgb)
                        interp = "G";
                    else
                        interp = "Cb";
                    break;
                default:
                    if (rgb)
                        interp = "B";
                    else
                        interp = "Cr";
                    break;
                }
                comp.setComponentPhotometricInterpretation(interp);
                comp.setHeadroom (new Rational ((int) (rbwVal[i] * 100), 100));
                comp.setFootroom (new Rational ((int) (rbwVal[i+1] * 100), 100));
            }
        }
        catch (XmlContentException e) {}
    }
View Full Code Here

TOP

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

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.