SMILX
1.01
|
A swiss-army knife of image processing. This application implements single/batch processing of images with various processing options found in the SMILI library.You are able to smooth, mask, threshold etc. a number of images easily via the commandline with this application (use –help). This application uses the milxImage class to do all processing. More...
#include <vector>
#include <tclap/CmdLine.h>
#include <milxFile.h>
#include <milxImage.h>
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
A swiss-army knife of image processing. This application implements single/batch processing of images with various processing options found in the SMILI library.
You are able to smooth, mask, threshold etc. a number of images easily via the commandline with this application (use –help). This application uses the milxImage class to do all processing.
In the following examples, to process all nifti images in MRIs directory (you can just provide a single image filename to do just one):
Otsu multiple threshold:
milxImageApp --Otsu 128 features/median/*.nii.gz --labels 4 -p features/Otsu/Otsu_128bins_
Rescale image intensities:
milxImageApp --rescale MRIs/*.nii.gz --above 255 --below 0 -p features/rescale/rescale_
Labelling info:
milxImageApp --info --labels 0 Labels/*.nii.gz
The unique label values present in each image is output. A concatenated output is provided at the end for analysis (histograms etc.)
Checkerboards Atlas_MRI_Mean2_R_Preprocessed_x2.nii.gz to all Nifti images in current directory and writes to files with prefix check_:
milxImageApp --checkerboard SyngoHipData/Atlas_MRI_Mean2_R_Preprocessed_x2.nii.gz *.nii.gz -p check_
Definition in file milxImageApp.cxx.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Program Info
Process Arguments
Optional
Switches XOR Switches
Mandatory
Add argumnets
XOR args
Parse the argv array.
Get the value parsed by each arg.
Setup ITK Threads
Display operation
Check if output argument given and only doing one image
Open files
Operate
Write result, separate as some members convert to/from labelled images
Definition at line 69 of file milxImageApp.cxx.