-
Notifications
You must be signed in to change notification settings - Fork 52
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
Reverse x and y in cryosparc micrograph_shape array. Convert modf to round. #21
Conversation
….0, x and y in micrograph_shape are reversed
Re: micrograph_shape, that makes sense as standard array shape is
|
|
The indexers are the same for 1 and N-D arrays, i.e. in this case it's Cryosparc is using normalized coordinates, and Relion indexes from 0. Thus, to have the correct range of pixel coordinates one should use But maybe it should actually be |
BTW I am testing by using Thanks again for pointing this out and helping test! |
Thanks, Daniel for sharing |
I think the original commit I posted works fine. So, actually In case you may want to try, the way I tested is
I compared all the I also did the similar tests after a 2D classification on cryosparc and downloading the |
It's more than a 1 pixel difference (the most round vs floor can possibly be). It may simply be a scaling artifact in |
@turalaksel FYI I've decided you're right about |
In cryosparcv2.4.0,
x
andy
inmicrograph_shape
are reversed. To get the rightCOORDX
andCOORDY
reversed array should be used. I also replacedmodf
withround
to obtain the correct integer pixel coordinates.