Main Page | Class List | File List | Class Members | File Members

byteimg2disk.c File Reference

Writing single-byte images to external SADIE files. More...

#include <sadie.h>
#include "sadie_byte.h"

Defines

#define NEEDSWAP   1

Functions

int sad_byte_header_write (IMAGE_BYTE *buf, FILE *fp)
 Write a byte image header structure to a disk file (or equivalent).


Detailed Description

Writing single-byte images to external SADIE files.

The IMG2DSK function in libsadie can write external data in SADIE format with the value of each pixel encoded in a single byte, but it cannot handle the similar internal representation, the IMAGE_BYTE structure, so something more specialized is needed.

Author:
University of Arizona Digital Image Analysis Lab
Date:
2004
Version:
Id
byteimg2disk.c,v 1.4 2004/08/06 22:47:11 mmunro Exp

Function Documentation

int sad_byte_header_write IMAGE_BYTE buf,
FILE *  fp
 

Write a byte image header structure to a disk file (or equivalent).

We play safe by writing each member of the structure independently, in case there are any alignment issues when trying to write the structure as a whole.

Parameters:
*buf points at the buffer containing the image header.
*fp file pointer to something already open for writing.
Returns:
An error code on failure, 0 on success.


Generated on Sat Dec 4 17:12:20 2004 for trees by  doxygen 1.3.9.1