Commit f3b1d22c authored by Manuel Günther's avatar Manuel Günther
Browse files

Added License file

parent e97695e9
Copyright (c) 2016, Manuel Gunther - Regents of the University of Colorado on behalf of the University of Colorado Colorado Springs.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
......@@ -20,11 +20,13 @@ For this, is uses the CMake_ interface, and a home-developed ``FindBob.cmake`` f
It relies on the python interface to download and install Bob_.
More information about the Bob installation can be found on its `webpage <http://www.idiap.ch/software/bob>`_.
This package is licensed under a BSD-3 license with a copyright of the Regents of the University of Colorado on behalf of the University of Colorado Colorado Springs.
Please see LICENSE file for details.
Building this example
---------------------
As the exmaple requires some Bob_ packages to be installed, we first run one of the ways to install Bob_, i.e., using `buildout <https://github.com/idiap/bob/wiki/Installation#using-zcbuildout-for-production>`_.
As the example requires some Bob_ packages to be installed, we first run one of the ways to install Bob_, i.e., using `buildout <https://github.com/idiap/bob/wiki/Installation#using-zcbuildout-for-production>`_.
For that, simply go to the main directory of this package and call::
$ python bootstrap-buildout.py
......
#include <bob.extension/documentation.h>
#include <bob.io.base/HDF5File.h>
#include <bob.io.image/png.h>
#include <bob.io.base/HDF5File.h>
#include <iostream>
int main(int argc, const char** argv){
// Load the image using the C++ interface of bob.io.image
blitz::Array<uint8_t, 3> image = bob::io::image::read_png<uint8_t,3>("test.png");
// Save the image as HDF5 using the C++ interface of bob.io.base
bob::io::base::HDF5File h("test.hdf5", 'w');
h.setArray("Test", image);
// Done.
std::cout << "Successfully converted test.png into test.hdf5" << std::endl;
}
def test_package():
# This function tests that the example actually runs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment