Examples of PhotometricInterpretation


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

        assertTrue ((int) min == 24);
        assertTrue ((int) sec == 51);
       
        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);
       
        YCbCr ycbcr = phi.getYCbCr();
        YCbCrCoefficients ycbcrc = ycbcr.getYCbCrCoefficients();
        double lumaRed = ycbcrc.getLumaRed().toRational().getDouble ();
        assertTrue (lumaRed == 10.0);
        double lumaGreen = ycbcrc.getLumaGreen().toRational().getDouble ();
        assertTrue (lumaGreen == 20.0);
View Full Code Here

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

            mix.setBasicDigitalObjectInformation(bdoi);
            bii = new BasicImageInformation ();
            mix.setBasicImageInformation (bii);
            bic = new BasicImageCharacteristics ();
            bii.setBasicImageCharacteristics (bic);
            phi = new PhotometricInterpretation ();
            bic.setPhotometricInterpetation(phi);
            icm = new ImageCaptureMetadata ();
            mix.setImageCaptureMetadata(icm);
            iam = new ImageAssessmentMetadata();
            mix.setImageAssessmentMetadata(iam);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.