RealizeObjects

Draws objects onto an image at given locations using the specified galaxy model and shear model. The galaxy model determines the underlying functional shape and photon distribution of the galaxies, and the shear model determines the amount of shear bias, based on the galaxy's location in the image.

This module modified the values inside the Image/Data array.

Currently the module only handles galaxy objects. Objects of other types will be ignored.

Parameters
NameTypeDescription
GalTag string Tag name of the galaxy model to use.
ShearTag string Tag name of the shear model to use.
BufferWidth int Width of the temporary buffer used to draw images.
Seed int If set, use as seed for random number generator. If not set, a random seed is used.

Inputs
NameTypeDescription
Image/Width int Width of the image, in pixels.
Image/Height int Height of the image, in pixels.
Image/Data double* Pixel value array.
Image/ObjectX double* Array of x-coordinates of objects, in pixel units.
Image/ObjectY double* Array of y-coordinates of objects, in pixel units.
Image/ObjectTypes int* Array of types of objects, as specified in SimConst.h
Image/NumberObjs int Number of objects placed in image. This will be the length of the above arrays.

Outputs
NameTypeDescription
Realization/Seed int Seed value used to generate images.