This code demonstrates Batched Image connected region Label Markers and Compression utility using NPP library.
Image connected region Label Markers and Compression
SM 5.0 SM 5.2 SM 6.0 SM 6.1 SM 7.0 SM 7.2 SM 7.5 SM 8.0
Linux Windows
x86_64
- Image connected region label markers and compression.
- A Linux/Windows system with recent NVIDIA drivers.
- Install the CUDA 11.0 toolkit.
$ mkdir build
$ cd build
$ cmake ..
$ make
$ mkdir build
$ cd build
$ cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
$ Open batchedLabelMarkersAndCompression.sln project in Visual Studio 15 2017 and build
./batchedLabelMarkersAndCompression -h
Usage: ./batchedLabelMarkersAndCompression [-b number-of-batch]
Parameters:
number-of-batch : Use number of batch to process [default 5]
Example:
$ ./batchedLabelMarkersAndCompression -b 5
./batchedLabelMarkersAndCompression
NPP Library Version 11.0.0
CUDA Driver Version: 11.0
CUDA Runtime Version: 11.0
Input file load succeeded. Lena_CompressedMarkerLabelsUF_8Way_512x512_32u succeeded, compressed label count is 497.
Input file load succeeded. CT_Skull_CompressedMarkerLabelsUF_8Way_512x512_32u succeeded, compressed label count is 343.
Input file load succeeded. PCB_METAL_CompressedMarkerLabelsUF_8Way_509x335_32u succeeded, compressed label count is 3680.
Input file load succeeded. PCB2_CompressedMarkerLabelsUF_8Way_1024x683_32u succeeded, compressed label count is 1081.
Input file load succeeded. PCB_CompressedMarkerLabelsUF_8Way_1280x720_32u succeeded, compressed label count is 1085.