This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
pipeline:utilities:sp_center_2d3d [2020/05/22 16:18] shaikh |
pipeline:utilities:sp_center_2d3d [2021/02/18 16:24] shaikh |
||
---|---|---|---|
Line 38: | Line 38: | ||
sp_center_2d3d.py input_binary_volume output_directory --applyshift=volume_to_be_centered | sp_center_2d3d.py input_binary_volume output_directory --applyshift=volume_to_be_centered | ||
| | ||
- | Generate the input binary volume using, for example, sp_mask.py. An adaptive mask is fine also; it will be thresholded. The mask will be centered, and those shifts will be applied to the volume to be shifted. | + | Generate the input binary volume using, for example, |
\\ __5. Center a binarized volume by finding a box that encloses it and centering that box__: | \\ __5. Center a binarized volume by finding a box that encloses it and centering that box__: | ||
Line 50: | Line 50: | ||
sp_center_2d3d.py volume_to_be_centered output_directory --mode=blob --volradius=volume_radius | sp_center_2d3d.py volume_to_be_centered output_directory --mode=blob --volradius=volume_radius | ||
| | ||
- | If you volume to be centered isn't round, try the radius in the smallest dimension. | + | If your volume to be centered isn't round, try the radius in the smallest dimension. |
\\ | \\ |