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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
'\" t
.\" Manual page created with latex2man on Mon Sep 22 15:51:54 MDT 2014
.\" NOTE: This file is generated, DO NOT EDIT.
.de Vb
.ft CW
.nf
..
.de Ve
.ft R
.fi
..
.TH "icetImageCopyColor" "3" "September 20, 2010" "\fBIceT \fPReference" "\fBIceT \fPReference"
.SH NAME
\fBicetImageCopyColor\fP,\fBicetImageCopyDepth\fP\-\- retrieve pixel data from image
.PP
.PP
.SH Synopsis
.PP
#include <IceT.h>
.PP
.TS H
l l l l .
void \fBicetImageCopyColorub\fP( const \fBIceTImage\fP \fIimage\fP,
IceTUByte * \fIcolor_buffer\fP,
IceTEnum \fIcolor_format\fP );
.TE
.PP
.TS H
l l l l .
void \fBicetImageCopyColorf\fP( const \fBIceTImage\fP \fIimage\fP,
IceTFloat * \fIcolor_buffer\fP,
IceTEnum \fIcolor_format\fP );
.TE
.PP
.TS H
l l l l .
void \fBicetImageCopyDepthf\fP( const \fBIceTImage\fP \fIimage\fP,
IceTFloat * \fIdepth_buffer\fP,
IceTEnum \fIdepth_format\fP );
.TE
.PP
.SH Description
.PP
The \fBicetImageCopyColor\fPsuite of functions retrieve color data from images
and the \fBicetImageCopyDepth\fPfunctions retrieve depth data from images.
Each function takes a pointer to an existing buffer that must be large
enough to hold all pixels in the image. The data from the images is
copied into these buffers, performing format conversions as necessary.
Because data is copied into the provided buffer, subsequently changing
values in the buffer has no effect on the image object (as opposed to the
behavior of \fBicetImageGetColor\fPand \fBicetImageGetDepth\fP).
.PP
The pixel data is always tightly packed in horizontal major order. Color
data that comprises tuples such as RGBA have the components for each
pixel packed together in that order. The first entry in the array
corresponds to the pixel in the lower left corner of the image. The next
entry is immediately to the right of the first pixel, and so on. The
dimensions of the array can be retrieved with the \fBicetImageGetWidth\fPand
\fBicetImageGetHeight\fPfunctions.
.PP
Each of these functions provides a typed version of the image data array.
They can only succeed if the type the request matches the type specified
by the \fIcolor_format\fP
or \fIdepth_format\fP
argument. It is an
error, for example, to request unsigned byte color data for a floating
point color format. Although specifying the format may be redundant (it
could be implied by the type being retrieved), \fBIceT \fPrequires it for
completeness and to support possible future data formats.
.PP
Use \fBicetImageCopyColorub\fPto retrieve an array of 8\-bit unsigned bytes.
Using this function is only valid if \fIcolor_format\fP
is
\fBICET_IMAGE_COLOR_RGBA_UBYTE\fP\&.
.PP
Use \fBicetImageCopyColorf\fPto retrieve an array of floating point color
values. Using this function is only valid if \fIcolor_format\fP
is
\fBICET_IMAGE_COLOR_RGBA_FLOAT\fP\&.
.PP
Use \fBicetImageGetDepthf\fPto retrieve an array of floating point depth
values. Using this function is only valid if \fIdepth_format\fP
is
\fBICET_IMAGE_DEPTH_FLOAT\fP\&.
.PP
.SH Errors
.PP
.TP
\fBICET_INVALID_OPERATION\fP
The \fIimage\fP
object does not have a color or depth buffer from
which to copy data.
.TP
\fBICET_INVALID_ENUM\fP
The requested \fIcolor_format\fP
or \fIdepth_format\fP
is
incompatible with the type of the buffer.
.PP
.SH Warnings
.PP
None.
.PP
.SH Bugs
.PP
None known.
.PP
.SH Copyright
Copyright (C)2010 Sandia Corporation
.PP
Under the terms of Contract DE\-AC04\-94AL85000 with Sandia Corporation, the
U.S. Government retains certain rights in this software.
.PP
This source code is released under the New BSD License.
.PP
.SH See Also
.PP
\fIicetImageGetColor\fP(3),
\fIicetImageGetDepth\fP(3)
.PP
.PP
.\" NOTE: This file is generated, DO NOT EDIT.
|