Cirrus Logic CS485 Spezifikationen Seite 1

Stöbern Sie online oder laden Sie Spezifikationen nach Software Cirrus Logic CS485 herunter. Cirrus Logic CS485 Specifications Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 319
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - Image Processing

Intel®Image ProcessingLibraryReference ManualCopyright © 1997-2000, Intel CorporationAll Rights ReservedIssued in U.S.A.Document Number 663791-005

Seite 2 - How to Use This Online Manual

Intel®ImageProcessingLibraryReferenceManualviiiConvolve2D...6-8Convolve2DFP...

Seite 3 - Reference Manual

Intel®Image Processing Library Reference Manual4-464iplConvertFromDIB(),iplConvertFromDIBSep()Provides more control of the conversion and canconvert a

Seite 4

Image Creation and Access4-474TranslateDIBTranslates a DIB imageinto the correspondingIplImage.iplImage* iplTranslateDIB(BITMAPINFOHEADER*dib,BOOL*clo

Seite 5

Intel®Image Processing Library Reference Manual4-484Example 4-8 Translating a DIB Image Into an IplImageint example47( void ) {#define WIDTH 8#define

Seite 6 - Chapter3 ErrorHandling

Image Creation and Access4-494Example 4-8 Translating a DIB Image Into an IplImage (continued)// fill in colors of the bitmapfor( i=0; i<256; i++)r

Seite 7

Intel®Image Processing Library Reference Manual4-504Return ValueThe constructed IplImage.Ifnomemoryisavailableinthesystemtoallocate theIplImage header

Seite 8

Image Creation and Access4-514• The dimensions of the converted IplImage should be greater than orequal to that of the DIB image. When the converted i

Seite 9 - Chapter 6 Image Filtering

Intel®Image Processing Library Reference Manual4-524Example 4-9 Converting a DIB Image Into an IplImage (continued)dibh->biCompression = BI_RGB;dib

Seite 10 - Chapter9ColorSpaceConversion

Image Creation and Access4-534ConvertFromDIBSepConverts a DIB image to anIplImage, using two argumentsfor the DIB header and data.IPLStatus iplConvert

Seite 11 - Contents

Intel®Image Processing Library Reference Manual4-544ConvertToDIBConverts anIplImageto a DIB image withspecified attributes.void iplConvertToDIB(iplIma

Seite 12

Image Creation and Access4-554IPL_PALCONV_POPULATE The popularity paletteconversion algorithm is used.IPL_PALCONV_MEDCUT The median cut algorithm forp

Seite 13

ContentsixConversion of Absolute Colors to and from Palette Colors. 9-7Conversion from Color to Gray Scale... 9-8ColorTo

Seite 14

Intel®Image Processing Library Reference Manual4-564dibDataThe output DIB image data.ditherThe dithering algorithm to use if applicable.Dithering will

Seite 15

Image Arithmetic and LogicalOperations5-15This chapter describes image processing functions that modify pixel valuesusing simple arithmetic or logical

Seite 16

Intel®Image Processing Library Reference Manual5-25Table 5-1 Image Arithmetic and Logical Operations (continued)Group Function Name DescriptionArithme

Seite 17 - Examples

Image Arithmetic and Logical Operations5-35Monadic Arithmetic OperationsThe sections that follow describe the library functions that performmonadic ar

Seite 18

Intel®Image Processing Library Reference Manual5-45SubtractS, SubtractSFPSubtracts a constant frompixel values, or pixelvalues from a constant.void ip

Seite 19 - Overview

Image Arithmetic and Logical Operations5-55dstImageThe resultant image.valueAn integer value by which to multiply the pixel values.DiscussionThe funct

Seite 20 - ManualOrganization

Intel®Image Processing Library Reference Manual5-65SquareSquares the pixel valuesof the image.void iplSquare(IplImage*srcImage, IplImage*dstImage);src

Seite 21

Image Arithmetic and Logical Operations5-75Dyadic Arithmetic OperationsThe sections that follow describe the functions that perform dyadicarithmetic o

Seite 22 - Audience for This Manual

Intel®Image Processing Library Reference Manual5-85SubtractCombines correspondingpixels of two images bysubtraction.void iplSubtract(IplImage*srcImage

Seite 23 - NotationalConventions

Image Arithmetic and Logical Operations5-95DiscussionThe function iplMultiply() multiplies corresponding pixels of two inputimages to produce the outp

Seite 24 - Function Name Conventions

Intel®Image Processing Library Reference ManualxLookup Table (LUT) and Histogram Operations... 10-5The IplLUT Structure ...

Seite 25 - X-Y Argument Order Convention

Intel®Image Processing Library Reference Manual5-105Monadic Logical OperationsThe sections that follow describe the functions that perform monadiclogi

Seite 26

Image Arithmetic and Logical Operations5-115RShiftSDivides pixel values by aconstant power of 2 byshifting bits to the right.void iplRShiftS(IplImage*

Seite 27 - Color Models

Intel®Image Processing Library Reference Manual5-125NotPerforms a bitwise NOToperation on each pixel.void iplNot(IplImage*srcImage, IplImage*dstImage)

Seite 28 - Data Types and Palettes

Image Arithmetic and Logical Operations5-135OrSPerforms a bitwise ORoperation of each pixelwith a constant.void iplOrS(IplImage*srcImage, IplImage*dst

Seite 29 - Table 2-1 Data Ordering

Intel®Image Processing Library Reference Manual5-145XorSPerforms a bitwise XORoperation of each pixelwith a constant.void iplXorS(IplImage*srcImage, I

Seite 30 - Image Regions of Interest

Image Arithmetic and Logical Operations5-155AndCombines corresponding pixelsof two images by a bitwise ANDoperation.void iplAnd(IplImage*srcImageA, Ip

Seite 31 - SetROI()

Intel®Image Processing Library Reference Manual5-165DiscussionThe function iplOR() performs a bitwise OR operation between the valuesof corresponding

Seite 32 - Input image Output image

Image Arithmetic and Logical Operations5-175Using the opacity channel for image compositing provides the capability ofoverlaying the arbitrarily shape

Seite 33 - Image Dimensions

Intel®Image Processing Library Reference Manual5-185Using Pre-multiplied Alpha ValuesIn many cases it is computationally more efficient to store the c

Seite 34 - Image Tiling

Image Arithmetic and Logical Operations5-195void iplAlphaCompositeC(IplImage*srcImageA, IplImage*srcImageB, IplImage*dstImage, intcompositeType, intaA

Seite 35 - Call-backs

ContentsxiRotateCenter... 11-13Mirror...

Seite 36 - ROI and Tiling

Intel®Image Processing Library Reference Manual5-205IfsrcImageBdoes not contain an alpha channel, thenthe value (1-[αA)isusedforthealpha,whereαAis asc

Seite 37 - Error Handling

Image Arithmetic and Logical Operations5-215• IfalphaImageAandalphaImageBare both NULL, then the internalalpha channels of the two input images specif

Seite 38 - Error-handling Functions

Intel®Image Processing Library Reference Manual5-225Table 5-2 Types of Image Compositing OperationsType Output Pixel(see Note)Output Pixel(pre-mult. α

Seite 39 - SetErrStatus

Image Arithmetic and Logical Operations5-235The above operation is done for each color channel in A, B, and C. When theimages A and B contain pre-mult

Seite 40 - SetErrMode

Intel®Image Processing Library Reference Manual5-245PreMultiplyAlphaPre-multiplies alphavalues of an image.void iplPreMultiplyAlpha (IplImage*image,in

Seite 41 - ErrorStr

Image Filtering6-16This chapter describes linear and non-linear filtering operations supportedby the Image Processing Library. Most linear filtering i

Seite 42 - RedirectError

Intel®Image Processing Library Reference Manual6-26Linear FiltersLinear filtering includes a simple neighborhood averaging filter, 2Dconvolution opera

Seite 43 - GuiBoxReport

Image Filtering6-362D ConvolutionThe 2D convolution is a versatile image processing primitive which can beused in a variety of image processing operat

Seite 44

Intel®Image Processing Library Reference Manual6-46In addition, iplConvolveSep2D(), a convolution function that usesseparable kernels, is also provide

Seite 45 - ErrorMacros

Image Filtering6-56CreateConvKernel, CreateConvKernelChar,CreateConvKernelFPCreates a convolutionkernel.IplConvKernel* iplCreateConvKernel(intnCols, i

Seite 46 - Status Codes

Intel®Image Processing Library Reference ManualxiiNormalizedSpatialMoment...12-10NormalizedCentralMoment...

Seite 47 - Channel1U

Intel®Image Processing Library Reference Manual6-66nShiftRScale the resulting output pixel by shifting it tothe rightnShiftRtimes.DiscussionFunctions

Seite 48 - Application Notes

Image Filtering6-76nCols, nRowsNumbers of columns and rows in the convolutionkernel. Set by the function.anchorX, anchorYPointers to the [x, y] coordi

Seite 49 - Error Handling Example

Intel®Image Processing Library Reference Manual6-86DeleteConvKernelDeleteConvKernelFPDeletes a convolutionkernel.void iplDeleteConvKernel(IplConvKerne

Seite 50

Image Filtering6-96nKernelsThe number of kernels in the arraykernel.Thevalue ofnKernelscan be 1 or more.combineMethodThe way in which the results of a

Seite 51 - Adding Your Own Error Handler

Intel®Image Processing Library Reference Manual6-106Example 6-1 Computing 2-dimensional Convolution (continued)if( NULL == imga ) return 0;iplSetBorde

Seite 52

Image Filtering6-116ConvolveSep2D, ConvolveSep2DFPConvolves an image with aseparable convolution kernel.void iplConvolveSep2D (IplImage*srcImage,IplIm

Seite 53

Intel®Image Processing Library Reference Manual6-126FixedFilterConvolves an image with apredefined kernel.int iplFixedFilter(IplImage*srcImage,IplImag

Seite 54

Image Filtering6-136IPL_SOBEL_3x3_H A gradient filter (horizontal Sobel operator).This filter uses the kernel121000-1 -2 -1IPL_LAPLACIAN_3x3A3x3 Lapla

Seite 55 - ImageCreationandAccess

Intel®Image Processing Library Reference Manual6-146These filter coefficients correspond to a 2-dimensional Gaussiandistribution with standard deviati

Seite 56 - Functions (continued)

Image Filtering6-156MedianFilterApply a median filter tothe image.void iplMedianFilter(IplImage*srcImage, IplImage*dstImage, intnCols, intnRows, intan

Seite 57

ContentsxiiiTablesTable 2-1 Data Ordering ... 2-3Table 3-1 iplError() Status Codes...

Seite 58 - Image Header and Attributes

Intel®Image Processing Library Reference Manual6-166Example 6-2 Applying the Median Filterint example62( void ) {IplImage *imga, *imgb;__try {imga = i

Seite 59

Image Filtering6-176ColorMedianFilterApply a color medianfilter to the image.void iplColorMedianFilter(IplImage*srcImage, IplImage*dstImage, intnCols,

Seite 60 - OSD05559

ImageFiltering6-186MaxFilterApplyamaxfiltertotheimage.voidiplMaxFilter(IplImage*srcImage, IplImage*dstImage,intnCols, intnRows, intanchorX, intanchorY

Seite 61 - IplImage Structure Definition

Intel®ImageProcessingLibraryReferenceManual6-196MinFilterApplyaminfiltertotheimage.voidiplMinFilter(IplImage*srcImage, IplImage*dstImage,intnCols, int

Seite 62 - IplTileInfo Structure

This page is left blank for double-sided printingThis page is left blank for double-sided printing

Seite 63 - CreateImageHeader

Linear Image Transforms7-17This chapter describes the linear image transforms implemented in thelibrary: Fast Fourier Transform (FFT) and Discrete Cos

Seite 64

Intel®Image Processing Library Reference Manual7-27The function iplRealFft2D() transforms a 2D image and produces theFourier coefficients in theRCPack

Seite 65

Linear Image Transforms7-37Table 7-2 FFT Output in RCPack2D Format for EvenKRe A0,0Re A0,1Im A0,1...Re A0,(L-1)/2Im A0,(L-1)/2Re A0,L/2Re A1,0Re A1,1I

Seite 66

Intel®Image Processing Library Reference Manual7-47RealFft2DComputes the forward orinverse 2D FFT of an image.void iplRealFft2D(IplImage*srcImage, Ipl

Seite 67

Linear Image Transforms7-57DiscussionThe function iplRealFft2D() performs an FFT on each channel in thespecified rectangular ROI of the input imagesrc

Seite 68

Intel®Image Processing Library Reference ManualxivTable A-4 Image Attributes and Modes ofAlpha-Blending Functions ...

Seite 69 - CloneImage

Intel®Image Processing Library Reference Manual7-67Example 7-1 Computing the FFT of an Image (continued)if( NULL == imga ) return 0;imgb = iplCreateIm

Seite 70 - Deallocate

Linear Image Transforms7-77CcsFft2DComputes the forwardor inverse 2D FFT of animage in complex-conjugate format.void iplCcsFft2D(IplImage*srcImage, Ip

Seite 71 - CheckImageHeader

Intel®Image Processing Library Reference Manual7-87MpyRCPack2DMultiplies data of twoimages in the RCPackformat.void iplMpyRCPack2D (IplImage*srcA, Ipl

Seite 72 - CreateImageJaehne

Linear Image Transforms7-97DCT2DComputes the forwardor inverse 2D DCT of animage.void iplDCT2D(IplImage*srcImage, IplImage*dstImage,intflags);srcImage

Seite 73

Intel®Image Processing Library Reference Manual7-107DiscussionThe function iplDCT2D() performs a DCT on each channel in thespecified rectangular ROI o

Seite 74 - Setting Regions of Interest

Linear Image Transforms7-117Example 7-2 Computing the DCT of an Image (continued)// Create without fillingiplAllocateImage( imga, 0,0 );if( NULL == im

Seite 75 - DeleteROI

This page is left blank for double-sided printingThis page is left blank for double-sided printing

Seite 76

Morphological Operations8-18The morphological operations of the Image Processing Library are simpleerosion and dilation of an image. A specified numbe

Seite 77 - SetBorderMode

Intel®Image Processing Library Reference Manual8-28ErodeErodes the image.void iplErode(IplImage*srcImage, IplImage*dstImage,intnIterations);srcImageTh

Seite 78

Morphological Operations8-38Figure 8-1 shows an example of 8-bit gray scale image before erosion (left)and the same image after erosion of a rectangul

Seite 79 - CreateTileInfo

ContentsxvExamplesExample 3-1 Error Functions ... 3-13Example 3-2 Output for the Error Function Program(IPL_

Seite 80 - DeleteTileInfo

Intel®Image Processing Library Reference Manual8-48Example 8-1 Code Used to Produce Erosion in a Rectangular ROIint example81( void ) { IplImage *imga

Seite 81 - Memory Allocation Functions

Morphological Operations8-58NOTE. All source image attributes are defined in the image headerpointed to bysrcImage.DilateDilates the image.void iplDil

Seite 82

Intel®Image Processing Library Reference Manual8-68OpenOpens the image byperforming erosionsfollowed by dilations.void iplOpen(IplImage*srcImage, IplI

Seite 83

Morphological Operations8-78CloseCloses the image byperforming dilationsfollowed by erosions.void iplClose(IplImage*srcImage, IplImage*dstImage,intnIt

Seite 84

This page is left blank for double-sided printingThis page is left blank for double-sided printing

Seite 85 - Set, SetFP

Color Space Conversion9-19This chapter describes the Image Processing Library functions that performcolor space conversion. The library supports the f

Seite 86

Intel®Image Processing Library Reference Manual9-29Table 9-1 Color Space Conversion Functions (continued)Conversion Type Function Name DescriptionColo

Seite 87 - Image Creation and Access

Color Space Conversion9-39Reducing the Image Bit ResolutionThis section describes functions that reduce the bit resolution of absolutecolor and gray s

Seite 88

Intel®Image Processing Library Reference Manual9-49IPL_DITHER_BAYER The Bayer thresholddithering algorithm.levelsThe number of output levels for halft

Seite 89 - Exchange

Color Space Conversion9-59The figure below illustrates the results of applying the iplReduceBits()function with Stucki dithering to a source image tha

Seite 90

Intel®Image Processing Library Reference ManualxviExample 11-2 Rotating an Image... 11-11Example 11-3 Using Macro

Seite 91 - Example 4-6 Converting Images

Intel®Image Processing Library Reference Manual9-69Table 9-2 lists the valid combinations of the source and resultant image bitdata types for reducing

Seite 92 - GetPixel

Color Space Conversion9-79Conversion from Bitonal to Gray Scale ImagesThis section describes the function that performs the conversion of bitonalimage

Seite 93

Intel®Image Processing Library Reference Manual9-89Conversion from Color to Gray ScaleThis section describes the function that performs the conversion

Seite 94

Color Space Conversion9-99The weights to compute true luminance from linear red, green and blue arethese:Y = 0.212671 * R + 0.715160 * G + 0.072169 *

Seite 95

Intel®Image Processing Library Reference Manual9-109Table 9-4 Source and Resultant Image Data Types for Conversion from GrayScale to ColorSource Image

Seite 96 - NoiseImage

Color Space Conversion9-119This call converts the RGB imagergbImageto the CMY imagecmyImageby setting each channel in the CMY image as follows:C=255-R

Seite 97 - NoiseUniformInitFp

Intel®Image Processing Library Reference Manual9-129RGB2HSVConverts RGB imagesto the HSV color model.void iplRGB2HSV(IplImage*rgbImage, IplImage*hsvIm

Seite 98 - NoiseGaussianInitFp

Color Space Conversion9-139RGB2HLSConverts RGB imagesto the HLS color model.void iplRGB2HLS(IplImage*rgbImage, IplImage*hlsImage);rgbImageThesourceRGB

Seite 99

Intel®Image Processing Library Reference Manual9-149RGB2LUVConverts RGB imagesto the LUV color model.void iplRGB2LUV(IplImage*rgbImage, IplImage*luvIm

Seite 100

Color Space Conversion9-159RGB2XYZConverts RGB imagesto the XYZ color model.void iplRGB2XYZ(IplImage*rgbImage, IplImage*xyzImage);rgbImageThesourceRGB

Seite 101 - TranslateDIB

Overview1-11This manual describes the structure, operation and functions of theIntelImage Processing Library. This library supports many functionswho

Seite 102

Intel®Image Processing Library Reference Manual9-169RGB2YCrCbConverts RGB images tothe YCrCb color model.void iplRGB2YCrCb(IplImage*rgbImage, IplImage

Seite 103

Color Space Conversion9-179RGB2YUVConverts RGB imagesto the YUV color model.void iplRGB2YUV(IplImage*rgbImage, IplImage*yuvImage);rgbImageThesourceRGB

Seite 104 - ConvertFromDIB

Intel®Image Processing Library Reference Manual9-189YCC2RGBConverts HLS images tothe RGB color model.void iplYCC2RGB(IplImage*YCCImage, IplImage*rgbIm

Seite 105

Color Space Conversion9-199CreateColorTwistCreates a color-twistmatrix data structure.IplColorTwist* iplCreateColorTwist(intdata[16],intscalingValue);

Seite 106

Intel®Image Processing Library Reference Manual9-209SetColorTwistSets a color-twist matrixdata structure.void iplSetColorTwist(IplColorTwist*cTwist, i

Seite 107 - ConvertFromDIBSep

Color Space Conversion9-219ApplyColorTwistApplies a color-twistmatrix to an image.void iplApplyColorTwist(IplImage*srcImage,IplImage*dstImage, IplColo

Seite 108 - ConvertToDIB

Intel®Image Processing Library Reference Manual9-229• Lightening an image• Color saturation• Color balance• R, G, and B color adjustments• Contrast ad

Seite 109 - ConvertToDIBSep

Color Space Conversion9-239ColorTwistFPApplies a color-twistmatrix to an image withfloating-point pixel values.IPLStatus iplColorTwistFP (const IplIma

Seite 110 - Discussion

This page is left blank for double-sided printingThis page is left blank for double-sided printing

Seite 111 - Operations

Histogram, Threshold, and CompareFunctions10-110This chapter describes functions that operate on an image on a pixel-by-pixel basis: compare, threshol

Seite 112

How to Use This Online ManualPrinting an Online File. Select Print from the File menu to print an online file. The dialog that opensallows you to prin

Seite 113 - AddS, AddSFP

Intel®ImageProcessingLibraryReferenceManual1-21AboutThisManualThismanualprovidesabackgroundoftheimageandexecutionarchitectureoftheImageProcessingLibra

Seite 114 - MultiplyS, MultiplySFP

Intel®Image Processing Library Reference Manual10-210Table 10-1 Compare, Threshold, and Histogram Functions (continued)Group Function Name Description

Seite 115 - MultiplySScale

Histogram, Threshold, and Compare Functions10-310thresholdThe threshold value to use for each pixel. Thepixel value in the output is set to the maximu

Seite 116

Intel®Image Processing Library Reference Manual10-410Example 10-1 Conversion to a Bitonal Imageint example101( void ) {IplImage *imga, *imgb;const int

Seite 117 - Dyadic Arithmetic Operations

Histogram, Threshold, and Compare Functions10-510Lookup Table (LUT) and Histogram OperationsA LUT can be used to specify an intensity transformation.

Seite 118 - Multiply

Intel®Image Processing Library Reference Manual10-610IfinterpolateTypeis LOOKUP, then any input intensity D in the rangek0 ≤ D<k1will result in the

Seite 119 - MultiplyScale

Histogram, Threshold, and Compare Functions10-710ConstrastStretchStretches the contrast ofan image using anintensity transformation.void iplContrastSt

Seite 120 - Monadic Logical Operations

Intel®Image Processing Library Reference Manual10-810Example 10-2 Using the Function iplContrastStretch() to Enhance an Image(continued)/// allocate L

Seite 121

Histogram, Threshold, and Compare Functions10-910ComputeHistoComputes the intensityhistogram of an image.void iplComputeHisto(IplImage*srcImage, IplLU

Seite 122

Intel®Image Processing Library Reference Manual10-1010HistoEqualizeEnhances an image byflattening its intensityhistogram.void iplHistoEqualize(IplImag

Seite 123

Histogram, Threshold, and Compare Functions10-1110Example 10-3 Computing and Equalizing the Image Histogramint example102( void ) {IplImage *imga;cons

Seite 124 - Dyadic Logical Operations

Overview1-31Chapter 6 “Image Filtering.” Describes linear and non-linear filtering operations that can be applied toimages.Chapter 7 “Linear Image Tra

Seite 125

Intel®Image Processing Library Reference Manual10-1210Comparing ImagesThis section describes the functions that allow you to compare images.Each compa

Seite 126

Histogram, Threshold, and Compare Functions10-1310GreaterTests if the pixel values of thefirst image are greater thanthose of the second image.IPLStat

Seite 127

Intel®Image Processing Library Reference Manual10-1410LessTests if the pixel values of thefirst image are less than those ofthe second image.IPLStatus

Seite 128 - AlphaCompositeC

Histogram, Threshold, and Compare Functions10-1510EqualTests if the pixel values of thefirst image are equal to those ofthe second image.IPLStatus ipl

Seite 129

Intel®Image Processing Library Reference Manual10-1610EqualFPEpsTests if the floating-point pixelvalues in two images are equalwithin a tolerance ε.IP

Seite 130

Histogram, Threshold, and Compare Functions10-1710GreaterSTests if the image’s pixel valuesare greater than an integerscalar value.IPLStatus iplGreate

Seite 131

Intel®Image Processing Library Reference Manual10-1810GreaterSFPTests if the image’s pixel valuesare greater than a floating-pointscalar value.IPLStat

Seite 132

Histogram, Threshold, and Compare Functions10-1910LessSTests if the image’s pixel valuesare less than an integer scalarvalue.IPLStatus iplLessS (IplIm

Seite 133 - IPL_COMPOSITE_OVER

Intel®Image Processing Library Reference Manual10-2010LessSFPTests if the image’s pixel valuesare less than a floating-pointscalar value.IPLStatus ipl

Seite 134 - PreMultiplyAlpha

Histogram, Threshold, and Compare Functions10-2110EqualSTests if the image’s pixel valuesare equal to an integer scalarvalue.IPLStatus iplEqualS (IplI

Seite 135 - Image Filtering

Intel®Image Processing Library Reference Manual1-41The manual also includes a Glossary, Bibliography,andIndex,aswellastwo appendixes that list support

Seite 136 - Linear Filters

Intel®Image Processing Library Reference Manual10-2210EqualSFPTests if the image’s pixel valuesare equal to a floating-pointscalar value.IPLStatus ipl

Seite 137 - 2D Convolution

Histogram, Threshold, and Compare Functions10-2310EqualSFPEpsTests if the pixel values areequal to a floating-point scalarvalue within a tolerance ε.I

Seite 138

This page is left blank for double-sided printingThis page is left blank for double-sided printing

Seite 139 - CreateConvKernelFP

Geometric Transforms11-111This chapter describes the functions that perform geometric transformsto resize the image, change the image orientation, or

Seite 140 - GetConvKernelFP

Intel®Image Processing Library Reference Manual11-211Table 11-1 Image Geometric Transform Functions (continued)Group Function Name DescriptionWarping(

Seite 141

Geometric Transforms11-311Internally, all geometric transformation functions handle regions of interest(ROIs) with the following sequence of operation

Seite 142 - Convolve2DFP

Intel®Image Processing Library Reference Manual11-411ZoomZooms or expands animage.void iplZoom(IplImage*srcImage, IplImage*dstImage, intxDst, intxSrc,

Seite 143

Geometric Transforms11-511DecimateDecimates or shrinks animage.void iplDecimate(IplImage*srcImage, IplImage*dstImage,intxDst, intxSrc, intyDst, intySr

Seite 144

Intel®Image Processing Library Reference Manual11-611DecimateBlurBlurs and decimates animage.void iplDecimateBlur (IplImage*srcImage,IplImage*dstImage

Seite 145

Geometric Transforms11-711ResizeResizes an image.void iplResize(IplImage*srcImage, IplImage*dstImage, intxDst, intxSrc, intyDst, intySrc, intinterpola

Seite 146 - FixedFilter

Overview1-51OnlineVersionThismanualisavailableinanonlinehypertextformat.Toobtainahardcopyofthemanual,printtheonlinefileusingtheprintingcapabilityofAdo

Seite 147

Intel®Image Processing Library Reference Manual11-811iplZoomFitiplDecimateFitiplResizeFitMacro definitions that changethe image size using the images’

Seite 148 - Return Value

Geometric Transforms11-911Example 11-1 Using Macro Definition to Resize an Imageint ResizeFit( void ) {IplImage *imga = iplCreateImageJaehne(IPL_DEPTH

Seite 149 - MedianFilter

Intel®Image Processing Library Reference Manual11-1011dstImageThe resultant image.angleThe angle (in degrees) to rotate the image.The image is rotated

Seite 150

Geometric Transforms11-1111GetRotateShiftComputes shifts for iplRotate, giventhe rotation center and angle.void iplGetRotateShift(doublexCenter, doubl

Seite 151 - ColorMedianFilter

Intel®Image Processing Library Reference Manual11-1211Example 11-2 Rotating an Image (continued)double xshift=0, yshift=0;imga = iplCreateImageHeader(

Seite 152 - MaxFilter

GeometricTransforms11-1311iplRotateCenterThisfunction-likemacroallowstorotateanimagearoundthegivencenter.iplRotateCenter(srcImage, dstImage, angle, xC

Seite 153 - MinFilter

Intel®Image Processing Library Reference Manual11-1411Example 11-3 Using Macro Definition to Rotate an Imageint RotateCenter( void ) {IplImage *imga =

Seite 154

Geometric Transforms11-1511WarpingThis section describes shearing and warping functions of the ImageProcessing Library. These functions have been adde

Seite 155 - Linear Image Transforms

Intel®Image Processing Library Reference Manual11-1611ShearPerforms a shear ofthe source image.void iplShear(IplImage*srcImage, IplImage*dstImage, dou

Seite 156

Geometric Transforms11-1711WarpAffineWarps an image by an affine transform.void iplWarpAffine(IplImage*srcImage, IplImage*dstImage,const doublecoeffs[

Seite 157

Intel®Image Processing Library Reference Manual1-61Naming ConventionsThe following data type conventions are used by the library:• Constant identifier

Seite 158 - RealFft2D

Intel®Image Processing Library Reference Manual11-1811GetAffineBoundComputes the boundingrectangle for ROI transformedby iplWarpAffine.void iplGetAffi

Seite 159

Geometric Transforms11-1911quadOutput array: coordinates of the quadrangle towhich theimage’s ROI would be mapped byiplWarpAffine().DiscussionThe func

Seite 160

Intel®Image Processing Library Reference Manual11-2011WarpBilinearWarpBilinearQWarps an image by abilinear transform.void iplWarpBilinear(IplImage*src

Seite 161 - CcsFft2D

Geometric Transforms11-2111DiscussionThe functions iplWarpBilinear() and iplWarpBilinearQ() warp thesource image by a bilinear transformation accordin

Seite 162 - MpyRCPack2D

Intel®Image Processing Library Reference Manual11-2211GetBilinearBoundComputes the boundingrectangle for ROI transformedby iplWarpBilinear.void iplGet

Seite 163

Geometric Transforms11-2311quadOutput array: coordinates of the quadrangle towhich theimage’s ROI would be mapped byiplWarpBilinear().DiscussionThe fu

Seite 164

Intel®Image Processing Library Reference Manual11-2411WarpPerspectiveWarpPerspectiveQWarps an image by aperspective transform.void iplWarpPerspective(

Seite 165

Geometric Transforms11-2511DiscussionThe functions iplWarpPerspective() and iplWarpPerspectiveQ()warp the source image by a perspective transformation

Seite 166

Intel®Image Processing Library Reference Manual11-2611GetPerspectiveBoundComputes the boundingrectangle for ROI transformedby iplWarpPerspective.void

Seite 167 - Morphological Operations

Geometric Transforms11-2711quadOutput array: coordinates of the quadrangle towhich theimage’s ROI would be mapped byiplWarpPerspective().DiscussionThe

Seite 168

Overview1-71targetonly; for example, the functionsMultiply or RealFft2D, respectively.modThemodfield is optional and indicates amodification to the co

Seite 169

Intel®Image Processing Library Reference Manual11-2811Arbitrary TransformsTo perform special geometric transforms not covered in the above sections,th

Seite 170

Geometric Transforms11-2911DiscussionThe function iplRemap() maps the imagesrcImagetodstImageusing acoordinate table supplied by the application in th

Seite 171

Intel®Image Processing Library Reference Manual11-3011Example 11-4 Re-mapping an Image (continued)/// allocate memory destination with zero dataiplAll

Seite 172 - See Also

Image Statistics Functions12-112This chapter describes the Image Processing Library functions that allowyou to compute the following statistical param

Seite 173

Intel®Image Processing Library Reference Manual12-212Image NormsThe iplNorm() function described in this section allows you to computethe following no

Seite 174

Image Statistics Functions12-312(1) the norm ofsrcImageApixel values,||a||(2) the norm of differences of the source images’ pixel values,||a - b||(3)t

Seite 175 - Color Space Conversion

Intel®Image Processing Library Reference Manual12-412Example 12-1 Computing the Norm of Pixel Valuesint example51( void ) {IplImage *imga, *imgb;const

Seite 176

Image Statistics Functions12-512Image MomentsSpatial and central moments are important statistical characteristics of animage. The spatial moment MU(m

Seite 177 - ReduceBits

Intel®Image Processing Library Reference Manual12-612MomentsComputes all imagemoments of order 0 to 3.void iplMoments(IplImage*image, IplMomentStatemS

Seite 178

Image Statistics Functions12-712DiscussionThe function iplGetSpatialMoment() returns the spatial momentMU(m,n) previously computed by the iplMoments()

Seite 179

This page is left blank for double-sided printingThis page is left blank for double-sided printing

Seite 180 - Output image

Intel®Image Processing Library Reference Manual12-812mStateThe structure storing the image moments.mOrd, nOrdThe integer exponents m and n (see the mo

Seite 181 - BitonalToGray

Image Statistics Functions12-912SpatialMomentComputes a spatialmoment.double iplSpatialMoment(IplImage*image, intmOrd, intnOrd);imageThe image for whi

Seite 182 - ColorToGray

Intel®Image Processing Library Reference Manual12-1012DiscussionThe function iplCentralMoment() computes the central moment UU(m,n)for theimage.Normal

Seite 183 - GrayToColor

Image Statistics Functions12-1112NormalizedCentralMomentComputes a normalizedcentral moment.double iplNormalizedCentralMoment(IplImage*image, intmOrd,

Seite 184 - Conversion of Color Models

Intel®Image Processing Library Reference Manual12-1212Cross-CorrelationThis section describes the iplNormCrossCorr() function that allows youto comput

Seite 185

Image Statistics Functions12-1312NormCrossCorrComputes normalized cross-correlationbetween an image and a template.IPLStatus iplNormCrossCorr (IplImag

Seite 186

Intel®ImageProcessingLibraryReferenceManual12-1412MinimumandMaximumTheiplMinMaxFP()functiondescribedinthissectionallowsyoutocomputetheminimumandmaximu

Seite 187

User Defined Functions13-113This chapter describes library functions that enable users to create theirown image processing functions and make calls to

Seite 188

Intel®Image Processing Library Reference Manual13-213UserFuncThe type of user-definedfunctions that perform pointoperations on a separatechannel value

Seite 189

User Defined Functions13-313UserFuncFPThe type of user-definedfunctions that perform pointoperations on a separatechannel value of a pixel (forimages

Seite 190 - YCrCb2RGB

Image Architecture2-12This chapter describes the data and execution architecture of the ImageProcessing Library. It introduces the library’s color mod

Seite 191

Intel®Image Processing Library Reference Manual13-413UserFuncPixelThe type of user-definedfunctions that perform pointoperations simultaneously onall

Seite 192 - Using Color-Twist Matrices

User Defined Functions13-513If saturation of the computed result is necessary, it must be provided withinthe user function.The user function of type I

Seite 193 - CreateColorTwist

Intel®Image Processing Library Reference Manual13-613data. To perform saturation of 32-bit integer data, useiplUserProcessFP() function instead.The fu

Seite 194 - SetColorTwist

User Defined Functions13-713UserProcessFPCalls user-defined functionto separately process eachchannel value of pixels inimages with all data types.voi

Seite 195 - ApplyColorTwist

Intel®Image Processing Library Reference Manual13-813UserProcessPixelCalls user-defined function tosimultaneously process channelvalues of pixels in a

Seite 196 - DeleteColorTwist

User Defined Functions13-913Example 13-2 Pixel Values Processing by User Defined Functionstatic void __STDCALL rgb2gray( IplImage* srcImage,void* srcP

Seite 197 - ColorTwistFP

This page is left blank for double-sided printingThis page is left blank for double-sided printing

Seite 198

LibraryVersion14-114ThischapterdescribesthefunctioniplGetLibVersion()thatreturnstheversionnumberandotherinformationabouttheImageProcessingLibrary.GetL

Seite 199 - Functions

Intel®ImageProcessingLibraryReferenceManual14-214TheIPLLibVersionstructureisdefinedasfollows:typedefstruct_IPLLibVersion{int major; /*e.g.2 */int

Seite 200 - Threshold

Supported Image Attributesand Operation ModesA-1AThis appendix contains tables that list the supported image attributes andoperation modes for functio

Seite 201

Intel®Image Processing Library Reference Manual2-22The multi-spectral image (MSI) model is used for general purpose images.It is used for any kind of

Seite 202

Intel®Image Processing Library Reference ManualA-2ATable A-2 Windows DIB Conversion FunctionsFunction Depths Input and output images have the sameinpu

Seite 203 - The IplLUT Structure

Supported Image Attributes and Operation ModesA-3ATable A-3 Image Attributes and Modes of Arithmetic and Logical FunctionsInput and output images Rect

Seite 204

Intel®Image Processing Library Reference ManualA-4ATable A-4 Image Attributes and Modes of Alpha-Blending FunctionsInput and output images Rect. In-pl

Seite 205 - ConstrastStretch

Supported Image Attributes and Operation ModesA-5ATable A-7 Image Attributes and Modes of Morphological OperationsInput and output images Rect. Border

Seite 206 - (continued)

Intel®Image Processing Library Reference ManualA-6ATable A-9 Image Attributes and Modes of Histogram and Thresholding FunctionsInput and output images

Seite 207 - ComputeHisto

SupportedImageAttributesandOperationModesA-7ATableA-11 ImageAttributesandModesofImageStatiscticsFunctionsAllimages Rect. Tiling MaskFunction Dept

Seite 208 - HistoEqualize

This page is left blank for double-sided printingThis page is left blank for double-sided printing

Seite 209

Interpolation inGeometric Transform FunctionsB-1BThis appendix describes the interpolation algorithms used in the geometrictransformation functions of

Seite 210 - Comparing Images

Intel®ImageProcessingLibraryReferenceManualB-2BTableB-1liststhesupportedinterpolationmodesforallgeometrictransformfunctions.Forcertainfunctions,youcan

Seite 211

Interpolation in Geometric Transformation FunctionsB-3BMathematical NotationIn this appendix we’ll use the following notation:(xD,yD) pixel coordinate

Seite 212

Image Architecture2-32The Sequence and Order of Color ChannelsChannel sequence corresponds to the order of the color channels inabsolute color images.

Seite 213

Intel®Image Processing Library Reference ManualB-4BThen, the sought-for intensity D(xD,yD) is computed by interpolating theintermediate values I0and I

Seite 214 - EqualFPEps

Interpolation in Geometric Transformation FunctionsB-5BCubic InterpolationThe cubic interpolation algorithm (see Figure B-2) uses source imageintensit

Seite 215 - GreaterS

Intel®Image Processing Library Reference ManualB-6BFigure B-2 Cubic InterpolationxyyS3D(xS,yS)yS2yS1yS0xS3xS1xS0xS2F0(x)F1(x)F2(x)F3(x)xSySintensitySu

Seite 216 - GreaterSFP

Interpolation in Geometric Transformation FunctionsB-7BFor each source pixel intersecting with the rectangle, Figure B-3 shows thecorresponding weight

Seite 217

This page is left blank for double-sided printingThis page is left blank for double-sided printing

Seite 218

BibliographyBiblio-1This bibliography provides a list of publications that might be useful to theImage Processing Library users. This list is not comp

Seite 219

Intel®Image Processing Library Reference ManualBiblio-2[RPL] Intel®Recognition Primitives Library Reference Manual.Intel Corp. Order number 637785.[SP

Seite 220 - EqualSFP

GlossaryGlossary-1absolute colors Colors specified by each pixel’s coordinates in acolor space. Intel Image Processing Libraryfunctions use images wit

Seite 221 - EqualSFPEps

Intel®Image Processing Library Reference ManualGlossary-2DIB Device-independent bitmap, an image formatused by the library in Windows environment.dila

Seite 222

GlossaryGlossary-3in-place operation An operation whose output image is one of theinput images. See out-of-place operation.linear filtering In this li

Seite 223 - Geometric Transforms

Intel®Image Processing LibraryReference ManualDocument Number: 663791-005World Wide Web: http://developer.intel.comRevision Revision History Date-001

Seite 224

Intel®Image Processing Library Reference Manual2-42Coordinate SystemsTwo coordinate systems are supported by the library’s image format.• The origin o

Seite 225 - Changing the Image Size

Intel®Image Processing Library Reference ManualGlossary-4palette colors Colors specified by a palette, or lookup table.The Image Processing Library us

Seite 226

GlossaryGlossary-5XYZ A three-channel color model designed torepresent a wider range of colors than the RGBmodel: some XYZ-representable colors wouldh

Seite 227 - Decimate

This page is left blank for double-sided printingThis page is left blank for double-sided printing

Seite 228 - DecimateBlur

IndexIndex-1Aa function that helps youadd a constant to pixel values, 5-3add pixel values of two images, 5-7allocate a quadword-aligned memory block,4

Seite 229

Intel®Image Processing Library Reference ManualIndex-2convert a color image to gray scale, 9-8convert a gray scale image to color, 9-9convert images f

Seite 230

IndexIndex-3set a region of interest (ROI), 4-22set error-handling mode, 3-4set one pixel to a new value, 4-38set pixels to the maximum value of thene

Seite 231

Intel®ImageProcessingLibraryReferenceManualIndex-4AndSfunction,5-12ApplyColorTwistfunction,9-21argumentorderconventions,1-7arithmeticoperations,5-1Abs

Seite 232

IndexIndex-5DeleteColorTwist, 9-22GrayToColor, 9-9HLS2RGB, 9-13HSV2RGB, 9-12LUV2RGB, 9-14ReduceBits, 9-3RGB2HLS, 9-13RGB2HSV, 9-12RGB2LUV, 9-14RGB2XYZ

Seite 233 - GetRotateShift

Intel®Image Processing Library Reference ManualIndex-6convolution, 6-3Convolve2D function, 6-8Convolve2DFP function, 6-8ConvolveSep2D function, 6-11Co

Seite 234

IndexIndex-7EEqual function, 10-15EqualFPEps function, 10-16equalizing the image histogram, 10-10EqualS function, 10-21EqualSFP function, 10-22EqualSF

Seite 235

Image Architecture2-52applicable ROIs. For example, if an image has both types of ROI and aCOI, operations are performed only on the values of this CO

Seite 236

Intel®Image Processing Library Reference ManualIndex-8GetConvKernelFP, 6-6MaxFilter, 6-17MedianFilter, 6-15MinFilter, 6-18FixedFilter function, 6-12fo

Seite 237

IndexIndex-9Greaterfunction,10-13GreaterSfunction,10-17GreaterSFPfunction,10-18GuiBoxReportfunction,3-7Hhandlingoverflowandunderflow,2-8hardwareandsof

Seite 238

Intel®Image Processing Library Reference ManualIndex-10error handling, 3-1fast Fourier transform, 7-1filtering functions, 6-1geometric transform funct

Seite 239 - WarpAffine

IndexIndex-11iplConvertToDIB, 4-54iplConvertToDIBSep, 4-55iplConvolve2D, 6-8iplConvolve2DFP, 6-8iplConvolveSep2D, 6-11iplConvolveSep2DFP, 6-11iplCopy,

Seite 240 - GetAffineQuad

Intel®Image Processing Library Reference ManualIndex-12iplHLS2RGB, 9-13iplHSV2RGB, 9-12IplImage structure, 4-7ipliMalloc, 4-28IplLastStatus variable,

Seite 241 - GetAffineTransform

IndexIndex-13iplsMalloc, 4-29iplSpatialMoment, 12-9iplSquare, 5-6iplStdErrReport, 3-7iplSubtract, 5-8iplSubtractS, 5-4iplSubtractSFP, 5-4iplThreshold,

Seite 242 - WarpBilinearQ

Intel®Image Processing Library Reference ManualIndex-14iMalloc, 4-28Malloc, 4-27sMalloc, 4-29wMalloc, 4-28MinFilter function, 6-18minimum permissible

Seite 243

IndexIndex-15Oonlineversionofthismanual,1-5opacitychannel.SeealphachannelOpenfunction,8-6openingandsmoothingtheimage,8-6operationmodesoflibraryfunctio

Seite 244 - GetBilinearQuad

Intel®ImageProcessingLibraryReferenceManualIndex-16SetErrStatusfunction,3-3SetFPfunction,4-31SetROIfunction,4-22SetTileInfofunction,4-26Shearfunction,

Seite 245 - GetBilinearTransform

IndexIndex-17ConvertFromDIBSep, 4-53ConvertToDIB, 4-54ConvertToDIBSep, 4-55TranslateDIB, 4-47wMalloc function, 4-28XXOR compositing operation, 5-22Xor

Seite 246 - WarpPerspective

Intel®Image Processing Library Reference Manual2-62If one image (input or output) has one channel in its COI and anotherimage (input or output) has mo

Seite 247

Image Architecture2-72Alpha (Opacity) ChannelIn addition to the color channels, an image can have one alpha channel,also known as an opacity channel,

Seite 248 - GetPerspectiveQuad

Intel®Image Processing Library Reference Manual2-82Execution ArchitectureHandling Overflow and UnderflowOverflow and underflow are handled in each ima

Seite 249 - GetPerspectiveTransform

Image Architecture2-92This section gives a short overview of image tiling in the Image ProcessingLibrary. In Chapter 4 you will find more information

Seite 250 - Arbitrary Transforms

Intel®Image Processing Library Reference Manual2-102tile number, not pixel number, and count from the origin at (0,0);mode is one of the following:IPL

Seite 251

Error Handling3-13This chapter describes the error handling facility of the Image ProcessingLibrary. The library functions report a variety of errors

Seite 252

Intel®Image Processing Library Reference Manual3-23reporting these exceptions. A floating-point library is needed if a processorthat handles floating-

Seite 253

Error Handling3-33To simplify the coding for error checking and reporting, the error handlingsystem of the Image Processing Library supports a set of

Seite 254 - Image Norms

This documentation as well as the software described in it is furnished under license and may only be usedor copied in accordance with the terms of th

Seite 255

Intel®Image Processing Library Reference Manual3-43GetErrModeSetErrModeGets and sets the errormodes that describe how anerror is processed.#define IPL

Seite 256

Error Handling3-53If you specify IPL_ErrModeParent, errors are processed in the “parents”of the function call tree. WheniplError() is called as the re

Seite 257 - Image Moments

Intel®Image Processing Library Reference Manual3-63DiscussionThe function iplErrorStr() returns a short string describingstatus.Use this function to p

Seite 258 - GetSpatialMoment

Error Handling3-73NullDevReportStdErrReportGuiBoxReportPredefined error-handlingfunctions that send errormessages to different outputdestinations.IPLS

Seite 259 - GetNormalizedSpatialMoment

Intel®Image Processing Library Reference Manual3-83DiscussionYou can use these predefined functions as error handlers to redirect errorreporting in yo

Seite 260 - GetNormalizedCentralMoment

ErrorHandling3-93ErrorMacrosTheerrormacrosassociatedwiththeiplError()functionaredescribedbelow.#defineIPL_ERROR(status,func,context)\iplError((status)

Seite 261 - CentralMoment

Intel®Image Processing Library Reference Manual3-103The IPL_ERROR() macro simply calls the iplError() function by default.This macro is used by other

Seite 262 - NormalizedSpatialMoment

Error Handling3-113Table 3-1 iplError() Status Codes (continued)Status Code Value DescriptionIPL_StsNoMem-4 A function attempted to allocate memoryusi

Seite 263 - NormalizedCentralMoment

Intel®Image Processing Library Reference Manual3-123Table 3-1 iplError() Status Codes (continued)Status Code Value DescriptionIPL_BadOrigin-20 Incorre

Seite 264 - Cross-Correlation

Error Handling3-133Error Handling ExampleThe following example describes the default error handling for a consoleapplication. In the example program,t

Seite 265 - NormCrossCorr

ContentsiiiChapter 1 OverviewAbout This Software... 1-1Hardware and Software Requirements...

Seite 266 - MinMaxFP

Intel®Image Processing Library Reference Manual3-143Example 3-1 Error Functions (continued)/* library function */void libFuncB(double a, int order) {f

Seite 267 - User Defined Functions

Error Handling3-153Example 3-2 Output for the Error Function Program (IPL_ErrModeParent)IPL Library Error: Invalid argument in function libFuncB: orde

Seite 268 - UserFunc

Intel®Image Processing Library Reference Manual3-163application is running under a Windows system or you can choose to senderror messages to a special

Seite 269 - UserFuncFP

Error Handling3-173Example 3-4 A Simple Error HandlerIPLStatus ownError(IPLStatus status, const char *func,const char *context, const char *file, int

Seite 270 - UserFuncPixel

This page is left blank for double-sided printingThis page is left blank for double-sided printing

Seite 271 - UserProcess

ImageCreationandAccess4-14Thischapterdescribesthefunctionsthatprovidethefollowingfunctionalities:• Creatingandaccessingattributesofimages(bothtiledand

Seite 272

Intel®Image Processing Library Reference Manual4-24Table 4-1 Image Creation, Data Exchange and Windows DIB EnvironmentFunctions (continued)Group Funct

Seite 273 - UserProcessFP

Image Creation and Access4-34Table 4-1 Image Creation, Data Exchange and Windows DIB EnvironmentFunctions (continued)Group Function Name Descriptionip

Seite 274 - UserProcessPixel

Intel®Image Processing Library Reference Manual4-44Image Header and AttributesThe Image Processing Library functions operate on a single format forima

Seite 275

Image Creation and Access4-54Table 4-2 Image Header Attributes (continued)Description ValueCorrespondingDIB AttributeChannel sequence 4-character stri

Seite 276

Intel®Image Processing Library Reference ManualivHandling Overflow and Underflow ... 2-8In-Place and Out-of-Place Operat

Seite 277 - ReturnValue

Intel®Image Processing Library Reference Manual4-64Figure 4-1 presents a graphical depiction of an RGB image with arectangular ROI and a COI.Figure 4-

Seite 278

Image Creation and Access4-74The C language definition for the IPLImage structure is given below.IplImage Structure Definitiontypedef struct _IplImage

Seite 279 - Supported Image Attributes

Intel®Image Processing Library Reference Manual4-84Tiling Fields in the IplImage StructureImage tiling in the Image Processing Library was described i

Seite 280

Image Creation and Access4-94Creating ImagesThere are several ways of creating a new image:• Construct anIplImage header by setting the attributes to

Seite 281

Intel®Image Processing Library Reference Manual4-104colorModelA four-character string describing the colormodel: “RGB”, “GRAY”, “HLS” etc.channelSeqTh

Seite 282 - Input and output images

Image Creation and Access4-114DiscussionThe function iplCreateImageHeader() creates an IplImage headeraccording to the specified attributes; see Examp

Seite 283

Intel®Image Processing Library Reference Manual4-124The mask region of interest specified by themaskROIpointer is discussedin the section Image Region

Seite 284 - Compare functions

Image Creation and Access4-134AllocateImage, AllocateImageFPAllocates memory for imagedataaccordingtothespecified header.void iplAllocateImage(IplImag

Seite 285 - Processing

Intel®Image Processing Library Reference Manual4-144Example 4-2 Allocating and Deallocating the Image Dataint example42( void ) {IplImage img;char col

Seite 286

Image Creation and Access4-154DeallocateImageDeallocates (frees) memoryfor image data pointed to inthe image header.void iplDeallocateImage(IplImage*i

Seite 287 - = IPL_INTER_SUPER)

ContentsvAllocateImage ... 4-13AllocateImageFP...

Seite 288

Intel®Image Processing Library Reference Manual4-164DeallocateDeallocates or frees memoryfor image header or data ormask ROI or rectangularROI or all

Seite 289 - Linear Interpolation

Image Creation and Access4-174CheckImageHeaderValidates field values ofan existing imageheader structure.IPLStatus iplCheckImageHeader ( const IplImag

Seite 290 - IPL_INTER_LINEAR

Intel®Image Processing Library Reference Manual4-184IPL_BadCallBack Indicates an error condition if the image is tiledbut the call-back function is no

Seite 291 - Cubic Interpolation

ImageCreationandAccess4-194Figure4-2illustratesanexampleofthetestimagegeneratedbytheiplCreateImageJaehne()function.Thesetestimagescanbeeffectivelyused

Seite 292 - Super-Sampling

Intel®Image Processing Library Reference Manual4-204Setting Regions of InterestTo set a region of interest, the function iplSetROI() uses a ROI struct

Seite 293

Image Creation and Access4-214CreateROIAllocates and sets theregion of interest (ROI)structure.IplROI* iplCreateROI(intcoi, intxOffset, intyOffset,int

Seite 294

Intel®Image Processing Library Reference Manual4-224DiscussionThe function iplDeleteROI() deallocates a ROI structure previouslycreated byiplCreateROI

Seite 295 - Bibliography

Image Creation and Access4-234Image Borders and Image TilingMany neighborhood operators need intensity values for pixels that lieoutside the image, th

Seite 296 - Biblio-2

Intel®Image Processing Library Reference Manual4-244IPL_BORDER_WRAP The required border rows or columns aretaken from the opposite side of theimage.bo

Seite 297 - Glossary

Image Creation and Access4-254Example 4-3 Setting the Border Mode for an Imageint example43( void ) {IplImage *imgh = iplCreateImageHeader( 3,0,IPL_DE

Seite 298 - Glossary-2

Intel®Image Processing Library Reference ManualviPutPixel... 4-38GetPixel...

Seite 299 - ColorToGray in Chapter 9

Intel®Image Processing Library Reference Manual4-264SetTileInfoSets the IplTileInfostructure fields.void iplSetTileInfo(IplTileInfo* tileInfo,IplCallB

Seite 300 - Glossary-4

Image Creation and Access4-274Memory Allocation FunctionsFunctions of the ipl?Malloc() group allocate aligned memory blocks forthe image data. The siz

Seite 301 - Glossary-5

Intel®Image Processing Library Reference Manual4-284wMallocAllocates memory aligned toan 8-byte boundary for 16-bit words.short* iplwMalloc(intsize);s

Seite 302

Image Creation and Access4-294Return ValueThe function returns a pointer to an aligned memory block. If no memoryis available in the system, then theN

Seite 303

Intel®ImageProcessingLibraryReferenceManual4-304dMallocAllocatesmemoryalignedtoan8-byteboundaryfordoublefloating-pointelements.double*ipldMalloc(intsi

Seite 304

Image Creation and Access4-314DiscussionThe iplFree() function frees the aligned memory block allocated by oneof the functions iplMalloc(), iplwMalloc

Seite 305

Intel®Image Processing Library Reference Manual4-324depth lower than thefillVallue,thefillValueis saturated whenassigned to pixel. If an ROI is specif

Seite 306

Image Creation and Access4-334headers must be properly constructed and image data for both images mustbe allocated; see Example 4-5. The following con

Seite 307

Intel®Image Processing Library Reference Manual4-344Example 4-5 Copying Image Pixel Valuesint example45( void ) {IplImage *imga, *imgb;__try {imga = i

Seite 308

Image Creation and Access4-354ExchangeExchanges image databetween two images.void iplExchange(IplImage*ImageA, IplImage*ImageB);ImageAThe first image.

Seite 309

ContentsviiMultiply... 5-8MultiplyScale ...

Seite 310

Intel®Image Processing Library Reference Manual4-364ConvertConverts source image data toresultant image according tothe image headers.void iplConvert(

Seite 311

Image Creation and Access4-374Example 4-6 Converting Imagesint example46( void ) {IplImage *imga, *imgb;__try {imga = iplCreateImageHeader(1, 0, IPL_D

Seite 312

Intel®Image Processing Library Reference Manual4-384PutPixel,GetPixelSets/retrieves a value ofan image’s pixel.void iplPutPixel(IplImage*image, intx,

Seite 313

Image Creation and Access4-394Example 4-7 Using the Function iplGetPixel()int example_1001( void ) {char pixel[4]; /// buffer to get pixel data/// roi

Seite 314

Intel®Image Processing Library Reference Manual4-404ScaleScales the image data.IPLStatus iplScale (const IplImage*src,IplImage*dst);srcThesourceimage.

Seite 315

Image Creation and Access4-414ScaleFPConverts the image data toand from floating-point typeby scaling.IPLStatus iplScaleFP (const IplImage*src,IplImag

Seite 316

Intel®Image Processing Library Reference Manual4-424NoiseImageGenerates noise signaland adds it to an imagedata.IPLStatus iplNoiseImage ( IplImage*ima

Seite 317

Image Creation and Access4-434NoiseUniformInit,NoiseUniformInitFpInitializes parametersfor generating noisesignal with uniformdistribution.void iplNoi

Seite 318

Intel®Image Processing Library Reference Manual4-444NoiseGaussianInit,NoiseGaussianInitFpInitializes parametersfor generating noisesignal with Gaussia

Seite 319

Image Creation and Access4-454Working in the Windows DIB EnvironmentThe Image Processing Library provides functions to convert images to andfrom the W

Kommentare zu diesen Handbüchern

Keine Kommentare