Intensity correction
Intensity correction for data with inhomogeneity issues. Performs correction on CLARITY tiff data in parallel using N4.
Creates a downsampled nifti from the tiff data
Runs N4 ‘bias field’/intensity correction on the nifti file
Up-samples the output bias field and applies it to the tiff data
Command-line
Usage:
$ miracl utils int_corr -f [ input_tiff_folder ] -od [ output_folder ] -s [ shrink_factor] -cn [ channel_num ] -cp [ channel_prefix ] -p [ power ]
Example:
$ miracl utils int_corr -f tiff_folder -od bias_corr_folder
Required arguments:
Flags |
Description |
Default Default |
---|---|---|
-f, –folder |
Input CLARITY TIFF folder/dir |
No default. Input folder must be provided by user. |
Optional arguments:
Flags |
Description |
Default |
---|---|---|
-od, --outdir |
Output folder name |
|
-cn, --channum |
Chan # for extracting single channel from multiple channel |
|
-cp, --chanprefix |
Chan prefix (string before channel number in file name). Example: |
|
-ch, --channame |
Output chan name |
|
-on, --outnii |
Output nii name (script will append downsample ratio & channel info to given name) |
|
-vx, --resx |
Original resolution in x-y plane in |
|
-vz, --resz |
Original thickness (z-axis resolution/spacing between slices) in um |
|
-m, --maskimg |
Mask images before |
|
-s, --segment |
Perform level-set seg using brain mask to get a dilated |
|
-d, --down |
Downsample/shrink factor to run bias corr on downsampled |
|
-n, --noise |
Noise parameter for histogram sharpening - deconvolution |
|
-b, --bins |
Histogram bins |
|
-k, --fwhm |
FWHM for histogram sharpening - deconvolution |
|
-l, --levels |
Number of levels for |
|
-it, --iters |
Number of iterations per level for convergence |
|
-t, --thresh |
Threshold per iteration for |
|
-p, --mulpower |
Use the bias field raised to a power of |
|