Samples
June 30, 2026 · View on GitHub
MIVisionX samples demonstrating AMD OpenVX™ and the RunVX graph executor.
- GDF samples — OpenVX graphs run with RunVX
- C/C++ samples — OpenVX API usage in C/C++
Setup
Add MIVisionX to your environment before running any sample:
export PATH=$PATH:/opt/rocm/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rocm/lib
GDF - Graph Description Format
MIVisionX GDF samples using RunVX. Run from the samples/gdf/ directory.
skintonedetect.gdf
Detects skin-tone pixels in an image using color thresholding.
runvx gdf/skintonedetect.gdf
canny.gdf
Runs Canny edge detection on a sample image.
runvx gdf/canny.gdf
Live camera variants
runvx -frames:live gdf/skintonedetect-LIVE.gdf
runvx -frames:live gdf/canny-LIVE.gdf
C/C++ Samples for OpenVX
Canny Edge Detector
cd c_samples/canny/
cmake .
make
./cannyDetect --image <path/to/image>
./cannyDetect --live