Cirrus Logic CS485 Especificaciones Pagina 231

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 319
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 230
Geometric Transforms
11-9
11
Example 11-1 Using Macro Definition to Resize an Image
int ResizeFit( void ) {
IplImage *imga = iplCreateImageJaehne(
IPL_DEPTH_8U, 5, 5 );
IplImage *imgb = iplCreateImageJaehne(
IPL_DEPTH_8U, 7, 7 );
IPLStatus st;
iplResizeFit( imga, imgb, IPL_INTER_NN );
st = iplGetErrStatus();
iplDeallocate( imga, IPL_IMAGE_ALL );
iplDeallocate( imgb, IPL_IMAGE_ALL );
return IPL_StsOk == st;
}
Changing the Image Orientation
The functions described in this section change the image orientation by
rotating or mirroring the source image. Rotation involves image resampling
by using various kinds of interpolation: nearest neighbor, linear, or cubic
interpolation (see Appendix B). Mirroring is performed by flipping the
image axis in horizontal or vertical direction.
Rotate
Rotates an image
around the (0,0) origin.
void iplRotate(IplImage*
srcImage
, IplImage*
dstImage
,
double
angle
, double
xShift
, double
yShift,
int
interpolate
);
srcImage
Thesourceimage.
Vista de pagina 230
1 2 ... 226 227 228 229 230 231 232 233 234 235 236 ... 318 319

Comentarios a estos manuales

Sin comentarios