GaussianMorphology#
- class scarlet2.GaussianMorphology(size, ellipticity=None, shape=None)[source]#
Bases:
ProfileMorphologyGaussian radial profile
- ellipticity: None, jnp.array#
Ellipticity of the profile
- f(r2)[source]#
Radial profile function
- Parameters:
r2 (
floatorarray) – Radius (distance from the center) squared
- static from_image(image)[source]#
Create Gaussian radial profile from the 2nd moments of image
- Parameters:
image (
array) – 2D array to measureMomentsfrom.- Return type:
- static from_moments(g, shape=None)[source]#
Create Gaussian radial profile from the moments g
- Parameters:
g (
Moments) – Moments, order >= 2shape (
tuple) – Shape of the bounding box
- Return type:
- get(name=None)#
Get parameter(s) from this module
- Parameters:
name (
str, optional) – Name of parameter. If not set, returns all parameters.- Returns:
requested data arrays for parameters
- Return type:
dict
- property parameters#
Parameters defined for this module
- Returns:
name: (node, param) mapping for all parameters
- Return type:
dict
- set(values)#
Set parameter(s) from this module with values
- Parameters:
values (
dict[str,jnp.array]) – values to replace parameters with, identified by their name- Returns:
new module with parameter(s) replaced by values
- Return type:
- property shape#
Shape of the bounding box for the profile.
If not set during __init__, uses a square box with an odd number of pixels not smaller than 10*size.