Table of Contents

NAME

QccIMGImageCubeCopy, QccIMGImageCubeAdd, QccIMGImageCubeSubtract - copy and arithmetic operations on image cubes

SYNOPSIS

#include "libQccPack.h"

int QccIMGImageCubeCopy(QccIMGImageCube *image_cube1, const QccIMGImageCube *image_cube2);
int QccIMGImageCubeAdd(const QccIMGImageCube *image_cube1, const QccIMGImageCube *image_cube2, QccIMGImageCube *image_cube3);
int QccIMGImageCubeSubtract(const QccIMGImageCube *image_cube1, const QccIMGImageCube *image_cube2, QccIMGImageCube *image_cube3);

DESCRIPTION

QccIMGImageCubeCopy() copies the contents of image_cube2 into image_cube1. If image_cube1 has not yet been allocated, it is allocated to the same size as image_cube2 with a call to QccIMGImageCubeAlloc(3) . If image_cube1 is allocated, it must be the same size as image_cube2.

QccIMGImageCubeAdd() adds image_cube1 to image_cube2, voxel by voxel, returning the result in image_cube3. image_cube3 must be allocated prior to calling QccIMGImageCubeAdd(), and image_cube1, image_cube2, and image_cube3 must all be the same size.

QccIMGImageCubeSubtract() subtracts image_cube2 from image_cube1, voxel by voxel, returning the result in image_cube3. image_cube3 must be allocated prior to calling QccIMGImageCubeSubtract(), and image_cube1, image_cube2, and image_cube3 must all be the same size.

RETURN VALUES

These routines return 0 on success and 1 on error.

SEE ALSO

QccIMGImageCube(3) , QccPackIMG(3) , QccPack(3)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads