CLI reference¶
blockmatchingw provides subcommands for all 16 BlockMatching tools. Option
names use descriptive English instead of the terse original flags.
Original help
Every subcommand supports -h to print the original BlockMatching help
message, and --help for the blockmatchingw help.
install¶
Download and install BlockMatching binaries for your platform.
| Option | Short | Description |
|---|---|---|
--output-dir |
-o |
Directory to install binaries into (default: ~/.local/bin) |
blockmatching¶
Block matching-based image registration.
blockmatchingw blockmatching \
--reference ref.nii.gz \
--floating flo.nii.gz \
--result-transformation trsf.txt
Common options:
| Option | Description |
|---|---|
--reference |
Reference (target/fixed) image |
--floating |
Floating (source/moving) image |
--result |
Resampled output image |
--result-transformation |
Output transformation |
--transformation-type |
Type of transformation (e.g., rigid, affine, vectorfield) |
--pyramid-lowest-level |
Lowest pyramid level |
--pyramid-highest-level |
Highest pyramid level |
apply-trsf¶
Apply a transformation to an image.
blockmatchingw apply-trsf \
--floating input.nii.gz \
--result output.nii.gz \
--transformation trsf.txt \
--reference ref.nii.gz
apply-trsf-to-points¶
Apply a transformation to a set of points.
compose-trsf¶
Compose multiple transformations.
copy-trsf¶
Copy and convert transformations.
create-grid¶
Create a deformation grid visualization.
create-trsf¶
Create a transformation (identity, random, etc.).
crop-image¶
Crop an image.
intermediary-trsf¶
Compute intermediary transformations.
interpolate-images¶
Interpolate between two images.
blockmatchingw interpolate-images \
--floating img0.nii.gz \
--reference img1.nii.gz \
--result-format interp_%03d.nii.gz \
--transformation trsf.txt \
--nimages 10
inv-trsf¶
Invert a transformation.
pointmatching¶
Point matching-based registration.
blockmatchingw pointmatching \
--reference ref_points.txt \
--floating flo_points.txt \
--result-transformation trsf.txt
build-pyramid-image¶
Build image pyramids.
print-image¶
Print image information.
print-trsf¶
Print transformation information.
test-libio¶
Test I/O library.