Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about MRI2DSegmentationDataset Coronal and Sagittal view #16

Open
MohitTare opened this issue Dec 4, 2018 · 0 comments
Open

Comments

@MohitTare
Copy link
Contributor

While exploring the code i saw that when we are trying to create a dataloader for Coronal and Sagittal view of the NIFTI image we get same dataset length as the axial view (slice_axis=2).

If we wanted to plot a sagittal view directly from NIFTI image we would usually do the following in base numpy

sg = np.transpose(img_data, [1, 2,0])
sg = np.rot90(sg, 1)

The plot the particular sagittal slice with nth slice number

plt.imshow(sg[:,:,n], cmap='gray',aspect = 5)

But i am not sure how we can have this with current implementation of dataset. Wont the dataset have a different length (x dimension in this case). Please let me know if my understanding is correct on this or in case i am missing something out

@MohitTare MohitTare changed the title Question about mt_datasets.MRI2DSegmentationDataset Coronal and Sagittal view Question about MRI2DSegmentationDataset Coronal and Sagittal view Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant