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

mrcolour: png upside down #2179

Closed
maxpietsch opened this issue Sep 28, 2020 · 3 comments
Closed

mrcolour: png upside down #2179

maxpietsch opened this issue Sep 28, 2020 · 3 comments
Labels
Milestone

Comments

@maxpietsch
Copy link
Member

mrcolour produces pngs that are upside down. macOS, PNG library: Header: 1.6.37; library: 1.6.37

wget https://github.com/MRtrix3/script_test_data/raw/master/BIDS/sub-02/dwi/sub-02_dwi.nii.gz
mrconvert sub-02_dwi.nii.gz -coord 3 0 -coord 0 15  sag.mif
mrcolour sag.mif gray sag.png

mrconvert sub-02_dwi.nii.gz -coord 3 0 -coord 1 15  cor.mif
mrcolour cor.mif gray cor.png

cor
sag

@maxpietsch maxpietsch added the bug label Sep 28, 2020
@Lestropie
Copy link
Member

Applies to the PNG format generally, not specifically to mrcolour.

I spent some time getting this right, so not quite sure what happened at the tail end of #1541 to send it skewiff again.

@Lestropie Lestropie added this to the 3.1.0 updates milestone Dec 7, 2022
@Lestropie
Copy link
Member

@jdtournier suggested that user stride request could be used to attribute image axes to 2D PNG axes. This might be possible. I need to essentially re-write the relevant section of code as it is to try to address this, so I'll try to keep this prospect in mind.

@Lestropie
Copy link
Member

Closing as issue became part of the expanded scope of #2713.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants