Transforming an image based on a registered image #38
-
|
Hi! I have been using VALIS for a while now and it has been working great. However now I'm facing an issue with largely negative stains from mIHC images, causing the images to be so dim that VALIS has trouble registering them. I was wondering if it's possible to register the brightest images (the DAPI images) from each staining set together, and then use the M transformation matrix on the dim images to achieve the same transformation and registering result as with the brighter image. I know that there is similar option to do this for a smaller spot/ROI, but I would like to do this for the whole image. Would this be possible in VALIS? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi @iidas, Give the above function a shot and let me know how it goes. Best, |
Beta Was this translation helpful? Give feedback.
-
|
Hi @iidas, Best, |
Beta Was this translation helpful? Give feedback.
Hi @iidas,
So happy to hear you've been finding valis useful! Regarding your question, yes, you should be able to register the images using the DAPI channels, and then apply those transformations to the associated dim images. If the dim channels are in the same image as the one with the DAPI channel this would be done automatically, but it's a little more involved if they're in separate files. In that case, you could use the following function to apply the transformations found using
src_f(the DAPI channel image) toassoc_img_f(the dim image), saving the warped dim image asdst_f: