8000 GitHub - rdodesigns/camtiff: TIFF + JSON in one file. Can be read by any image program that supports TIFFs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rdodesigns/camtiff

Repository files navigation

Introduction

Write TIFF files with embedded metadata.

Programs

LabVIEW VIs to write CamTIFF files and MATLAB scripts to read them can be found in the programs folder.

Compiling

Linux

For Linux, libTIFF must be an installed library that is in the normal library search path. This is left up to the user to determine how to install, as it may be done in many different ways (package managers, source). Once libTIFF is installed in a standard location, run ./compile to compile tiff_example_include.c and ./compile lib to compile tiff_example_dyn.c.

Mac

For Mac, first make sure MacPorts is installed. Then run ./compile to compile tiff_example_include.c and ./compile lib to compile tiff_example_dyn.c. This shell script will automatically install libTIFF from MacPorts if it is not already installed.

Windows

Use the provided Microsoft Visual Studio 2010 project files (camtiff.sln) to open and compile camtiff. Note that warnings about overlapping namespaces occur if camtiff is compiled as the debug target. These warnings do not occur if camtiff is compiled as a release target.

libTIFF 3.9.5, which is a required library, is included in the source, and can be compiled with the command nmake /f Makefile.vc lib inside the libtiff directory. It is important to know that the nmake.opt included here has been modified to use the /MT linker option instead of /MD, which allows libtiff and camtiff to run without the MSVCR100.dll installed. If you get an error when using camtiff that complains about msvcr100.dll not being installed or errors similar to

MSVCRT.lib(MSVCR100.dll) : error LNK2005: _malloc already defined in LIBCMT.lib(malloc.obj)

then recompile libtiff and make sure that the /MT option is used instead of /MD.

For simplicity, a 32-bit version of libtiff.dll is included inside the libtiff directory. It may be possible to use the provided DLL to compile camtiff, however if you have problems please recompile libtiff.

The official instructions for compiling libTIFF on Windows can be found here, although the only part of the library that needs to be compiled is the dll itself, which can be done with nmake /f Makefile.vc lib. Again, make sure that the nmake.opt file uses the /MT linker option instead of /MD.

Note that nmake may be most easily accessed through the VS2010 command prompt program, and some errors may be produced if you compile the libtiff tools along with the libtiff library files.

License

Copyright (C) 2011 Ryan Orendorff

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

TIFF + JSON in one file. Can be read by any image program that supports TIFFs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0