Issue exporting warp field from BigWarp

Hi there,

I am attempting to register a set of ~300 2D foot imprint images using ANTs. I find that applying a thin plate spline transformation guided by landmarks in BigWarp first, then passing the result of this through ANTs and performing the usual rigid->affine->SyN transformation, gives me the best registration result by far. I do not have an issue exporting the transformed image from BigWarp, but when I try to export the warp field I get the following error. I need the warp field so that I can use my transformations to propagate a landmark set to avoid manually landmarking each image for shape analysis down the line.

xception in thread “AWT-EventQueue-0” java.lang.ArrayIndexOutOfBoundsException: 3
at net.imglib2.view.Views.permute(
at bigwarp.BigWarp.exportWarpField(
at bigwarp.BigWarpActions$ExportWarpAction.actionPerformed(
at javax.swing.AbstractButton.fireActionPerformed(
at javax.swing.AbstractButton$Handler.actionPerformed(
at javax.swing.DefaultButtonModel.fireActionPerformed(
at javax.swing.DefaultButtonModel.setPressed(
at javax.swing.AbstractButton.doClick(
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
at java.awt.Component.processMouseEvent(
at javax.swing.JComponent.processMouseEvent(
at java.awt.Component.processEvent(
at java.awt.Container.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Container.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.LightweightDispatcher.retargetMouseEvent(
at java.awt.LightweightDispatcher.processMouseEvent(
at java.awt.LightweightDispatcher.dispatchEvent(
at java.awt.Container.dispatchEventImpl(
at java.awt.Window.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEventImpl(
at java.awt.EventQueue.access$500(
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.awt.EventDispatchThread.pumpEventsForFilter(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(

I am running version 5.0.0. When initially loading in the images, I also obtain the error:

Opening dataset that is not suited for interactive browsing.
Consider resaving as HDF5 for better performance.

but this does not affect my ability to place landmarks and transform the images. I’ve read a similar topic on this issue but I’m not sure it solves my exact problem.

Any help would be greatly appreciated :slight_smile:

Hi @ambnev,

Welcome to the forum, and glad to hear its been helpful.

Thanks for posting about this issue. The good news is, I think I fixed it already. Bad news is, it’s not released yet.

Could you please try download the newest code from here, and replacing the bigwarp file in with the new one.

Please post back both if that solves the issue and if you continue to see this problem.


Hi John, thanks for the quick reply! I’ve replaced the bigwarp file with the updated version. The error no longer persists! However, I’m not exactly sure if the exported warp field is what it’s supposed to be? This is the exported warp field:

I was expecting an output similar to this (this is from ANTs):

For context, these are my two registered images:

Does the result I obtained look reasonable?


Hi Amanda (@ambnev)

I think its just that the brightness / contrast for the display of the warp field is off.
Does it look better if you adjust it (Image> Adjust > Brightness/Contrast or Ctrl+Shift+C)?