Skip to content

allow specifying different resolution #4

@KrisThielemans

Description

@KrisThielemans

toPetMmR has an an outres parameter

brainweb/brainweb/utils.py

Lines 398 to 399 in 202eb40

def toPetMmr(im, pad=True, dtype=np.float32, outres="mMR", modes=None,
PetClass=FDG):

It would be nice to be able to pass this to the higher level get_mmr and get_mmr_fromfile as well, such that we can get images at different voxel-size out.

It would be even better to be able to specify arbitrary voxel-size/shape, but that seems to only be possible by modifying the Res/Shape classes, which seems to require major surgery, or possibly doing a setattr(Res, mMR, ...) and same for Shape

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions