Skip to content

Latest commit

 

History

History
 
 

batchedLabelMarkersAndCompression

Batched Image connected region Label Markers And Compression using NPP

Description

This code demonstrates Batched Image connected region Label Markers and Compression utility using NPP library.

Key Concepts

Image connected region Label Markers and Compression

Supported SM Architectures

SM 5.0 SM 5.2 SM 6.0 SM 6.1 SM 7.0 SM 7.2 SM 7.5 SM 8.0

Supported OSes

Linux Windows

Supported CPU Architecture

x86_64

CUDA APIs involved

NPP

Architecture

  • Image connected region label markers and compression.

Building (make)

Prerequisites

Build command on Linux

$ mkdir build
$ cd build
$ cmake ..
$ make

Build command on Windows

$ mkdir build
$ cd build
$ cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
$ Open batchedLabelMarkersAndCompression.sln project in Visual Studio 15 2017 and build

Usage

./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.