Examples of Mix


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

        elem = new Element ("YCbCrCoefficients");
        elem.addContent ("10.0 20.0 30.0");
        imgElem.addContent (elem);
       
        XmlContentConverter conv = new XmlContentConverter ();
        Mix mix = (Mix) conv.toMix (imgElem,null);
        BasicDigitalObjectInformation bdoi = mix.getBasicDigitalObjectInformation();
        String byteOrder = bdoi.getByteOrder().toString ();
        assertEquals ("big endian", byteOrder);
       
        ImageCaptureMetadata icm = mix.getImageCaptureMetadata();
        DigitalCameraCapture dcc = icm.getDigitalCameraCapture();
        CameraCaptureSettings ccs = dcc.getCameraCaptureSettings();
        GPSData gps = ccs.getGPSData();
        String gpsVersionID = gps.getGpsVersionID().toString();
        assertEquals ("99.5", gpsVersionID);
       
        GPSDestLatitude dlat = gps.getGPSDestLatitude();
        double deg = dlat.getDegrees().toRational().getDouble();
        double min = dlat.getMinutes().toRational().getDouble();
        double sec = dlat.getSeconds().toRational().getDouble();
        assertTrue ((int) deg == 33);
        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();
View Full Code Here

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

    protected Colormap cm;
   
   
   
    protected MixModel () {
        mix = new Mix ();
        try {
             // Add the top-level elements to the mix element, to make life simpler.
            bdoi = new BasicDigitalObjectInformation();
            mix.setBasicDigitalObjectInformation(bdoi);
            bii = new BasicImageInformation ();
View Full Code Here

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

      FitsOutput fitsOut = fits.examine(input);
     
    XMLOutputter serializer = new XMLOutputter(Format.getPrettyFormat());
    serializer.output(fitsOut.getFitsXml(), System.out);
   
    Mix mix = (Mix)fitsOut.getStandardXmlContent();
    mix.setRoot(true);
       
    XMLOutputFactory xmlof = XMLOutputFactory.newInstance();
    XMLStreamWriter writer = xmlof.createXMLStreamWriter(System.out);
   
    mix.output(writer);

  }
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.