Skip to content

bug: Sometimes "reference_img_f" is ignored. #170

@akurmustafa

Description

@akurmustafa

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions