In this tutorial we will look at how to get started with the ImageProcessing library and process your first images.
|
Decide on the image you want to process. You can also process several images at once, in which case specify the path to the directory with your images.
In the command line parameter "-i" use the path to the image, for "-o" use the path where you want to save the image.
NOTE: Do not use the same directory as your images for saving, if you do, you will lose the original images!
Decide on the modifications you want to apply to the image. Here is a complete list of available modifications:
Use the selected modification or modification list for the "-mod" parameter.
By default, all processing will be done at the expense of the CPU. If you want to process images using GPGPU, use the "-gpu" parameter (if the device has a video card):
In the case of processing a large number of images, it would be logical to utilize the parallel processing power of your device. To do this, use the "-ag" or "-sag" parameter. The "-ag" parameter will split image processing and saving tasks into two separate computational threads. The "-sag" parameter will allocate the number of threads you need to process and save images independently. For this parameter you should specify the number of threads you need.
The end result may look like the following:
|