52 #include <cuda_runtime.h>
79 #define NPP_HALF_TO_NPP16F(pHalf) (* reinterpret_cast<Npp16f *>((void *)(pHalf)))
83 #if defined(_WIN32) && !defined(_WIN64)
94 #define NPP_ALIGN_8 __align__(8)
95 #define NPP_ALIGN_16 __align__(16)
364 #define NPP_MIN_8U ( 0 )
365 #define NPP_MAX_8U ( 255 )
366 #define NPP_MIN_16U ( 0 )
367 #define NPP_MAX_16U ( 65535 )
368 #define NPP_MIN_32U ( 0 )
369 #define NPP_MAX_32U ( 4294967295U )
370 #define NPP_MIN_64U ( 0 )
371 #define NPP_MAX_64U ( 18446744073709551615ULL )
373 #define NPP_MIN_8S (-127 - 1 )
374 #define NPP_MAX_8S ( 127 )
375 #define NPP_MIN_16S (-32767 - 1 )
376 #define NPP_MAX_16S ( 32767 )
377 #define NPP_MIN_32S (-2147483647 - 1 )
378 #define NPP_MAX_32S ( 2147483647 )
379 #define NPP_MAX_64S ( 9223372036854775807LL )
380 #define NPP_MIN_64S (-9223372036854775807LL - 1)
382 #define NPP_MINABS_32F ( 1.175494351e-38f )
383 #define NPP_MAXABS_32F ( 3.402823466e+38f )
384 #define NPP_MINABS_64F ( 2.2250738585072014e-308 )
385 #define NPP_MAXABS_64F ( 1.7976931348623158e+308 )
555 #define NPP_HOG_MAX_CELL_SIZE (16)
556 #define NPP_HOG_MAX_BLOCK_SIZE (64)
557 #define NPP_HOG_MAX_BINS_PER_CELL (16)
558 #define NPP_HOG_MAX_CELLS_PER_DESCRIPTOR (256)
559 #define NPP_HOG_MAX_OVERLAPPING_BLOCKS_PER_DESCRIPTOR (256)
560 #define NPP_HOG_MAX_DESCRIPTOR_LOCATIONS_PER_CALL (128)
599 Npp32u aSeedPixelValue[3];
Definition: nppdefs.h:623
Definition: nppdefs.h:442
Definition: nppdefs.h:535
Definition: nppdefs.h:222
Definition: nppdefs.h:228
Definition: nppdefs.h:180
Speed reduction due to uncoalesced memory accesses warning.
Definition: nppdefs.h:253
Channel of interest is not 1, 2, or 3.
Definition: nppdefs.h:208
NppiMaskSize
Fixed filter-kernel sizes.
Definition: nppdefs.h:137
Npp32f re
Real part.
Definition: nppdefs.h:338
int nMaxThreadsPerMultiProcessor
Definition: nppdefs.h:640
Image pixels are constant for quality index.
Definition: nppdefs.h:191
Definition: nppdefs.h:512
Definition: nppdefs.h:149
Npp32u im
Imaginary part.
Definition: nppdefs.h:319
struct NPP_ALIGN_8 Npp32uc
Complex Number This struct represents an unsigned int complex number.
int height
Rectangle height.
Definition: nppdefs.h:413
Round to the nearest even integer.
Definition: nppdefs.h:472
Definition: nppdefs.h:146
General image descriptor.
Definition: nppdefs.h:607
int haarBufferSize
size of the buffer
Definition: nppdefs.h:573
Definition: nppdefs.h:434
unsigned char Npp8u
8-bit unsigned chars
Definition: nppdefs.h:270
Definition: nppdefs.h:140
Definition: nppdefs.h:181
Definition: nppdefs.h:235
Definition: nppdefs.h:230
Definition: nppdefs.h:187
struct __align__(2)
Complex Number This struct represents an unsigned char complex number.
Definition: nppdefs.h:286
int nCudaDeviceId
Definition: nppdefs.h:638
Complex Number This struct represents an unsigned int complex number.
Definition: nppdefs.h:316
Definition: nppdefs.h:511
int y
y-coordinate of upper left corner (lowest memory address).
Definition: nppdefs.h:426
int nStep
Definition: nppdefs.h:610
sum
Definition: nppdefs.h:591
Npp64f re
Real part.
Definition: nppdefs.h:358
Definition: nppdefs.h:185
Definition: nppdefs.h:144
Definition: nppdefs.h:145
Definition: nppdefs.h:518
int y
y-coordinate.
Definition: nppdefs.h:394
int nCudaDevAttrComputeCapabilityMajor
Definition: nppdefs.h:643
NppiAxis
Definition: nppdefs.h:431
Definition: nppdefs.h:239
Definition: nppdefs.h:179
Definition: nppdefs.h:184
Definition: nppdefs.h:219
cudaStream_t hStream
Definition: nppdefs.h:637
The given ROI has no interestion with either the source or destination ROI.
Definition: nppdefs.h:249
NppiBayerGridPosition
Bayer Grid Position Registration.
Definition: nppdefs.h:126
Npp64s re
Real part.
Definition: nppdefs.h:348
NppiSize detectionWindowSize
detection window size (pixels).
Definition: nppdefs.h:552
Definition: nppdefs.h:186
sign change XOR
Definition: nppdefs.h:580
AC Table.
Definition: nppdefs.h:586
NppStatus
Error Status Codes.
Definition: nppdefs.h:170
Definition: nppdefs.h:227
Bad or unsupported number of channels.
Definition: nppdefs.h:207
Npp8uc
Definition: nppdefs.h:290
Image size isn't multiple of two.
Definition: nppdefs.h:251
Definition: nppdefs.h:435
Definition: nppdefs.h:537
Definition: nppdefs.h:571
Npp32f theta
Definition: nppdefs.h:402
Definition: nppdefs.h:110
Definition: nppdefs.h:538
Npp32u re
Real part.
Definition: nppdefs.h:318
int nCudaDevAttrComputeCapabilityMinor
Definition: nppdefs.h:644
Wrong order of the destination channels.
Definition: nppdefs.h:201
Complex Number This struct represents a long long complex number.
Definition: nppdefs.h:346
Npp32s * haarBuffer
buffer
Definition: nppdefs.h:574
sign change count_0
Definition: nppdefs.h:581
Definition: nppdefs.h:433
int nMaxThreadsPerBlock
Definition: nppdefs.h:641
Npp64s im
Imaginary part.
Definition: nppdefs.h:349
Npp32s re
Real part.
Definition: nppdefs.h:328
Definition: nppdefs.h:233
Definition: nppdefs.h:624
Step value is not pixel multiple.
Definition: nppdefs.h:196
Linear interpolation.
Definition: nppdefs.h:112
2D Size This struct typically represents the size of a a rectangular region in two space...
Definition: nppdefs.h:410
NppCmpOp
Definition: nppdefs.h:438
Definition: nppdefs.h:517
Definition: nppdefs.h:139
size_t nSharedMemPerBlock
Definition: nppdefs.h:642
Npp64f im
Imaginary part.
Definition: nppdefs.h:359
Definition: nppdefs.h:221
Definition: nppdefs.h:507
Definition: nppdefs.h:536
Round towards zero (truncation).
Definition: nppdefs.h:493
square root of sum of squares
Definition: nppdefs.h:592
Size of the rectangle region is less than or equal to 1.
Definition: nppdefs.h:204
Definition: nppdefs.h:528
Definition: nppdefs.h:626
Processed data is corrupted.
Definition: nppdefs.h:200
int x
x-coordinate.
Definition: nppdefs.h:393
Definition: nppdefs.h:440
Definition: nppdefs.h:236
Definition: nppdefs.h:143
struct NPP_ALIGN_16 Npp64sc
Complex Number This struct represents a long long complex number.
unsigned int nStreamFlags
Definition: nppdefs.h:645
Number of levels for LUT is less than 2.
Definition: nppdefs.h:198
int width
Rectangle width.
Definition: nppdefs.h:412
int build
Build number.
Definition: nppdefs.h:261
int x
x-coordinate of upper left corner (lowest memory address).
Definition: nppdefs.h:425
Definition: nppdefs.h:508
Definition: nppdefs.h:142
Definition: nppdefs.h:510
NppiRect oBoundingBox
x, y, width, height == left, top, right, and bottom pixel coordinates
Definition: nppdefs.h:597
Definition: nppdefs.h:234
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.
long long Npp64s
64-bit signed integers
Definition: nppdefs.h:277
Definition: nppdefs.h:531
int cellSize
square cell size (pixels).
Definition: nppdefs.h:549
Definition: nppdefs.h:218
Definition: nppdefs.h:220
int major
Major version number.
Definition: nppdefs.h:259
Definition: nppdefs.h:534
int Npp32s
32-bit signed integers
Definition: nppdefs.h:275
sign change
Definition: nppdefs.h:579
Definition: nppdefs.h:539
Definition: nppdefs.h:519
Lower bound is larger than upper bound.
Definition: nppdefs.h:215
int minor
Minor version number.
Definition: nppdefs.h:260
NppiInterpolationMode
Filtering methods.
Definition: nppdefs.h:108
Divisor is zero however does not terminate the execution.
Definition: nppdefs.h:247
Round according to financial rule.
Definition: nppdefs.h:483
Definition: nppdefs.h:622
The given quadrangle has no intersection with either the source or destination ROI.
Definition: nppdefs.h:250
short fp16_1
Definition: nppdefs.h:75
Unallowable values of the transformation coefficients.
Definition: nppdefs.h:205
Alias name for NPP_RND_ZERO.
Definition: nppdefs.h:494
Definition: nppdefs.h:232
2D Rectangle This struct contains position and size information of a rectangle in two space...
Definition: nppdefs.h:423
DC Table.
Definition: nppdefs.h:585
void * pData
Definition: nppdefs.h:609
NppiSize classifierSize
Definition: nppdefs.h:567
Error free operation.
Definition: nppdefs.h:242
Npp16uc
Definition: nppdefs.h:300
Super sampling.
Definition: nppdefs.h:117
Stride is less than the row length.
Definition: nppdefs.h:212
int width
Rectangle width.
Definition: nppdefs.h:427
Definition: nppdefs.h:231
Npp16sc
Definition: nppdefs.h:310
short fp16
Definition: nppdefs.h:67
Number overflows the upper or lower limit of the data type.
Definition: nppdefs.h:195
unsigned short Npp16u
16-bit unsigned integers
Definition: nppdefs.h:272
NppiNorm
Definition: nppdefs.h:589
Alias name for NPP_RND_NEAR.
Definition: nppdefs.h:473
NPP stream context structure must be filled in by application.
Definition: nppdefs.h:635
NppRoundMode
Rounding Modes.
Definition: nppdefs.h:460
size_t classifierStep
Definition: nppdefs.h:566
Definition: nppdefs.h:529
Npp32s * counterDevice
Definition: nppdefs.h:568
int histogramBlockSize
square histogram block size (pixels).
Definition: nppdefs.h:550
Definition: nppdefs.h:176
Npp32s * classifiers
packed classifier data 40 bytes each
Definition: nppdefs.h:565
Definition: nppdefs.h:530
Definition: nppdefs.h:225
Definition: nppdefs.h:527
Definition: nppdefs.h:130
NppiHuffmanTableType
Definition: nppdefs.h:584
NppiSize oSize
Definition: nppdefs.h:611
short Npp16s
16-bit signed integers
Definition: nppdefs.h:273
Definition: nppdefs.h:129
unsigned int Npp32u
32-bit unsigned integers
Definition: nppdefs.h:274
Anchor point is outside mask.
Definition: nppdefs.h:214
Definition: nppdefs.h:223
signed char Npp8s
8-bit signed chars
Definition: nppdefs.h:271
Definition: nppdefs.h:224
unsigned long long Npp64u
64-bit unsigned integers
Definition: nppdefs.h:276
Nearest neighbor filtering.
Definition: nppdefs.h:111
Definition: nppdefs.h:148
Smooth edge filtering.
Definition: nppdefs.h:120
Alias name for NPP_RND_FINANCIAL.
Definition: nppdefs.h:484
Illegal channel index.
Definition: nppdefs.h:211
NppiWatershedSegmentBoundaryType
Provides control of the type of segment boundaries, if any, added to the image generated by the water...
Definition: nppdefs.h:620
Default registration position.
Definition: nppdefs.h:128
double Npp64f
64-bit floating-point numbers
Definition: nppdefs.h:279
ZeroCrossing mode not supported.
Definition: nppdefs.h:178
Unsupported round mode.
Definition: nppdefs.h:189
Indicates that no operation was performed.
Definition: nppdefs.h:246
The NppiHOGConfig structure defines the configuration parameters for the HOG descriptor: ...
Definition: nppdefs.h:547
int numClassifiers
number of classifiers
Definition: nppdefs.h:564
2D Polar Point
Definition: nppdefs.h:400
Definition: nppdefs.h:595
int nHistogramBins
required number of histogram bins.
Definition: nppdefs.h:551
Two-parameter cubic filter (B=1/2, C=3/10)
Definition: nppdefs.h:116
Indicates that the quadrangle passed to one of affine warping functions doesn't have necessary proper...
Definition: nppdefs.h:248
Npp32u nConnectedPixelCount
total number of pixels in connected region
Definition: nppdefs.h:598
NppsZCType
Definition: nppdefs.h:578
int nMultiProcessorCount
Definition: nppdefs.h:639
Step is less or equal zero.
Definition: nppdefs.h:226
NppiBorderType
Definition: nppdefs.h:505
One of the output image dimensions is less than 1 pixel.
Definition: nppdefs.h:193
float Npp32f
32-bit (IEEE) floating-point numbers
Definition: nppdefs.h:278
maximum
Definition: nppdefs.h:590
Npp32f rho
Definition: nppdefs.h:401
Definition: nppdefs.h:441
Definition: nppdefs.h:141
Definition: nppdefs.h:229
int nReserved0
Definition: nppdefs.h:646
Definition: nppdefs.h:443
Definition: nppdefs.h:532
Definition: nppdefs.h:175
Definition: nppdefs.h:182
NppiAlphaOp
Definition: nppdefs.h:526
Definition: nppdefs.h:509
Divisor is equal to zero.
Definition: nppdefs.h:209
All values of the mask are zero.
Definition: nppdefs.h:202
Definition: nppdefs.h:562
Definition: nppdefs.h:173
NppHintAlgorithm
Definition: nppdefs.h:516
Definition: nppdefs.h:444
Definition: nppdefs.h:177
Generic Lanczos filtering with order 3.
Definition: nppdefs.h:119
Definition: nppdefs.h:131
Definition: nppdefs.h:217
Definition: nppdefs.h:159
Cubic interpolation.
Definition: nppdefs.h:113
2D Point
Definition: nppdefs.h:391
Definition: nppdefs.h:625
Two-parameter cubic filter (B=0, C=1/2)
Definition: nppdefs.h:115
Definition: nppdefs.h:183
struct NPP_ALIGN_8 Npp32fc
Complex Number This struct represents a single floating-point complex number.
Definition: nppdefs.h:533
Definition: nppdefs.h:237
Lanczos filtering.
Definition: nppdefs.h:118
short fp16_0
Definition: nppdefs.h:74
The quadrangle is nonconvex or degenerates into triangle, line or point.
Definition: nppdefs.h:203
Successful operation (same as NPP_NO_ERROR)
Definition: nppdefs.h:243
Npp32f im
Imaginary part.
Definition: nppdefs.h:339
Definition: nppdefs.h:158
Number of levels for histogram is less than 2.
Definition: nppdefs.h:197
Definition: nppdefs.h:238
Two-parameter cubic filter (B=1, C=0)
Definition: nppdefs.h:114
Definition: nppdefs.h:257
Npp32s im
Imaginary part.
Definition: nppdefs.h:329
Definition: nppdefs.h:147
NppiDifferentialKernel
Differential Filter types.
Definition: nppdefs.h:156
int height
Rectangle height.
Definition: nppdefs.h:428