The Image Pyramid PVA sample demonstrates the image pyramid creation pipeline on hardware units:
The Image Pyramid PVA sample accepts RAW videos, h264 videos, or live camera input data from an AR0231 (revision >= 4) sensor. It then applies gaussain based scaling algorithm to create images for specified number of levels.
The Image Pyramid pva sample, sample_image_pyramid_pva, accepts the following optional parameters. If none are specified, it performs detections on a supplied pre-recorded video.
./sample_image_pyramid_pva --input-type=[video|camera]
--video=[path/to/video]
--camera-type=[camera]
--camera-group=[a|b|c|d]
--camera-index=[0|1|2|3]
--pyrLevel=[1-3]
--pvaNo=[0|1]
Where:
--input-type=[video|camera]
Defines if the input is from live camera or from a recorded video.
Live camera is supported only on NVIDIA DRIVE(tm) platforms.
It is not supported on Linux (x86 architecture) host systems.
Default value: video
--video=[path/to/video]
Specifies the absolute or relative path of a raw or h264 recording.
Only applicable if --input-type=video
Default value: path/to/data/samples/stereo/left_1.h264
--camera-type=[camera]
Specifies a supported AR0231 `RCCB` sensor.
Only applicable if --input-type=camera.
Default value: ar0231-rccb-bae-sf3324
--camera-group=[a|b|c]
Is the group where the camera is connected to.
Only applicable if --input-type=camera.
Default value: a
--camera-index=[0|1|2|3]
Indicates the camera index on the given port.
Default value: 0
--pyrLevel=[1-3]
Indicates the number of levels in a pyramid.
Default value: 1
--pvaNo=[0|1]
Indicates on which PVA engine the corresponding stage of the pipeline is to be executed.
Default value: 0
./sample_image_pyramid_pva --input-type=video --video=<video file>
./sample_image_pyramid_pva --input-type=camera --camera-type=<camera type> --camera-group=<camera group> --camera-index=<camera idx on camera group>
./sample_image_pyramid_pva --pyrLevel=3 --pvaNo=1
For more information, see Filtering.