When I run execute following code snippet,
registered_slide_dst_dir = dst_dir + "registered_slides"
align_to_reference = True
image_type = "brightfield"
do_rigid = True
imgs_ordered = True
crop="overlap"
img_list = [
immune_path,
neuronal_path
]
reference_img_f = he_path
registrar = registration.Valis(src_dir=src_dir, img_list=img_list, dst_dir=dst_dir, reference_img_f=reference_img_f, align_to_reference=align_to_reference, do_rigid=do_rigid, image_type=image_type, imgs_ordered=imgs_ordered)
In the registration result, I see the registered versions of the immune_path and neuronal_path. However, they are not registered according to image at reference_img_f. They are registered, as if I did not pass any reference_img_f where image at neuronal_path is registered into image at immune_path.
I verified this behaviour with following, when I print using after initialization
print(registrar.reference_img_f)
result is
<PATH>HandE_annotations/HandE/Batch1/001_2_A_(3)_5.tif-2.tif
after
rigid_registrar, non_rigid_registrar, error_df = registrar.register()
same print print(registrar.reference_img_f)
generates
<PATH>Registered-R0Q_Q0c2.Q0c3.Q0c4.Q0c5_01-2-A-1_scene002_c2_ORG.tif
which is immune_path.
I am a bit confused. Do I missing something?
When I run execute following code snippet,
In the registration result, I see the registered versions of the
immune_pathandneuronal_path. However, they are not registered according to image atreference_img_f. They are registered, as if I did not pass anyreference_img_fwhere image atneuronal_pathis registered into image atimmune_path.I verified this behaviour with following, when I print using after initialization
result is
after
same print
print(registrar.reference_img_f)generates
which is
immune_path.I am a bit confused. Do I missing something?