Skip to content

Commit

Permalink
Revert "mrpeek: focus is explicitly integer valued"
Browse files Browse the repository at this point in the history
This reverts commit fb17b89.
  • Loading branch information
maxpietsch committed Oct 30, 2020
1 parent fb17b89 commit 0b73d2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/mrpeek.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ void usage ()

+ Option ("focus",
"set focus (crosshairs) at specified position, as a comma-separated "
"list of integer-valued voxel indices. Use empty entries to leave as default (e.g. '-focus ,,100' "
"list of values. Use empty entries to leave as default (e.g. '-focus ,,100' "
"to place the focus on slice 100 along the z-axis, or '-focus ,,,4' to "
"select volume 4).")
+ Argument ("pos").type_sequence_int()
+ Argument ("pos").type_sequence_float()

+ Option ("levels",
"number of intensity levels in the colourmap. Default is 32.")
Expand Down Expand Up @@ -936,7 +936,7 @@ void run ()

opt = get_options ("focus");
if (opt.size()) {
vector<int> p = opt[0][0];
vector<default_type> p = opt[0][0];
if (p.size() > image.ndim())
throw Exception ("number of indices passed to -focus option exceeds image dimensions");
for (unsigned int n = 0; n < p.size(); ++n) {
Expand Down

0 comments on commit 0b73d2d

Please sign in to comment.