Ignore:
Timestamp:
06/07/10 15:02:27 (10 years ago)
Author:
melissa
Message:

Updated bf-cpp to compile with latest ome.xml.* and loci.formats.meta.* changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/native/bf-cpp/source/minimum_writer.cpp

    r5682 r6496  
    5454using jace::proxy::loci::formats::MetadataTools; 
    5555using jace::proxy::loci::formats::meta::IMetadata; 
     56#include "ome-xml.h" 
     57using jace::proxy::ome::xml::model::enums::DimensionOrder; 
     58using jace::proxy::ome::xml::model::enums::PixelType; 
     59using jace::proxy::ome::xml::model::primitives::PositiveInteger; 
    5660 
    5761#include <iostream> 
     
    118122  IMetadata meta = MetadataTools::createOMEXMLMetadata(); 
    119123  meta.createRoot(); 
    120   meta.setPixelsBigEndian(Boolean(1), 0, 0); 
    121   meta.setPixelsDimensionOrder("XYZCT", 0, 0); 
    122   meta.setPixelsPixelType(FormatTools::getPixelTypeString(pixelType), 0, 0); 
    123   meta.setPixelsSizeX(Integer(w), 0, 0); 
    124   meta.setPixelsSizeY(Integer(h), 0, 0); 
    125   meta.setPixelsSizeZ(Integer(1), 0, 0); 
    126   meta.setPixelsSizeC(Integer(1), 0, 0); 
    127   meta.setPixelsSizeT(Integer(1), 0, 0); 
    128   meta.setLogicalChannelSamplesPerPixel(Integer(1), 0, 0); 
     124  meta.setImageID("Image:0", 0); 
     125  meta.setPixelsID("Pixels:0", 0); 
     126  meta.setPixelsBinDataBigEndian(Boolean(1), 0, 0); 
     127  meta.setPixelsDimensionOrder(DimensionOrder::XYZCT(), 0); 
     128  meta.setPixelsType( 
     129    PixelType::fromString(FormatTools::getPixelTypeString(pixelType)), 0); 
     130  meta.setPixelsSizeX(PositiveInteger(Integer(w)), 0); 
     131  meta.setPixelsSizeY(PositiveInteger(Integer(h)), 0); 
     132  meta.setPixelsSizeZ(PositiveInteger(Integer(1)), 0); 
     133  meta.setPixelsSizeC(PositiveInteger(Integer(1)), 0); 
     134  meta.setPixelsSizeT(PositiveInteger(Integer(1)), 0); 
     135  meta.setChannelID("Channel:0:0", 0, 0); 
     136  meta.setChannelSamplesPerPixel(Integer(1), 0, 0); 
    129137 
    130138  // write image plane to disk 
Note: See TracChangeset for help on using the changeset viewer.