How-To use ImageProcessing CLI

Overview


The CLI accepts several command-line arguments that control the behavior of the image processing application. Below is a list of available command-line arguments and their descriptions.

InputPath

OutputPath

AgentsSupport

ProcessingUnit

Transformations

Usage


Before usage, go to specify directory:

cd /path/to/ImageProcessing/src/ImageProcessing

To process images from one directory and save them to another, you can use the following commands.

dotnet run -in /input/path -out /output/path -agent=full -unit=cpu gauss
dotnet run -in /input/path -out /output/path  -agent=no -unit=anygpu gauss sharpen

Examples


Before usage, go to specify directory:

cd /path/to/ImageProcessing/src/ImageProcessing
  1. Process images using the CPU with Gauss filter:

    dotnet run -in "input_directory" -out "output_directory" -unit=cpu gauss
    
  2. Process images using an Nvidia GPU with full agent support and rotations:

    dotnet run -in "input_directory" -out "output_directory" -unit=NvidiaGPU -agent=Full -rotationl -rotationr