You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I would like to use the slice_acquisition() function to extract 2D slices from a 3D volume, but I am unsure about how to properly configure the input parameters.
I have a 3D volume with the following properties:
Size: 𝑁×𝐻×𝑊
Spacing: (𝑠𝑥,𝑠𝑦,𝑠𝑧)
Orientation matrix: 𝑀 (3×3)
Origin: (𝑥,𝑦,𝑧)
I would like to extract a 2D slice of size 𝐻1×𝑊1, with spacing (𝑠𝑥1,𝑠𝑦1) using the slice_acquisition() function and a known transformation matrix 𝑇 (4×4), which implements the same function as:
resampler = sitk.ResampleImageFilter()
resampler.SetOutputDirection(slice_orientation])
resampler.SetOutputOrigin(slice_origin)
resampler.SetOutputSpacing(slice_spacing)
resampler.SetSize(slice_shape)
resampler.SetInterpolator(sitk.sitkNearestNeighbor)
# Resample the volume on the arbitrary plane
sliced_image = resampler.Execute(volume)
Thank you!
The text was updated successfully, but these errors were encountered:
Hi, I would like to use the slice_acquisition() function to extract 2D slices from a 3D volume, but I am unsure about how to properly configure the input parameters.
I have a 3D volume with the following properties:
Size: 𝑁×𝐻×𝑊
Spacing: (𝑠𝑥,𝑠𝑦,𝑠𝑧)
Orientation matrix: 𝑀 (3×3)
Origin: (𝑥,𝑦,𝑧)
I would like to extract a 2D slice of size 𝐻1×𝑊1, with spacing (𝑠𝑥1,𝑠𝑦1) using the slice_acquisition() function and a known transformation matrix 𝑇 (4×4), which implements the same function as:
Thank you!
The text was updated successfully, but these errors were encountered: