embl-cba / elastixWrapper

12 stars 2 forks source link

Run elastix directly with compatible file types e.g. mhd #8

Closed K-Meech closed 3 years ago

K-Meech commented 3 years ago

It would be great if the elastixWrapper could also handle images that don't need to be 'staged' - e.g. mhd files / nrrd files...

This would require separating the code involved in calling elastix on the command line from the code involved in staging files to .mhd format.

@tischi I'm happy to put a draft together, and do a PR - if you'd be happy with this change?

tischi commented 3 years ago

It would be great if the elastixWrapper could also handle images that don't need to be 'staged' - e.g. mhd files / nrrd files...

You mean to avoid the temporary data duplication?

This would require separating the code involved in calling elastix on the command line from the code involved in staging files to .mhd format.

Code separation is always a good thing :-) Sure, go ahead!

K-Meech commented 3 years ago

Yes! I have a bunch of mhd files (which can be quite large) that I'd like to avoid making further copies of. Also, I'm calling it from another fiji plugin, so it'd be useful to be able to call the command line parts more directly.

tischi commented 3 years ago

Cool! Go for it!

K-Meech commented 3 years ago

@tischi I noticed that in the plugin you only support 2 parameter styles: 'Default' and 'CLEM' https://github.com/embl-cba/elastixWrapper/blob/master/src/main/java/de/embl/cba/elastixwrapper/commands/ElastixCommand.java#L88, while you also have 'Hennings' implemented - https://github.com/embl-cba/elastixWrapper/blob/master/src/main/java/de/embl/cba/elastixwrapper/elastix/ElastixParameters.java#L163

Do you still need the 'Hennings' parameters? I'm rearranging some stuff, so I can take it out if it's no longer needed

tischi commented 3 years ago

Henning is no longer needed.