-
Notifications
You must be signed in to change notification settings - Fork 1
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
Scaling in sigma inGaussian wrong #20
Comments
Offset still has the issue that it's not scaled properly. So the offset is in pixel coordinates instead of scaled coordinates |
I'm not sure if this is easily fixable IndexFunArrays.jl/src/scalar_ifas.jl Line 20 in a8bdc58
|
Well.... offset is defined in pixels always like this in the core functions, which is one way to define it: julia> rr((5,5), scale=2.0, offset=(1,2))
5×5 IndexFunArray{Float64, 2, IndexFunArrays.var"#g#110"{Float64, Tuple{Int64, Int64}, Tuple{Float64, Float64}, Int64}}:
2.0 0.0 2.0 4.0 6.0
2.82843 2.0 2.82843 4.47214 6.32456
4.47214 4.0 4.47214 5.65685 7.2111
6.32456 6.0 6.32456 7.2111 8.48528
8.24621 8.0 8.24621 8.94427 10.0 maybe we should document that better? |
Yeah I realized that later. |
I guess both has it's pros and cons |
There could be a second optional argument "scaled_offset", but then I never had trouble with this since the offset is mostly used with the default options which work OK. |
Yeah in my case I wanted to place a gaussian 10 micrometer away from another one... |
Please check this commit That was still a bug, wasn't it? |
My commit was the intended fix. You can test the current master branch |
... you are right. The commit fixes it. The confusing thing is that the expression is |
... since this is a breaking change, we should update the second digit of the version number, right? |
It's a bug fix, so I would leave the number the same. |
But it's also breaking. |
Yup, I prefer the second digit. After all all Software using "gaussian" with a |
Should we revert this, or not? |
The text was updated successfully, but these errors were encountered: