Image_registration_1 macro

Relevant to Figure 2; Extended Data Figure 5, 6

This ImageJ macro registers individual 2P imaging fields to the post-hoc IMHC using one of the IMHC channels. The macro uses bUnwarpJ for registration.

The macro requires a 2P recording/z-projected 2P recording and the IMHC image.
The 2P image can be upsampled with the "Scale..." function in ImageJ to match the scaling of the confocal image. This will preserve the resolution of the confocal image after registering the the 2P image. 

Parameters to change: 


bUnwarpJ parameters: 


Output: