-
Notifications
You must be signed in to change notification settings - Fork 3
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
zero-intensity mask in correlations #23
Comments
In my opinion this should be changed. A zero intensity is a valid value. How about filtering by negative values, i.e. multiplying the (no-neg.) intensity values of the masked pixels by -1? Basically all places where a mask is set up or applied have to be checked... |
Hmm, in my stand-alone code I use a user defined value to represent the mask flag. In fact , the thor stand alone c++ correlation code is just a copy of my stand alone c code, which I have since updated: https://github.com/dermen/popi/blob/master/src/corr/corr.cpp In my data blocks I represent masked pixels as -1, so when I call But @CoChrists , in the main correlation implementation in thor ( For example, say I have the pixels phi0 = 11 and I want to mask all even pixels. Then I would make a mask that looks like mask_phi0 = 0 and then phi1 = 10 in the computation. So I do not know how necessary it is to make adjustments, other than an adjustment to |
thanks @dermen -- do you think it's worth updating to your most recent version? sounds like you should be able to open a PR and get it in w/o any work. @CoChrists are you happy with this? if not speak up :) |
@dermen @CoChrists
Gundolf pointed out that in the old c implementation of the correlation function, zeros were used as a mask proxy. Is this OK? Should we change it?
https://github.com/tjlane/thor/blob/master/src/python/xray.py#L3395
https://github.com/tjlane/thor/blob/master/src/corr/corr.cpp#L49
We should at least document this.
@CoChrists are there other places in the code where this happens that I missed?
The text was updated successfully, but these errors were encountered: