52 #include <cuda_runtime.h>
66 #if defined(_WIN32) && !defined(_WIN64)
77 #define NPP_ALIGN_8 __align__(8)
78 #define NPP_ALIGN_16 __align__(16)
372 #define NPP_MIN_8U ( 0 )
373 #define NPP_MAX_8U ( 255 )
374 #define NPP_MIN_16U ( 0 )
375 #define NPP_MAX_16U ( 65535 )
376 #define NPP_MIN_32U ( 0 )
377 #define NPP_MAX_32U ( 4294967295U )
378 #define NPP_MIN_64U ( 0 )
379 #define NPP_MAX_64U ( 18446744073709551615ULL )
381 #define NPP_MIN_8S (-127 - 1 )
382 #define NPP_MAX_8S ( 127 )
383 #define NPP_MIN_16S (-32767 - 1 )
384 #define NPP_MAX_16S ( 32767 )
385 #define NPP_MIN_32S (-2147483647 - 1 )
386 #define NPP_MAX_32S ( 2147483647 )
387 #define NPP_MAX_64S ( 9223372036854775807LL )
388 #define NPP_MIN_64S (-9223372036854775807LL - 1)
390 #define NPP_MINABS_32F ( 1.175494351e-38f )
391 #define NPP_MAXABS_32F ( 3.402823466e+38f )
392 #define NPP_MINABS_64F ( 2.2250738585072014e-308 )
393 #define NPP_MAXABS_64F ( 1.7976931348623158e+308 )
563 #define NPP_HOG_MAX_CELL_SIZE (16)
564 #define NPP_HOG_MAX_BLOCK_SIZE (64)
565 #define NPP_HOG_MAX_BINS_PER_CELL (16)
566 #define NPP_HOG_MAX_CELLS_PER_DESCRIPTOR (256)
567 #define NPP_HOG_MAX_OVERLAPPING_BLOCKS_PER_DESCRIPTOR (256)
568 #define NPP_HOG_MAX_DESCRIPTOR_LOCATIONS_PER_CALL (128)
NppGpuComputeCapability
Definition: nppdefs.h:239
Definition: nppdefs.h:450
Definition: nppdefs.h:543
Definition: nppdefs.h:204
Definition: nppdefs.h:210
Definition: nppdefs.h:162
Speed reduction due to uncoalesced memory accesses warning.
Definition: nppdefs.h:235
Channel of interest is not 1, 2, or 3.
Definition: nppdefs.h:190
NppiMaskSize
Fixed filter-kernel sizes.
Definition: nppdefs.h:119
Indicates that CUDA 7.0 capable device is machine's default device.
Definition: nppdefs.h:260
Npp32f re
Real part.
Definition: nppdefs.h:346
Indicates that CUDA 6.1 capable device is machine's default device.
Definition: nppdefs.h:257
Image pixels are constant for quality index.
Definition: nppdefs.h:173
Definition: nppdefs.h:520
Definition: nppdefs.h:131
Npp32u im
Imaginary part.
Definition: nppdefs.h:327
struct NPP_ALIGN_8 Npp32uc
Complex Number This struct represents an unsigned int complex number.
int height
Rectangle height.
Definition: nppdefs.h:421
Round to the nearest even integer.
Definition: nppdefs.h:480
Definition: nppdefs.h:128
int haarBufferSize
size of the buffer
Definition: nppdefs.h:581
Indicates that CUDA 7.3 capable device is machine's default device.
Definition: nppdefs.h:262
Definition: nppdefs.h:442
Indicates that CUDA 1.2 capable device is machine's default device.
Definition: nppdefs.h:245
unsigned char Npp8u
8-bit unsigned chars
Definition: nppdefs.h:278
Definition: nppdefs.h:122
Definition: nppdefs.h:163
Definition: nppdefs.h:217
Definition: nppdefs.h:212
Definition: nppdefs.h:169
struct __align__(2)
Complex Number This struct represents an unsigned char complex number.
Definition: nppdefs.h:294
Complex Number This struct represents an unsigned int complex number.
Definition: nppdefs.h:324
Definition: nppdefs.h:519
int y
y-coordinate of upper left corner (lowest memory address).
Definition: nppdefs.h:434
sum
Definition: nppdefs.h:599
Npp64f re
Real part.
Definition: nppdefs.h:366
Definition: nppdefs.h:167
Definition: nppdefs.h:126
Definition: nppdefs.h:127
Indicates that CUDA 5.2 capable device is machine's default device.
Definition: nppdefs.h:254
Definition: nppdefs.h:526
int y
y-coordinate.
Definition: nppdefs.h:402
Indicates that CUDA 1.1 capable device is machine's default device.
Definition: nppdefs.h:244
NppiAxis
Definition: nppdefs.h:439
Definition: nppdefs.h:221
Definition: nppdefs.h:161
Definition: nppdefs.h:166
Definition: nppdefs.h:201
The given ROI has no interestion with either the source or destination ROI.
Definition: nppdefs.h:231
NppiBayerGridPosition
Bayer Grid Position Registration.
Definition: nppdefs.h:108
Npp64s re
Real part.
Definition: nppdefs.h:356
NppiSize detectionWindowSize
detection window size (pixels).
Definition: nppdefs.h:560
Definition: nppdefs.h:168
sign change XOR
Definition: nppdefs.h:588
AC Table.
Definition: nppdefs.h:594
NppStatus
Error Status Codes.
Definition: nppdefs.h:152
Definition: nppdefs.h:209
Bad or unsupported number of channels.
Definition: nppdefs.h:189
Npp8uc
Definition: nppdefs.h:298
Image size isn't multiple of two.
Definition: nppdefs.h:233
Definition: nppdefs.h:443
Definition: nppdefs.h:545
Definition: nppdefs.h:579
Indicates that CUDA 6.2 capable device is machine's default device.
Definition: nppdefs.h:258
Npp32f theta
Definition: nppdefs.h:410
Definition: nppdefs.h:546
Npp32u re
Real part.
Definition: nppdefs.h:326
Wrong order of the destination channels.
Definition: nppdefs.h:183
Complex Number This struct represents a long long complex number.
Definition: nppdefs.h:354
Npp32s * haarBuffer
buffer
Definition: nppdefs.h:582
Indicates that CUDA 3.5 capable device is machine's default device.
Definition: nppdefs.h:251
sign change count_0
Definition: nppdefs.h:589
Definition: nppdefs.h:441
Npp64s im
Imaginary part.
Definition: nppdefs.h:357
Npp32s re
Real part.
Definition: nppdefs.h:336
Definition: nppdefs.h:215
Step value is not pixel multiple.
Definition: nppdefs.h:178
Linear interpolation.
Definition: nppdefs.h:94
2D Size This struct typically represents the size of a a rectangular region in two space...
Definition: nppdefs.h:418
NppCmpOp
Definition: nppdefs.h:446
Definition: nppdefs.h:525
Definition: nppdefs.h:121
Npp64f im
Imaginary part.
Definition: nppdefs.h:367
Definition: nppdefs.h:203
Definition: nppdefs.h:515
Definition: nppdefs.h:544
Round towards zero (truncation).
Definition: nppdefs.h:501
square root of sum of squares
Definition: nppdefs.h:600
Size of the rectangle region is less than or equal to 1.
Definition: nppdefs.h:186
Definition: nppdefs.h:536
Processed data is corrupted.
Definition: nppdefs.h:182
int x
x-coordinate.
Definition: nppdefs.h:401
Definition: nppdefs.h:448
Indicates that CUDA 5.0 capable device is machine's default device.
Definition: nppdefs.h:253
Definition: nppdefs.h:218
Definition: nppdefs.h:125
struct NPP_ALIGN_16 Npp64sc
Complex Number This struct represents a long long complex number.
Number of levels for LUT is less than 2.
Definition: nppdefs.h:180
int width
Rectangle width.
Definition: nppdefs.h:420
int build
Build number.
Definition: nppdefs.h:270
int x
x-coordinate of upper left corner (lowest memory address).
Definition: nppdefs.h:433
Definition: nppdefs.h:516
Definition: nppdefs.h:124
Definition: nppdefs.h:518
Definition: nppdefs.h:216
struct NPP_ALIGN_16 Npp64fc
Complex Number This struct represents a double floating-point complex number.
struct NPP_ALIGN_8 Npp32sc
Complex Number This struct represents a signed int complex number.
Indicates that CUDA 2.1 capable device is machine's default device.
Definition: nppdefs.h:248
long long Npp64s
64-bit signed integers
Definition: nppdefs.h:285
Definition: nppdefs.h:539
int cellSize
square cell size (pixels).
Definition: nppdefs.h:557
Definition: nppdefs.h:200
Definition: nppdefs.h:202
int major
Major version number.
Definition: nppdefs.h:268
Definition: nppdefs.h:542
int Npp32s
32-bit signed integers
Definition: nppdefs.h:283
sign change
Definition: nppdefs.h:587
Definition: nppdefs.h:547
Definition: nppdefs.h:527
Lower bound is larger than upper bound.
Definition: nppdefs.h:197
int minor
Minor version number.
Definition: nppdefs.h:269
NppiInterpolationMode
Filtering methods.
Definition: nppdefs.h:90
Divisor is zero however does not terminate the execution.
Definition: nppdefs.h:229
Round according to financial rule.
Definition: nppdefs.h:491
The given quadrangle has no intersection with either the source or destination ROI.
Definition: nppdefs.h:232
Unallowable values of the transformation coefficients.
Definition: nppdefs.h:187
Alias name for NPP_RND_ZERO.
Definition: nppdefs.h:502
Definition: nppdefs.h:214
2D Rectangle This struct contains position and size information of a rectangle in two space...
Definition: nppdefs.h:431
DC Table.
Definition: nppdefs.h:593
Indicates that CUDA 7.2 capable device is machine's default device.
Definition: nppdefs.h:261
NppiSize classifierSize
Definition: nppdefs.h:575
Error free operation.
Definition: nppdefs.h:224
Indicates that no CUDA capable device was found.
Definition: nppdefs.h:242
Npp16uc
Definition: nppdefs.h:308
Super sampling.
Definition: nppdefs.h:99
Stride is less than the row length.
Definition: nppdefs.h:194
int width
Rectangle width.
Definition: nppdefs.h:435
Definition: nppdefs.h:213
Npp16sc
Definition: nppdefs.h:318
Indicates that CUDA 3.0 capable device is machine's default device.
Definition: nppdefs.h:249
Number overflows the upper or lower limit of the data type.
Definition: nppdefs.h:177
unsigned short Npp16u
16-bit unsigned integers
Definition: nppdefs.h:280
NppiNorm
Definition: nppdefs.h:597
Indicates that CUDA 1.3 capable device is machine's default device.
Definition: nppdefs.h:246
Alias name for NPP_RND_NEAR.
Definition: nppdefs.h:481
NppRoundMode
Rounding Modes.
Definition: nppdefs.h:468
size_t classifierStep
Definition: nppdefs.h:574
Indicates that the compute-capability query failed.
Definition: nppdefs.h:241
Definition: nppdefs.h:537
Npp32s * counterDevice
Definition: nppdefs.h:576
int histogramBlockSize
square histogram block size (pixels).
Definition: nppdefs.h:558
Indicates that CUDA 3.7 capable device is machine's default device.
Definition: nppdefs.h:252
Indicates that CUDA 6.3 capable device is machine's default device.
Definition: nppdefs.h:259
Definition: nppdefs.h:158
Npp32s * classifiers
packed classifier data 40 bytes each
Definition: nppdefs.h:573
Definition: nppdefs.h:538
Definition: nppdefs.h:207
Definition: nppdefs.h:535
Definition: nppdefs.h:112
NppiHuffmanTableType
Definition: nppdefs.h:592
short Npp16s
16-bit signed integers
Definition: nppdefs.h:281
Definition: nppdefs.h:111
unsigned int Npp32u
32-bit unsigned integers
Definition: nppdefs.h:282
Anchor point is outside mask.
Definition: nppdefs.h:196
Definition: nppdefs.h:205
signed char Npp8s
8-bit signed chars
Definition: nppdefs.h:279
Definition: nppdefs.h:206
unsigned long long Npp64u
64-bit unsigned integers
Definition: nppdefs.h:284
Nearest neighbor filtering.
Definition: nppdefs.h:93
Definition: nppdefs.h:130
Smooth edge filtering.
Definition: nppdefs.h:102
Alias name for NPP_RND_FINANCIAL.
Definition: nppdefs.h:492
Illegal channel index.
Definition: nppdefs.h:193
Default registration position.
Definition: nppdefs.h:110
double Npp64f
64-bit floating-point numbers
Definition: nppdefs.h:287
ZeroCrossing mode not supported.
Definition: nppdefs.h:160
Unsupported round mode.
Definition: nppdefs.h:171
Indicates that CUDA 6.0 capable device is machine's default device.
Definition: nppdefs.h:256
Indicates that CUDA 2.0 capable device is machine's default device.
Definition: nppdefs.h:247
Indicates that no operation was performed.
Definition: nppdefs.h:228
The NppiHOGConfig structure defines the configuration parameters for the HOG descriptor: ...
Definition: nppdefs.h:555
Indicates that CUDA 7.5 or better is machine's default device.
Definition: nppdefs.h:263
int numClassifiers
number of classifiers
Definition: nppdefs.h:572
2D Polar Point
Definition: nppdefs.h:408
int nHistogramBins
required number of histogram bins.
Definition: nppdefs.h:559
Two-parameter cubic filter (B=1/2, C=3/10)
Definition: nppdefs.h:98
Indicates that the quadrangle passed to one of affine warping functions doesn't have necessary proper...
Definition: nppdefs.h:230
NppsZCType
Definition: nppdefs.h:586
Step is less or equal zero.
Definition: nppdefs.h:208
NppiBorderType
Definition: nppdefs.h:513
One of the output image dimensions is less than 1 pixel.
Definition: nppdefs.h:175
float Npp32f
32-bit (IEEE) floating-point numbers
Definition: nppdefs.h:286
maximum
Definition: nppdefs.h:598
Npp32f rho
Definition: nppdefs.h:409
Indicates that CUDA 5.3 capable device is machine's default device.
Definition: nppdefs.h:255
Definition: nppdefs.h:449
Definition: nppdefs.h:123
Indicates that CUDA 1.0 capable device is machine's default device.
Definition: nppdefs.h:243
Definition: nppdefs.h:211
Definition: nppdefs.h:451
Definition: nppdefs.h:540
Definition: nppdefs.h:157
Definition: nppdefs.h:164
NppiAlphaOp
Definition: nppdefs.h:534
Definition: nppdefs.h:517
Divisor is equal to zero.
Definition: nppdefs.h:191
All values of the mask are zero.
Definition: nppdefs.h:184
Definition: nppdefs.h:570
Definition: nppdefs.h:155
Indicates that CUDA 3.2 capable device is machine's default device.
Definition: nppdefs.h:250
NppHintAlgorithm
Definition: nppdefs.h:524
Definition: nppdefs.h:452
Definition: nppdefs.h:159
Generic Lanczos filtering with order 3.
Definition: nppdefs.h:101
Definition: nppdefs.h:113
Definition: nppdefs.h:199
Definition: nppdefs.h:141
Cubic interpolation.
Definition: nppdefs.h:95
2D Point
Definition: nppdefs.h:399
Two-parameter cubic filter (B=0, C=1/2)
Definition: nppdefs.h:97
Definition: nppdefs.h:165
struct NPP_ALIGN_8 Npp32fc
Complex Number This struct represents a single floating-point complex number.
Definition: nppdefs.h:541
Definition: nppdefs.h:219
Lanczos filtering.
Definition: nppdefs.h:100
The quadrangle is nonconvex or degenerates into triangle, line or point.
Definition: nppdefs.h:185
Successful operation (same as NPP_NO_ERROR)
Definition: nppdefs.h:225
Npp32f im
Imaginary part.
Definition: nppdefs.h:347
Definition: nppdefs.h:140
Number of levels for histogram is less than 2.
Definition: nppdefs.h:179
Definition: nppdefs.h:220
Two-parameter cubic filter (B=1, C=0)
Definition: nppdefs.h:96
Definition: nppdefs.h:266
Npp32s im
Imaginary part.
Definition: nppdefs.h:337
Definition: nppdefs.h:129
NppiDifferentialKernel
Differential Filter types.
Definition: nppdefs.h:138
int height
Rectangle height.
Definition: nppdefs.h:436