Comments (9)
Just out of curiosity on the Step 1's pixelization_neighbors: For a given set of points, should the neighbors defined in the Voronoi term (polygons sharing edges) be the same as the neighbors defined in the Delaunay term (triangles sharing edges)?
For Delaunay, I currently compute the neighbors using this built-in function:
It returns a maximum number of neighbors of 9, which is the same as the maximum number of neighbors of a Voronoi tessellation.
from pyautolens.
I would have expected the maximum neighbors of a Delaunay triangulation to be 3, corresponding to the 3 triangle edges of each pixel.
Do you know what the 9 corresponds too? And if its related to the Vornoi grid does it vary depending on the source pixelization (as I would guess Voronoi cells can have more / less than 9).
from pyautolens.
from pyautolens.
This is an example of Delaunay tessellation. The black points are the traced pixelization grids and the white points are the circumcentres of the triangles. In Delaunay tessellation, a black point (traced pixel grid) is not associated with only one triangle, instead, it can be a vertice of many triangles. In that sense, it should have more than three neighbors. For example, the black point in the center has 7 neighbors since it connects to 7 other black points.
from pyautolens.
(from https://gwlucastrig.github.io/TinfourDocs/NaturalNeighborTinfourAlgorithm/index.html)
Or this image shows it better. Seems Voronoi neighbors are the same things as the Delaunay neighbors.
from pyautolens.
Does a image-pixel source-pixel pairing every have more than 3 interpolations?
Clearly, I had no idea how a Delaunay tesslation actually works lol.
from pyautolens.
No. An image-pixel source-pixel pairing only has 3 interpolations.
from pyautolens.
Okay, great. That plays a signifcant role in the run times of the linear algebra (especially for w-tilde) so is a relief.
It sounds like your pixel neighbors array is correct, and can be used for regularization using the standard function we have.
It may be worth checking whether Vegetti regularize in this way.
from pyautolens.
I will check it
from pyautolens.
Related Issues (20)
- Hernquist Light Profile
- Decide how to pass size of projected grid and whether to remove its centre through code
- Getting an AttributeError in the mass fitting code given on the GitHub page. HOT 6
- Dude about how to translate the results from pyautolens to lenstronomy for basic modeling. HOT 4
- Saving / Loading a Tracer to .json format
- Source Plane Interpolation Mapping
- Voronoi Interpolation HOT 4
- Delaunay Interpolation HOT 7
- W Tilde Imaging With Interpolation
- Create Tracer from result with same API as instance
- Galaxy.dict() not returning parameters correctly HOT 3
- How to handle memory error while modeling a dataset? HOT 2
- Unit test failing due to from_dict HOT 1
- Multiprocessing RuntimeError HOT 13
- API consistency issues? HOT 1
- Multicore task in a cluster HOT 10
- Autoconf conf.py - Key error HOT 5
- Fix Aggregator Tests
- Database session support for all new types of output
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 pyautolens.