ANTsX / ANTsR

R interface to the ANTs biomedical image processing library
https://antsx.github.io/ANTsR
Apache License 2.0
127 stars 35 forks source link

Histogram matching in ANTsR? #212

Closed ntustison closed 6 years ago

ntustison commented 6 years ago

Hey all,

Before I attempt a solution, just wanted to see if the HistogramMatch functionality in ImageMath is available in ANTsR? I didn't see it but wanted to make sure I wasn't missing something.

Thanks, Nick

ntustison commented 6 years ago

@stnava --- I think this would be a nice complement to the template-based data augmentation where we not only transform to the reference space but also (optionally, and perhaps randomly) change intensities to the match the reference image.

muschellij2 commented 6 years ago

Not in ANTsR, I usually use https://github.com/Jfortin1/RAVEL/blob/master/R/normalizeHM.R for that.

John

On Fri, Apr 27, 2018 at 7:07 PM, Nick Tustison notifications@github.com wrote:

@stnava https://github.com/stnava --- I think this would be a nice complement to the template-based data augmentation where we not only transform to the reference space but also (optionally, and perhaps randomly) change intensities to the match the reference image.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ANTsX/ANTsR/issues/212#issuecomment-385115699, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBnri_ydTtuoQf4d_PNVJfc0VcyYDhAks5ts6TPgaJpZM4TrFM3 .

ntustison commented 6 years ago

Thanks John. Good to know there's something out there for immediate processing. Long term, though, will probably look to adding this to the repository.

stnava commented 6 years ago

I think that’s a pretty good idea and now I understand why you want that ... Should be easy to add, going to a wedding tomorrow and then driving Sunday so I may be able to add it over the next few days. will see. Is it urgent?

Also, you might look at deformation simulation Vignette in antsr. same type of idea .

On Fri, Apr 27, 2018 at 7:30 PM Nick Tustison notifications@github.com wrote:

Thanks John. Good to know there's something out there for immediate processing. Long term, though, will probably look to adding this to the repository.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/ANTsX/ANTsR/issues/212#issuecomment-385118529, or mute the thread https://github.com/notifications/unsubscribe-auth/AATyfqT1XFOpSklC-pQTd61PMDdvHQCvks5ts6obgaJpZM4TrFM3 .

--

brian

ntustison commented 6 years ago

That would be great. No, definitely not urgent. But perhaps I'll try to put something together as a pull request this weekend.

ntustison commented 6 years ago

https://github.com/ANTsX/ANTsR/pull/213

ntustison commented 6 years ago

Thanks again, @stnava @muschellij2 . Added it here and currently running. I'll let you know what it does to the results.