MathOnco / valis

Virtual Alignment of pathoLogy Image Series
https://valis.readthedocs.io/en/latest/
MIT License
123 stars 29 forks source link

How to register at a specific magnification #120

Open syy-create opened 7 months ago

syy-create commented 7 months ago

Hi @cdgatenbee , When using Slide registration(https://valis.readthedocs.io/en/latest/examples.html#slide-registration), it is registered at a low magnification (specific magnification is unknown). I would like to inquire if it is possible to use it for registration at a higher magnification (10x or 20x). If so, could you please let me know? Thank you very much.

This is its example code:

`from valis import registration

slide_src_dir = "/path/to/slides"

results_dst_dir = "./slide_registration_example"

registered_slide_dst_dir = "./slide_registration_example/registered_slides"

reference_slide = "HE.tiff"

registrar = registration.Valis(slide_src_dir, results_dst_dir, reference_img_f=reference_slide)

rigid_registrar, non_rigid_registrar, error_df = registrar.register()

registrar.register_micro(max_non_rigid_registration_dim_px=2000, align_to_reference=True)`