Table of Contents

NAME

QccIMGImageCubeClip, QccIMGImageCubeNormalize - clip and normalize image cube

SYNOPSIS

#include "libQccPack.h"

int QccIMGImageCubeClip(QccIMGImageCube *image_cube);
int QccIMGImageCubeNormalize(QccIMGImageCube *image_cube);

DESCRIPTION

This routine assumes that the range of permissible voxel values in image_cube is be 0 to 255, which is the common range for 8-bit images.

QccIMGImageCubeClip() calls QccIMGImageComponentClipPixel() for each voxel in image_cube, effectively ensuring that each pixel in image_cube is clipped to the 0-255 range.

QccIMGImageCubeNormalize() expands or contracts the dynamic range of the voxel values in image_cube to the 0-255 range. QccIMGImageCubeNormalize() maps the range image_cube->min_val to image_cube->max_val to the range 0-255 in a linear fashion. image_cube->min_val and image_cube->max_val must be set correctly via a call to QccIMGImageCubeSetMaxMin(3) prior to calling QccIMGImageCubeNormalize().

RETURN VALUES

These routines return 0 on success and 1 on error.

SEE ALSO

QccIMGImageComponentClipPixel(3) 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