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
|
// 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).
//
// $URL: https://github.com/CGAL/cgal/blob/v6.1.1/CGAL_ImageIO/include/CGAL/ImageIO/analyze.h $
// $Id: include/CGAL/ImageIO/analyze.h 08b27d3db14 $
// SPDX-License-Identifier: LGPL-3.0-or-later
//
//
// Author(s) : ASCLEPIOS Project (INRIA Sophia-Antipolis), Laurent Rineau
#ifndef ANALYZE_H
#define ANALYZE_H
#ifdef _MSC_VER
#pragma warning ( disable : 4068 4786 4081 4267 )
#endif
#include <CGAL/ImageIO.h>
/* read analyze format header
return:
-1: error
0: success
*/
int readAnalyzeHeader(const char* name,_image *im);
int testAnalyzeHeader(char *magic,const char *name);
/** creates an return the file format structure associated with the Analyze file format */
PTRIMAGE_FORMAT createAnalyzeFormat();
/*
return:
-1: error
1: success
*/
int writeAnalyze( char *basename, _image* im ) ;
/*
return:
-1: error
1: success
*/
int writeAnalyzeHeader( const _image* im ) ;
/*
return:
-1: error
1: success
*/
int writeAnalyzeData( const _image* im ) ;
#ifdef CGAL_HEADER_ONLY
#include <CGAL/ImageIO/analyze_impl.h>
#endif // CGAL_HEADER_ONLY
#endif
|