Skip to content

quick calibration for 4x and 20x objectives on cytation1 w/ 1288x964 pixel Blackfly BFLY-U3-13S2M sensor #590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

ben-ray
Copy link
Contributor

@ben-ray ben-ray commented Jun 29, 2025

beware not all cytations may be built equally, so if you have a different sensor, it might be worth calculating these values for your particular setup

you can find the mapping between pixels <> microns by exporting an image with scalebar from gen5.exe using your cytation & counting the pixels of the scalebar

Comment on lines +96 to +97
4: (1288 / 596, 964 / 596),
20: (1288 / 3000, 964 / 3000),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is going on with these denominators?

for the cytation5, it's to convert um to mm

Copy link
Contributor Author

@ben-ray ben-ray Jun 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cytation5 sensor is 2448x2048 while the cytation1 is 1288x964. The scaling factor from pixel to micron will be identical for both axis, but why does the image_size conversion not take the sensor size into account? I would expect the X and Y size to be different but the scaling factor is identical in X and Y in the original Cytation5 implementation.

These numbers are my attempt to account for the significantly different x and y size of my sensor (my pixels are still perfectly square)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a scaling factor

Copy link
Contributor Author

@ben-ray ben-ray Jun 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then how do I determine these and why are they not different for X and Y on the cytation5?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i took the number from gen5.exe, and then did um -> mm conversion which seems to work

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at least it corresponds with their firmware commands.

you can use a firmware command to check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants