Table of Contents

NAME

QccIMGImageCubeExtractBlock, QccIMGImageCubeInsertBlock - block extraction and insertion from/to image cube

SYNOPSIS

#include "libQccPack.h"

int QccIMGImageCubeExtractBlock(const QccIMGImageCube *image_cube, int image_frame, int image_row, int image_col, QccMatrix block, int block_num_frames, int block_num_rows, int block_num_cols);
int QccIMGImageCubeInsertBlock(QccIMGImageCube *image_cube, int image_frame, int image_row, int image_col, const QccMatrix block, int block_num_frames, int block_num_rows, int block_num_cols);

DESCRIPTION

QccIMGImageCubeExtractBlock() extracts a block of size block_num_frames by block_num_rows by block_num_cols from image_cube. The block is extracted such that the low-indexed corner of the extracted block lies at location (image_frame, image_row, image_col) in image_cube; i.e., a diagonal of the nominal cube to be extracted would run from (image_frame, image_row, image_col) to (image_frame + block_num_frames, image_row + block_num_rows, image_col + block_num_cols). If any part of the extracted block lies beyond the bounds of image_cube, the corresponding voxels in block beyond the image-cube bounds are set to 0.

QccIMGImageCubeInsertBlock() inserts a block of size block_num_frames by block_num_rows by block_num_cols into image_cube at location (image_frame, image_row, image_col). Any part of the inserted block that would lie beyond the bounds of image_cube is ignored, i.e., not inserted into image_cube.

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