ComputationalRadiationPhysics / imresh

Shrink-Wrap Phase Reconstruction Algorithm
MIT License
3 stars 2 forks source link

First state with complete lib usage #22

Closed Ferruck closed 8 years ago

Ferruck commented 8 years ago

I would like to merge this state into dev as it's the first one which offers the possibility to use the library from the start to the end, e.g. something like

// Initialize the library
imresh::io::taskQueueInit( );
// Read a file
auto file = imresh::io::readInFuncs::readPNG( "../examples/imresh.png" );
imresh::libs::diffractionIntensity( file.first, file.second );
// Call shrink-wrap on it
imresh::io::addTask( file.first,
                      file.second,
                      imresh::io::writeOutFuncs::writeOutPNG,
                      "out.png" );
// Deinitialize the library
imresh::io::taskQueueDeinit( );

I'd like to merge this into master afterwards as well and tag it as a new release.