Comments (2)
Hi,
Sorry for the late reply. I looked into it and I found the source of the error. Turns out that when you apply the transformation to the mask the one center True
pixel in the mask is smeared on its neighbor pixels. This is the transformation of the mask before discretizing it back into True
/False
.
array([[0. , 0. , 0. , 0. , 0.5 ],
[0. , 0.25, 0.25, 0. , 0.5 ],
[0. , 0.25, 0.25, 0. , 0.5 ],
[0. , 0. , 0. , 0. , 0.5 ],
[0.5 , 0.5 , 0.5 , 0.5 , 0.75]], dtype=float32)
The threshold value that astroalign uses to consider a pixel to be on the mask is if it's larger than 0.4. All the 0.25 don't make the cut and the hole is lost.
This is probably a not so common case, but I wonder if the threshold should be more aggressive and set it to 0.1 for example. Or even just do a > 0
. The 0.4 was there to avoid too-soft edges.
from astroalign.
Thank you for your reply.
Now I understand the specification for the threshold.
from astroalign.
Related Issues (20)
- Aligning two xy arrays, running into Max iterations exceeded for even the simplest cases HOT 9
- repeated find_transform on same sets of (x,y) tuples give different results HOT 5
- TypeError when using Pillow Image object HOT 5
- Initial Update
- Implement "downsampling" HOT 1
- ValueError: Big-endian buffer not supported on little-endian compiler HOT 11
- different results from find_transform and estimate_transform HOT 4
- Add Airspeed velocity benchmarking
- skimage ransac
- Unhelpful error when alignging (large) nan-padded arrays HOT 4
- Add "inverse" on affine transform in Astroalign HOT 2
- [2.4.1] TestFewSources.test_register_threesources fails now (passed before) HOT 1
- Use numpy.random.Generator.shuffle instead of np.random.shuffle HOT 2
- Different results for parallel and sequential implementations of find_transform HOT 1
- Query regarding a section of the source code in `find_transform` HOT 4
- Utilise masking provided by sep HOT 1
- astroalign.MaxIterError: List of matching triangles exhausted before an acceptable transformation was found HOT 5
- Best guide to use for a mosaic?? HOT 4
- Test against numpy 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astroalign.