/usr/include/CGAL/ImageIO/mincio.h is in libcgal-dev 4.11-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | // Copyright (c) 2005-2008 ASCLEPIOS Project, INRIA Sophia-Antipolis (France)
// All rights reserved.
//
// This file is part of the ImageIO Library, and as been adapted for
// CGAL (www.cgal.org).
// You can redistribute it and/or modify it under the terms of the
// GNU Lesser General Public License as published by the Free Software Foundation;
// either version 3 of the License, or (at your option) any later version.
//
// Licensees holding a valid commercial license may use this file in
// accordance with the commercial license agreement provided with the software.
//
// These files are provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
//
// $URL$
// $Id$
//
//
// Author(s) : ASCLEPIOS Project (INRIA Sophia-Antipolis), Laurent Rineau
#ifndef MINCIO_H
#define MINCIO_H
#ifdef MINC_FILES
#include <CGAL/ImageIO.h>
#include <minc.h>
/** read an image from a minc file
@param im image structure
@param name image file name
@param startx returned X coordinate of origin vertor
@param starty returned Y coordinate of origin vertor
@param startz returned Z coordinate of origin vertor
@param stepx returned X coordinate of step vertor
@param stepy returned Y coordinate of step vertor
@param stepz returned Z coordinate of step vertor
@param Xcosine 3 dimensional array containing X axis cosine directions
@param Ycosine 3 dimensional array containing Y axis cosine directions
@param Zcosine 3 dimensional array containing Z axis cosine directions
@return a negative value in case of failure */
int readMincHeader(_image *im, const char* name,
double *startx, double *starty, double *startz,
double *stepx, double *stepy, double *stepz,
double *Xcosine, double *Ycosine, double *Zcosine);
/** write an image in a minc file
@param im image structure
@param name image file name
@param sourceName original minc file name
@param startx origin X coordinate
@param starty origin Y coordinate
@param startz origin Z coordinate
@param stepx returned X coordinate of step vertor
@param stepy returned Y coordinate of step vertor
@param stepz returned Z coordinate of step vertor
@param Xcosine 3 dimensional array containing X axis cosine directions
@param Ycosine 3 dimensional array containing Y axis cosine directions
@param Zcosine 3 dimensional array containing Z axis cosine directions
@param range 2 dimensional array containing min an max image intensity
@return a negative value in case of failure */
int writeMincFile( const _image* im, const char *name, const char *sourceName,
double startx, double starty, double startz,
double stepx, double stepy, double stepz,
const double *Xcosine, const double *Ycosine,
const double *Zcosine, const double *range );
#endif
#ifdef CGAL_HEADER_ONLY
#include <CGAL/ImageIO/mincio_impl.h>
#endif // CGAL_HEADER_ONLY
#endif
|