SourceXtractorPlusPlus  0.16
Please provide a description of the project.
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
SourceXtractor Namespace Reference

Namespaces

 ExternalFlagCombineTypes
 

Classes

class  Aperture
 
class  CircularAperture
 
class  EllipticalAperture
 
struct  FluxMeasurement
 
class  NeighbourInfo
 
class  TransformedAperture
 
class  Background
 
class  BackgroundModel
 
class  BackgroundAnalyzer
 
class  Configurable
 Interface of objects which can be configured. More...
 
class  DFTConvolution
 
class  DirectConvolution
 
class  OpenCVConvolution
 
struct  WorldCoordinate
 
struct  ImageCoordinate
 
class  CoordinateSystem
 
class  InvalidCoordinatesException
 
class  WCS
 
struct  FFTTraits
 Wrap FFTW types and functions depending on the primitive type (float or double) More...
 
struct  FFTTraits< float >
 Traits for float. More...
 
struct  FFTTraits< double >
 Traits for double. More...
 
class  FFT
 Wraps the FFTW API with a more C++ like one. More...
 
class  FitsFile
 represents access to a whole FITS file and handles loading and caching FITS headers More...
 
class  FitsImageSource
 
class  FitsReader
 
class  FitsWriter
 
class  TemporaryFitsImageSource
 FitsTemporaryImageSource wraps FitsImageSource, generating the filename and acquiring its ownership. More...
 
class  Frame
 
class  BufferedImage
 
class  ConstantImage
 
class  FunctionalImage
 
class  ImageChunk
 
class  Image
 Interface representing an image. More...
 
class  ImageAccessor
 
class  UniversalImageChunk
 
class  ImageProcessing
 
class  ImageProcessingList
 
struct  MetadataEntry
 
class  ImageSource
 
class  ImageTile
 
class  ImageTileWithType
 
class  InterpolatedImageSource
 
class  MaskedImage
 
class  MirrorImage
 Mirrors an image in both X and Y axes. More...
 
class  PaddedImage
 
class  PaddedImage< T, nullptr >
 
class  ProcessedImage
 Processes two images to create a third combining them by using any function. More...
 
struct  SubtractOperation
 
struct  MultiplyOperation
 
struct  SnrOperation
 
class  ProcessingImageSource
 
class  RecenterImage
 Changes the center of an image, wrapping it around the edges. More...
 
class  ScaledImageSource
 
class  SubImage
 Part of another image. More...
 
class  ThresholdedImage
 Used to subtract a constant value from an Image. More...
 
struct  TileKey
 
class  TileManager
 
class  VectorImage
 Image implementation which keeps the pixel values in memory. More...
 
class  WriteableBufferedImage
 
class  WriteableImage
 
class  Output
 
class  OutputRegistry
 
class  DeblendStep
 An action to be applied to a SourceGroup for deblending its sources. More...
 
class  Deblending
 Performs a number of steps on a SourceGroup that can add or remove Sources for deblending the group. More...
 
class  Measurement
 
class  PartitionStep
 A PartitionStep gets applied on a single Source and can result any number of Sources being outputed. (including the same one, none, or any number of new Sources) More...
 
class  Partition
 For each Source it receives, applies PartitionSteps and outputs one or more Sources. More...
 
struct  SegmentationProgress
 Used to notify observers of the progress of the processing of the image. More...
 
class  Segmentation
 Segmentation takes an image and splits it into individual Sources for further refinement. Each Source results in a notification of the Segmentation's Observers. More...
 
class  SelectionCriteria
 Used to determine if a Source is selected for processing. More...
 
class  SelectAllCriteria
 An implementation of SelectionCriteria that just marks all Sources as selected. More...
 
class  ProcessSourcesEvent
 Event received by SourceGrouping to request the processing of some of the Sources stored. More...
 
class  GroupingCriteria
 Criteria used by SourceGrouping to determine if two sources should be grouped together. More...
 
class  SourceGrouping
 SourceGrouping takes Source, groups them together according to its GroupingCriteria and stores them. When a ProcessSourcesEvent is received the sources that need to be processed are output together with the sources they are grouped with as a SourceGroup. More...
 
class  Plugin
 Plugins must implement this interface. More...
 
class  PluginAPI
 This interface is given to the plugin to let it access object instances from the framework. More...
 
class  PluginManager
 PluginManager handles the loading of plugins and calls their registration function, providing them with with a PluginAPI implementation. More...
 
class  StaticPlugin
 Used to register compile-time (static) plugins with the PluginManager. More...
 
class  DetectionFrame
 
class  Property
 Base class for all Properties. (has no actual content) More...
 
class  PropertyHolder
 A class providing a simple implementation of a container of properties. More...
 
class  PropertyId
 Identifier used to set and retrieve properties. More...
 
class  PropertyNotFoundException
 An exception indicating that a Property was not available and could not be computed on demand. More...
 
class  Psf
 
class  VariablePsf
 Implements a variable PSF using an arbitrary number of components (i.e. X, Y), and degrees. More...
 
class  VariablePsfStack
 
class  SimpleSource
 A trivial implementation of SourceInterface meant to be used in unit tests. More...
 
class  SimpleSourceFactory
 A SourceFactory implementation that produces a SimpleSource. More...
 
class  SimpleSourceGroup
 A bare bones implementation of SourceGroupInterface meant to be used to implement unit tests. More...
 
class  SimpleSourceGroupFactory
 A SourceGroupFactory implementation that produces a SimpleSourceGroupFactory. More...
 
class  SourceFactory
 A factory interface to create SourceInterface instances. More...
 
class  SourceGroupFactory
 A factory interface to create SourceGroupInterface instances. More...
 
class  SourceGroupInterface
 Defines the interface used to group sources. More...
 
class  SourceGroupWithOnDemandProperties
 A SourceGroupInterface implementation which used a TaskProvider to compute missing properties. More...
 
class  SourceGroupWithOnDemandPropertiesFactory
 A SourceGroupFactory implementation that produces a SourceGroupWithOnDemandProperties. More...
 
class  SourceInterface
 The SourceInterface is an abstract "source" that has properties attached to it. More...
 
class  SourceWithOnDemandProperties
 
class  SourceWithOnDemandPropertiesFactory
 A SourceFactory implementation that produces a SourceWithOnDemandProperties. More...
 
class  GroupTask
 A Task that acts on a SourceGroup to compute one or more properties. More...
 
class  SourceTask
 A Task that acts on a Source to compute one or more properties. More...
 
class  Task
 Basic interface for a Task that is used to compute properties. More...
 
class  TaskFactory
 Creates a Task for computing a given property. More...
 
class  TaskFactoryRegistry
 
class  TaskProvider
 
class  BackgroundAnalyzerFactory
 
class  ImageMode
 
class  KappaSigmaBinning
 
class  MedianFilter
 
class  SEBackgroundLevelAnalyzer
 
class  BackgroundCell
 
class  BackgroundHistogram
 
class  SE2BackgroundLevelAnalyzer
 
class  SE2BackgroundModeller
 
class  SE2BackgroundUtils
 
class  SplineModel
 
class  TypedSplineModelWrapper
 
class  SimpleBackgroundAnalyzer
 
class  CheckImages
 
class  DetectionIdCheckImage
 
class  GroupIdCheckImage
 
class  MoffatCheckImage
 
class  SourceIdCheckImage
 
class  OnnxModel
 
class  AttractorsPartitionConfig
 
class  BackgroundConfig
 
class  CheckImagesConfig
 
class  CleaningConfig
 
class  DeblendStepConfig
 
class  DetectionImageConfig
 Provides the detection image. More...
 
class  GroupingConfig
 Used to select a Grouping algorithm. More...
 
class  LegacyModelFittingConfig
 
class  MagnitudeConfig
 
class  MeasurementFrameConfig
 
class  MeasurementImageConfig
 
class  MemoryConfig
 
class  MinAreaPartitionConfig
 
class  ModelFittingConfig
 
class  MultiThreadingConfig
 
class  MultiThresholdPartitionConfig
 
class  OutputConfig
 
class  PartitionStepConfig
 
class  PythonConfig
 
class  SamplingConfig
 
class  SE2BackgroundConfig
 
class  SegmentationConfig
 Used to select a Segmentation algorithm. More...
 
class  WeightImageConfig
 
class  Cleaning
 
class  DeblendingFactory
 
class  GroupingFactory
 
class  LineSelectionCriteria
 
class  MoffatCriteria
 Groups sources if their Moffat profile overlap. More...
 
class  NoGroupingCriteria
 
class  OverlappingBoundariesCriteria
 Groups sources if their bounding boxes overlap. More...
 
class  SplitSourcesCriteria
 Groups sources if they were originally one source before being split. More...
 
class  DownSampledImagePsf
 
class  ImagePsf
 
class  LockedWriteableImage
 
class  DummyMeasurement
 
class  MeasurementFactory
 
class  MultithreadedMeasurement
 
class  LdacWriter
 
class  OutputFactory
 
class  TableOutput
 
class  AttractorsPartitionStep
 Splits sources by identifying an attractor pixel by climbing the values gradient from every pixel. More...
 
class  MinAreaPartitionStep
 A PartitionStep that rejects Sources if they do not have at least a given number of pixels. More...
 
class  MultiThresholdPartitionStep
 
class  PartitionFactory
 
class  ApertureFlag
 Aperture photometry flag. More...
 
class  ApertureFlagTask
 
class  AperturePhotometry
 Aperture photometry fluxes and magnitudes. More...
 
class  AperturePhotometryArray
 Merges all AperturePhotometries into a multidimensional property. More...
 
class  AperturePhotometryArrayTask
 
class  AperturePhotometryConfig
 
class  AperturePhotometryPlugin
 
class  AperturePhotometryTask
 
class  AperturePhotometryTaskFactory
 
class  AssocMode
 
class  AssocModeConfig
 
class  AssocModePartitionStep
 
class  AssocModePlugin
 
class  AssocModeTask
 
class  AssocModeTaskFactory
 
class  AutoPhotometry
 Auto photometry flux and magnitude. More...
 
class  AutoPhotometryArray
 
class  AutoPhotometryArrayTask
 
class  AutoPhotometryConfig
 
class  AutoPhotometryFlag
 
class  AutoPhotometryFlagTask
 
class  AutoPhotometryPlugin
 
class  AutoPhotometryTask
 
class  AutoPhotometryTaskFactory
 
class  BlendedFlag
 
class  BlendedFlagPlugin
 
class  BlendedFlagTask
 
class  BlendedFlagTaskFactory
 
class  BoundaryFlag
 
class  BoundaryFlagPlugin
 
class  BoundaryFlagSourceTask
 
class  BoundaryFlagTaskFactory
 
class  CoreThresholdPartitionConfig
 
class  CoreThresholdPartitionPlugin
 
class  CoreThresholdPartitionStep
 A PartitionStep that rejects Sources if they do not have at least a given number of pixels. More...
 
class  CoreThresholdPartitionTask
 
class  CoreThresholdPartitionTaskFactory
 
class  NCorePixel
 
class  DetectionFrameCoordinates
 
class  DetectionFrameCoordinatesPlugin
 
class  DetectionFrameCoordinatesTask
 
class  DetectionFrameCoordinatesTaskFactory
 
class  DetectionFrameGroupStamp
 
class  DetectionFrameGroupStampPlugin
 
class  DetectionFrameGroupStampTask
 Task to produce the DetectionFrameGroupStamp Property. More...
 
class  DetectionFrameGroupStampTaskFactory
 Produces DetectionFrameGroupStampTask. More...
 
class  DetectionFrameImages
 
class  DetectionFrameImagesPlugin
 
class  DetectionFrameImagesTask
 
class  DetectionFrameImagesTaskFactory
 
class  DetectionFrameInfo
 
class  DetectionFrameInfoPlugin
 
class  DetectionFrameInfoTask
 
class  DetectionFrameInfoTaskFactory
 
class  DetectionFramePixelValues
 The values of a Source's pixels in the detection image. They are returned as a vector in the same order as the Source's pixels. More...
 
class  DetectionFramePixelValuesPlugin
 
class  DetectionFramePixelValuesTask
 Task to produce the DetectionFramePixelValues Property. More...
 
class  DetectionFramePixelValuesTaskFactory
 TaskFactory to produce DetectionFramePixelValuesTask. More...
 
class  DetectionFrameSourceStamp
 A copy of the rectangular region of the detection image just large enough to include the whole Source. More...
 
class  DetectionFrameSourceStampPlugin
 
class  DetectionFrameSourceStampTask
 Task to produce the DetectionFrameSourceStamp Property. More...
 
class  DetectionFrameSourceStampTaskFactory
 Produces DetectionFrameSourceStampTask. More...
 
class  ExternalFlag
 
class  ExternalFlagConfig
 
class  ExternalFlagPlugin
 
class  ExternalFlagTask
 Task to produce the ExternalFlag Property. More...
 
class  ExternalFlagTaskFactory
 
class  FlexibleModelFitting
 
class  FlexibleModelFittingConverterFactory
 
class  FlexibleModelFittingExponentialRangeConverterFactory
 
class  FlexibleModelFittingLinearRangeConverterFactory
 
class  FlexibleModelFittingUnboundedConverterFactory
 
class  FlexibleModelFittingFrame
 
class  FlexibleModelFittingIterativeTask
 
class  FlexibleModelFittingModel
 
class  FlexibleModelFittingPointModel
 
class  FlexibleModelFittingExponentialModel
 
class  FlexibleModelFittingDevaucouleursModel
 
class  FlexibleModelFittingSersicModel
 
class  FlexibleModelFittingConstantModel
 
class  FlexibleModelFittingParameter
 
class  FlexibleModelFittingConstantParameter
 
class  FlexibleModelFittingFreeParameter
 
class  FlexibleModelFittingDependentParameter
 
class  FlexibleModelFittingParameterManager
 
class  FlexibleModelFittingPlugin
 
class  FlexibleModelFittingPrior
 
class  FlexibleModelFittingTask
 
class  FlexibleModelFittingTaskFactory
 
class  FluxRadius
 
class  FluxRadiusConfig
 
class  FluxRadiusPlugin
 
class  FluxRadiusTask
 
class  FluxRadiusTaskFactory
 
class  GroupInfo
 
class  GroupInfoPlugin
 
class  GroupInfoTask
 Task to produce the GroupInfo Property. More...
 
class  GroupInfoTaskFactory
 Produces GroupInfoTask. More...
 
class  GrowthCurve
 
class  GrowthCurveConfig
 
class  GrowthCurvePlugin
 
class  GrowthCurveResampled
 
class  GrowthCurveResampledTask
 
class  GrowthCurveTask
 
class  GrowthCurveTaskFactory
 
class  IsophotalFlux
 Computes the isophotal flux and magnitude. More...
 
class  IsophotalFluxPlugin
 
class  IsophotalFluxTask
 Task to produce the IsophotalFlux Property. More...
 
class  IsophotalFluxTaskFactory
 Produces IsophotalFluxTask. More...
 
class  Jacobian
 
class  JacobianSource
 
class  JacobianGroup
 
class  JacobianPlugin
 
class  JacobianGroupTask
 
class  JacobianSourceTask
 
class  JacobianTaskFactory
 
class  KronRadius
 Kron radius. More...
 
class  KronRadiusPlugin
 
class  KronRadiusTask
 
class  KronRadiusTaskFactory
 
class  MeasurementFrame
 
class  MeasurementFramePlugin
 
class  MeasurementFrameTask
 
class  DefaultMeasurementFrameTask
 
class  MeasurementFrameTaskFactory
 
class  MeasurementFrameCoordinates
 
class  MeasurementFrameCoordinatesPlugin
 
class  MeasurementFrameCoordinatesTask
 
class  MeasurementFrameCoordinatesTaskFactory
 
class  MeasurementFrameGroupRectangle
 
class  MeasurementFrameGroupRectanglePlugin
 
class  MeasurementFrameGroupRectangleTask
 
class  MeasurementFrameGroupRectangleTaskFactory
 
class  MeasurementFrameImages
 
class  MeasurementFrameImagesPlugin
 
class  MeasurementFrameImagesTask
 
class  MeasurementFrameImagesTaskFactory
 
class  MeasurementFrameInfo
 
class  MeasurementFrameInfoPlugin
 
class  MeasurementFrameInfoTask
 
class  MeasurementFrameInfoTaskFactory
 
class  MeasurementFramePixelCentroid
 
class  MeasurementFramePixelCentroidPlugin
 
class  MeasurementFramePixelCentroidTask
 Task to produce the PixelCentroid Property. More...
 
class  MeasurementFramePixelCentroidTaskFactory
 Produces MeasurementFramePixelCentroidTask. More...
 
class  MeasurementFrameRectangle
 
class  MeasurementFrameRectanglePlugin
 
class  MeasurementFrameRectangleTask
 
class  MeasurementFrameRectangleTaskFactory
 
class  MoffatModelEvaluator
 
class  MoffatModelEvaluatorTask
 
class  MoffatModelFitting
 
class  MoffatModelFittingPlugin
 
class  MoffatModelFittingTask
 
class  MoffatModelFittingTaskFactory
 
class  NDetectedPixels
 
class  NDetectedPixelsPlugin
 
class  NDetectedPixelsSourceTask
 
class  NDetectedPixelsTaskFactory
 
class  OnnxConfig
 
class  OnnxPlugin
 
class  OnnxProperty
 
class  OnnxSourceTask
 
class  OnnxTaskFactory
 
class  PeakValue
 
class  PeakValuePlugin
 
class  PeakValueTask
 
class  PeakValueTaskFactory
 
class  PixelBoundaries
 The bounding box of all the pixels in the source. Both min and max coordinate are inclusive. More...
 
class  PixelBoundariesHalfMaximum
 
class  PixelBoundariesPlugin
 
class  PixelBoundariesTask
 Task to produce the PixelBoundaries Property. More...
 
class  PixelBoundariesTaskHalfMaximum
 Task to produce the PixelBoundariesHalfMaximum Property. More...
 
class  PixelBoundariesTaskFactory
 Produces a PixelBoundariesTask. More...
 
class  PixelCentroid
 The centroid of all the pixels in the source, weighted by their DetectionImage pixel values. More...
 
class  PixelCentroidPlugin
 
class  PixelCentroidTask
 Task to produce the PixelCentroid Property. More...
 
class  PixelCentroidTaskFactory
 Produces PixelCentroidTask. More...
 
class  PsfPlugin
 
class  PsfPluginConfig
 
class  PsfProperty
 
class  PsfTask
 
class  PsfTaskFactory
 
class  SaturateFlag
 
class  SaturateFlagPlugin
 
class  SaturateFlagSourceTask
 
class  SaturateFlagTaskFactory
 
class  ShapeParameters
 
class  ShapeParametersPlugin
 
class  ShapeParametersTask
 
class  ShapeParametersTaskFactory
 
class  SNRRatio
 
class  SNRRatioPlugin
 
class  SNRRatioSourceTask
 
class  SNRRatioTaskFactory
 
class  SourceFlags
 
class  SourceFlagsPlugin
 
class  SourceFlagsSourceTask
 
class  SourceFlagsTaskFactory
 
class  SourceID
 
class  SourceIDsPlugin
 
class  SourceIDTask
 
class  SourceIDTaskFactory
 
class  SourcePsfPlugin
 
class  SourcePsfProperty
 
class  SourcePsfTask
 
class  SourcePsfTaskFactory
 
class  Vignet
 
class  VignetArray
 
class  VignetArraySourceTask
 
class  VignetConfig
 
class  VignetPlugin
 
class  VignetSourceTask
 
class  VignetTaskFactory
 
class  WorldCentroid
 
class  WorldCentroidPlugin
 
class  WorldCentroidTask
 
class  WorldCentroidTaskFactory
 
class  Prefetcher
 
class  PixelCoordinateList
 
class  SourceId
 
class  ObjectInfo
 
class  PyAperture
 
class  PyFitsFile
 
class  PyId
 
class  PyMeasurementImage
 
class  PyOutputWrapper
 
class  PythonInterpreter
 
class  BackgroundConvolution
 
class  BFSSegmentation
 Implements a Segmentation based on the BFS algorithm. More...
 
class  BgConvolutionImageSource
 
class  BgDFTConvolutionImageSource
 
class  Lutz
 Implements a Segmentation based on the Lutz algorithm. More...
 
class  LutzList
 
class  LutzSegmentation
 
class  MLSegmentation
 Implements a Segmentation based on CNN. More...
 
class  SegmentationFactory
 The SegmentationFactory will provide a Segmentation implementation based on the current configuration. More...
 
struct  FunctionFromPython
 
struct  FunctionFromPython< double(const SourceInterface &)>
 
struct  FunctionFromPython< double(const Pyston::Context &, const std::vector< double > &)>
 
struct  FunctionFromPython< double(double, const SourceInterface &)>
 
class  WeightMapImageSource
 
class  MultiThresholdNode
 
struct  KdTreeTraits< AssocModeConfig::CatalogEntry >
 
struct  ReverseLock
 
class  PluginConfig
 
class  ProgressLogger
 
struct  ProgressInfo
 
class  ProgressMediator
 
class  ProgressNCurses
 
class  ProgressReporter
 
class  ProgressReporterFactory
 
class  Sorter
 
class  SourceXtractorConfig
 
struct  ncurses_done
 
class  Screen
 Wrap the terminal into a singleton. More...
 
class  LogWidget
 
class  ProgressWidget
 Set of progress bars/information entries. More...
 
class  HilbertCurve
 
struct  KdTreeTraits
 
class  KdTree
 A simple N-dimensional KdTree for speeding-up elements within range types of queries. More...
 
class  NumericalDerivative
 
class  Observer
 Observer interface to be used with Observable to implement the Observer pattern. More...
 
class  Observable
 Implements the Observer pattern. Notifications will be made using a message of type T. More...
 
class  PixelCoordinate
 A pixel coordinate made of two integers m_x and m_y. More...
 
class  PixelRectangle
 
class  VariantCastVisitor
 

Typedefs

typedef DFTConvolution< SeFloat, PaddedImage< SeFloat, Reflect101Coordinates > > DefaultConvolutionStrategy
 
using DetectionImageFrame = Frame< DetectionImage::PixelType >
 
using MeasurementImageFrame = Frame< MeasurementImage::PixelType >
 
using DetectionImage = Image< SeFloat >
 Alias for the detection image, to make easier its type modification. More...
 
using MeasurementImage = Image< SeFloat >
 Alias for the measurement image, to make easier its type modification. More...
 
using WeightImage = Image< SeFloat >
 Alias for the weight image, to make easier its type modification. More...
 
using FlagImage = Image< std::int64_t >
 Alias for the flag image, to make easier its type modification. More...
 
using DetectionImageProcessing = ImageProcessing< DetectionImage::PixelType >
 
using DetectionImageProcessingList = ImageProcessingList< DetectionImage::PixelType >
 
template<typename T >
using SubtractImage = ProcessedImage< T, SubtractOperation< T > >
 
template<typename T >
using MultiplyImage = ProcessedImage< T, MultiplyOperation< T > >
 
template<typename T >
using SnrImage = ProcessedImage< T, SnrOperation< T > >
 
typedef float PIXTYPE
 
using ExternalFlagTaskOr = ExternalFlagTask< ExternalFlagCombineTypes::Or >
 
using ExternalFlagTaskAnd = ExternalFlagTask< ExternalFlagCombineTypes::And >
 
using ExternalFlagTaskMin = ExternalFlagTask< ExternalFlagCombineTypes::Min >
 
using ExternalFlagTaskMax = ExternalFlagTask< ExternalFlagCombineTypes::Max >
 
using ExternalFlagTaskMost = ExternalFlagTask< ExternalFlagCombineTypes::Most >
 
template<typename T >
using NdArray = Euclid::NdArray::NdArray< T >
 
using Traits = ModelFitting::ImageTraits< ImageInterfaceTypePtr >
 
typedef Observable< std::list< ProgressInfo > > ProgressObservable
 
typedef Observable< bool > DoneObservable
 
typedef Observer< std::list< ProgressInfo > > ProgressObserver
 
typedef Observer< bool > DoneObserver
 
using SeFloat32 = float
 
using SeFloat64 = double
 
using SeFloat = SeFloat32
 

Enumerations

enum  FrameImageLayer {
  LayerOriginalImage = 0 , LayerInterpolatedImage , LayerSubtractedImage , LayerFilteredImage ,
  LayerThresholdedImage , LayerSignalToNoiseMap , LayerOriginalVarianceMap , LayerUnfilteredVarianceMap ,
  LayerVarianceMap , LayerDetectionThresholdMap
}
 
enum class  Flags : int64_t {
  NONE = 0 , BIASED = 1ll << 0 , BLENDED = 1ll << 1 , SATURATED = 1ll << 2 ,
  BOUNDARY = 1ll << 3 , NEIGHBORS = 1ll << 4 , OUTSIDE = 1ll << 5 , PARTIAL_FIT = 1ll << 6 ,
  INSUFFICIENT_DATA = 1ll << 7 , ERROR = 1ll << 10 , MEMORY = 1ll << 11 , BAD_PROJECTION = 1ll << 12 ,
  DOWNSAMPLED = 1ll << 13 , SENTINEL = 1ll << 14
}
 Flagging of bad sources. More...
 
enum  interpenum {
  INTERP_NEARESTNEIGHBOUR , INTERP_BILINEAR , INTERP_LANCZOS2 , INTERP_LANCZOS3 ,
  INTERP_LANCZOS4
}
 
enum class  LutzStatus { COMPLETE = 0 , INCOMPLETE , NONOBJECT , OBJECT }
 
enum class  LutzMarker {
  ZERO = 0 , S , S0 , F ,
  F0
}
 

Functions

Flags computeFlags (const std::shared_ptr< Aperture > &aperture, SeFloat centroid_x, SeFloat centroid_y, const std::vector< PixelCoordinate > &pix_list, const std::shared_ptr< Image< SeFloat >> &detection_img, const std::shared_ptr< Image< SeFloat >> &detection_variance, const std::shared_ptr< Image< SeFloat >> &threshold_image, SeFloat variance_threshold)
 
FluxMeasurement measureFlux (const std::shared_ptr< Aperture > &aperture, SeFloat centroid_x, SeFloat centroid_y, const std::shared_ptr< Image< SeFloat >> &img, const std::shared_ptr< Image< SeFloat >> &variance_map, SeFloat variance_threshold, bool use_symmetry)
 
template<typename T >
void fillAperture (const std::shared_ptr< Aperture > &aperture, SeFloat centroid_x, SeFloat centroid_y, const std::shared_ptr< WriteableImage< T >> &img, T value)
 
template<typename T >
void drawAperture (const std::shared_ptr< Aperture > &aperture, SeFloat centroid_x, SeFloat centroid_y, const std::shared_ptr< WriteableImage< T >> &img, T value)
 
int fftRoundDimension (int size)
 
template<typename T , template< typename > class Img>
static void copyImageToFFTWorkArea (Img< T > &origin, std::vector< T > &buffer)
 
template<typename T , template< typename > class Img>
static void copyFFTWorkAreaToImage (std::vector< T > &buffer, Img< T > &dest, int rpad=0, int lpad=0, int tpad=0, int bpad=0, bool normalize=true)
 
int ReplicateCoordinates (int N, int v)
 
int ReflectCoordinates (int N, int v)
 
int Reflect101Coordinates (int N, int v)
 
int WrapCoordinates (int N, int v)
 
std::ostreamoperator<< (std::ostream &out, const TileKey &tk)
 
constexpr Flags operator| (const Flags &a, const Flags &b)
 
constexpr Flags operator& (const Flags &a, const Flags &b)
 
constexpr Flags operator* (const Flags &a, const bool b)
 
Flagsoperator|= (Flags &a, const Flags &b)
 
constexpr int64_t flags2long (const Flags &a)
 
std::vector< int64_tflags2long (const std::vector< Flags > &v)
 
std::ostreamoperator<< (std::ostream &out, Flags flags)
 
static std::tuple< SeFloat, SeFloatgetMirrorPixel (SeFloat centroid_x, SeFloat centroid_y, PixelCoordinate min_pixel, int pixel_x, int pixel_y, const ImageChunk< SeFloat > &img, const ImageChunk< SeFloat > &variance_map, SeFloat variance_threshold)
 
std::pair< double, double > transform (int x, int y, const std::array< double, 4 > &t)
 
static void wcsRaiseOnParseError (int ret_code)
 
static void wcsLogErr (wcserr *err)
 
static void wcsRaiseOnTransformError (wcsprm *wcs, int ret_code)
 
static std::set< std::stringwcsExtractKeywords (const char *header, int number_of_records)
 
static void wcsCheckHeaders (const wcsprm *wcs, const char *headers_str, int number_of_records)
 
static void wcsReportWarnings (const char *err_buffer)
 
static int wrapped_lincpy (int alloc, const struct linprm *linsrc, struct linprm *lindst)
 
static MetadataEntry::value_t valueAutoCast (const std::string &value)
 
static void close_fits (fitsfile *ptr)
 
static std::map< std::string, MetadataEntryloadHeadersFromFits (fitsfile *fptr)
 
template<typename T >
std::shared_ptr< VectorImage< T > > ReplaceUndef (const VectorImage< T > &original, T mask)
 
std::shared_ptr< VectorImage< SeFloat > > ReplaceUndef (const VectorImage< SeFloat > &, SeFloat)
 
float interpolate_pix (float *pix, float x, float y, int xsize, int ysize, interpenum interptype)
 
bool operator< (std::reference_wrapper< const SourceInterface > a, std::reference_wrapper< const SourceInterface > b)
 
template<typename T >
static T getMaskedValue (int x, int y, const VectorImage< T > &img, T invalid)
 
static float computeScaling (const std::shared_ptr< VectorImage< DetectionImage::PixelType >> &variance, const std::shared_ptr< VectorImage< WeightImage::PixelType >> &weight)
 
static float getMedian (const VectorImage< DetectionImage::PixelType > &img)
 
static double image_to_world_alpha (const Pyston::Context &context, double x, double y)
 
static double image_to_world_delta (const Pyston::Context &context, double x, double y)
 
static bool getNormalization (std::istream &line_stream)
 
template<typename T >
static void extractValues (std::istream &line_stream, std::vector< T > &data)
 
static WeightImage::PixelType computeWeightThreshold (WeightImageConfig::WeightType weight_type, double threshold)
 
bool operator< (SourceGroupInterface::iterator a, SourceGroupInterface::iterator b)
 
static void makeLanczos2Kernel (float pos, float *kernel, const float threshold)
 
static void makeLanczos3Kernel (float pos, float *kernel, const float threshold)
 
static void makeLanczos4Kernel (float pos, float *kernel, const float threshold)
 
void make_kernel (float pos, float *kernel, interpenum interptype)
 
double getClamped (const ImageInterfaceTypePtr &image, int x, int y)
 
void shiftResize (const ImageInterfaceTypePtr &source, ImageInterfaceTypePtr &window, double scale_factor, double x_shift, double y_shift)
 
void shiftResizeLancszos (const ImageInterfaceTypePtr &source, ImageInterfaceTypePtr &window, double scale_factor, double x_shift, double y_shift)
 
void shiftResizeLancszosFast (const ImageInterfaceTypePtr &source, ImageInterfaceTypePtr &window, double scale_factor, double x_shift, double y_shift)
 
template<typename T >
std::string generateHeader (const std::string &name, T value, const std::string &comment)
 
template<>
std::string generateHeader< std::string > (const std::string &name, std::string value, const std::string &comment)
 
static void generateHistory (std::vector< std::string > &headers)
 
static double computeBn (double n)
 
static SeFloat getPixelValue (int x, int y, SeFloat centroid_x, SeFloat centroid_y, const std::shared_ptr< ImageAccessor< SeFloat >> &image, const std::shared_ptr< ImageAccessor< SeFloat >> &variance_map, SeFloat variance_threshold, bool use_symmetry)
 
template<typename T >
static void fillCutout (const Image< T > &image, int center_x, int center_y, int width, int height, std::vector< T > &out)
 
template<typename O >
static std::unique_ptr< OnnxProperty::NdWrapperBasecomputePropertiesSpecialized (const OnnxModel &model, const DetectionFrameImages &detection_frame_images, const PixelCentroid &centroid)
 
static std::string generatePropertyName (const OnnxModel &model)
 
static std::string formatShape (const std::vector< int64_t > &shape)
 
template<typename T >
static void registerColumnConverter (OutputRegistry &registry, const OnnxSourceTask::OnnxModelInfo &model_info)
 
static std::shared_ptr< VariablePsfStackreadStackedPsf (std::unique_ptr< CCfits::FITS > &pFits)
 
static std::shared_ptr< VariablePsfreadPsfEx (std::unique_ptr< CCfits::FITS > &pFits)
 
template<typename T >
static std::shared_ptr< VariablePsfreadImage (T &image_hdu)
 
static double getCoordX (SourceXtractor::SourceGroupInterface &group, unsigned instance)
 
static double getCoordY (SourceXtractor::SourceGroupInterface &group, unsigned instance)
 
static double getCoordX (SourceXtractor::SourceInterface &source, unsigned instance)
 
static double getCoordY (SourceXtractor::SourceInterface &source, unsigned instance)
 
 BOOST_PYTHON_MODULE (_SourceXtractorPy)
 
static std::tuple< float, float > applyKernel (const VectorImage< SeFloat > &kernel, ImageChunk< SeFloat > &image_chunk, ImageChunk< SeFloat > &variance_chunk, int start_x, int start_y, int clip_w, int clip_h, SeFloat threshold)
 
static void handleTerminatingSignal (int s)
 
static void handleStopSignal (int s)
 
static void handleContinuationSignal (int s)
 
static void handleResizeSignal (int)
 
static int interceptFileDescriptor (int old_fd, int *backup_fd)
 
static void override_rl_display (void)
 
static unsigned int extractSourceId (const SourceInterface &i)
 
bool isClose (double a, double b, double atol=1e-8, double rtol=1e-5)
 
template<typename T >
nextPowerOfTwo (T v)
 
template<typename T , typename U >
boost::test_tools::predicate_result compareImages (const T &ref, const U &val, double atol=1e-8, double rtol=1e-5)
 
template<typename T , typename U >
boost::test_tools::predicate_result compareCollections (const T &ref, const U &val, double atol=1e-8, double rtol=1e-5)
 
boost::test_tools::predicate_result checkIsClose (double ref, const double val, double atol=1e-8, double rtol=1e-5)
 
template<typename To , typename From >
To VariantCast (const From &from)
 

Variables

static Elements::Logging fitsWriterLogger = Elements::Logging::getLogger("FitsWriter")
 
const std::map< Flags, std::stringFlagsStr
 String representation of the flags. More...
 
const int SUPERSAMPLE_NB = 10
 
const SeFloat CROWD_THRESHOLD_APER = 0.1
 
const SeFloat BADAREA_THRESHOLD_APER = 0.1
 
static auto logger = Elements::Logging::getLogger("WCS")
 
decltype(&lincpy) safe_lincpy = &lincpy
 
boost::mutex fftw_global_plan_mutex {}
 
static std::shared_ptr< TileManagers_instance
 
static Elements::Logging s_tile_logger = Elements::Logging::getLogger("TileManager")
 
static Elements::Logging logger = Elements::Logging::getLogger("PluginManager")
 
static Elements::Logging bck_model_logger = Elements::Logging::getLogger("BackgroundModel")
 
Ort::Env ORT_ENV
 
Elements::Logging model_fitting_logger = Elements::Logging::getLogger("ModelFitting")
 
Elements::Logging onnx_logger = Elements::Logging::getLogger("MLMeasurement")
 Logger for the ONNX plugin. More...
 
static const std::string USE_ATTRACTORS_PARTITION {"use-attractors-partition"}
 
static const std::string BACKGROUND_VALUE {"background-value" }
 
static const std::string THRESHOLD_VALUE {"detection-threshold" }
 
static const std::string CHECK_MODEL_FITTING { "check-image-model-fitting" }
 
static const std::string CHECK_RESIDUAL { "check-image-residual" }
 
static const std::string CHECK_MODEL_BACKGROUND { "check-image-background" }
 
static const std::string CHECK_MODEL_VARIANCE { "check-image-variance" }
 
static const std::string CHECK_SEGMENTATION { "check-image-segmentation" }
 
static const std::string CHECK_PARTITION { "check-image-partition" }
 
static const std::string CHECK_GROUPING { "check-image-grouping" }
 
static const std::string CHECK_FILTERED { "check-image-filtered" }
 
static const std::string CHECK_THRESHOLDED { "check-image-thresholded" }
 
static const std::string CHECK_SNR { "check-image-snr" }
 
static const std::string CHECK_AUTO_APERTURE { "check-image-auto-aperture" }
 
static const std::string CHECK_APERTURE { "check-image-aperture" }
 
static const std::string CHECK_PSF { "check-image-psf" }
 
static const std::string CHECK_ML_DETECTION { "check-image-ml-detection" }
 
static const std::string CHECK_MOFFAT { "debug-image-moffat" }
 
static const std::string USE_CLEANING {"use-cleaning"}
 
static const std::string CLEANING_MINAREA {"cleaning-minimum-area"}
 
static const std::string DETECTION_IMAGE { "detection-image" }
 
static const std::string DETECTION_IMAGE_GAIN { "detection-image-gain" }
 
static const std::string DETECTION_IMAGE_FLUX_SCALE {"detection-image-flux-scale"}
 
static const std::string DETECTION_IMAGE_SATURATION { "detection-image-saturation" }
 
static const std::string DETECTION_IMAGE_INTERPOLATION { "detection-image-interpolation" }
 
static const std::string DETECTION_IMAGE_INTERPOLATION_GAP { "detection-image-interpolation-gap" }
 
static const std::string GROUPING_ALGORITHM {"grouping-algorithm" }
 
static const std::string GROUPING_HARD_LIMIT {"grouping-hard-limit" }
 
static const std::string GROUPING_MOFFAT_THRESHOLD {"grouping-moffat-threshold" }
 
static const std::string GROUPING_MOFFAT_MAX_DISTANCE {"grouping-moffat-max-distance" }
 
static const std::string GROUPING_ALGORITHM_NONE {"NONE" }
 
static const std::string GROUPING_ALGORITHM_OVERLAP {"OVERLAP" }
 
static const std::string GROUPING_ALGORITHM_SPLIT {"SPLIT" }
 
static const std::string GROUPING_ALGORITHM_MOFFAT {"MOFFAT" }
 
static const std::string MFIT_MAX_ITERATIONS {"model-fitting-iterations"}
 
static const std::string MFIT_ENGINE {"model-fitting-engine"}
 
static const std::string MAG_ZEROPOINT {"magnitude-zero-point"}
 
static const std::string MAX_TILE_MEMORY {"tile-memory-limit"}
 
static const std::string TILE_SIZE {"tile-size"}
 
static const std::string DETECT_MINAREA {"detection-minimum-area"}
 
static const std::string THREADS_NB {"thread-count"}
 
static const std::string MAX_QUEUE_SIZE {"thread-max-queue-size"}
 
static const std::string MTHRESH_USE {"partition-multithreshold"}
 
static const std::string MTHRESH_THRESHOLDS_NB {"partition-threshold-count"}
 
static const std::string MTHRESH_MIN_AREA {"partition-minimum-area"}
 
static const std::string MTHRESH_MIN_CONTRAST {"partition-minimum-contrast"}
 
static const std::string OUTPUT_FILE {"output-catalog-filename"}
 
static const std::string OUTPUT_FILE_FORMAT {"output-catalog-format"}
 
static const std::string OUTPUT_PROPERTIES {"output-properties"}
 
static const std::string OUTPUT_FLUSH_SIZE {"output-flush-size"}
 
static const std::string OUTPUT_UNSORTED {"output-flush-unsorted"}
 
static std::map< std::string, OutputConfig::OutputFileFormatformat_map
 
static const std::string SAMPLING_SCALE_FACTOR {"sampling-scale-factor"}
 
static const std::string SAMPLING_MAX_FIT_SIZE {"sampling-max-fit-size"}
 
static const std::string CELLSIZE_VALUE {"background-cell-size" }
 
static const std::string SMOOTHINGBOX_VALUE {"smoothing-box-size" }
 
static const std::string LEGACY_BACKGROUND {"background-legacy"}
 
static Elements::Logging segConfigLogger = Elements::Logging::getLogger("Config")
 
static const std::string SEGMENTATION_ALGORITHM {"segmentation-algorithm" }
 
static const std::string SEGMENTATION_DISABLE_FILTERING {"segmentation-disable-filtering" }
 
static const std::string SEGMENTATION_FILTER {"segmentation-filter" }
 
static const std::string SEGMENTATION_LUTZ_WINDOW_SIZE {"segmentation-lutz-window-size" }
 
static const std::string SEGMENTATION_BFS_MAX_DELTA {"segmentation-bfs-max-delta" }
 
static const std::string SEGMENTATION_ML_MODEL {"segmentation-ml-model" }
 
static const std::string SEGMENTATION_ML_THRESHOLD {"segmentation-ml-threshold" }
 
static const std::string WEIGHT_IMAGE {"weight-image" }
 
static const std::string WEIGHT_TYPE {"weight-type" }
 
static const std::string WEIGHT_ABSOLUTE {"weight-absolute" }
 
static const std::string WEIGHT_SCALING {"weight-scaling" }
 
static const std::string WEIGHT_THRESHOLD {"weight-threshold" }
 
static const std::string WEIGHT_SYMMETRYUSAGE {"weight-use-symmetry" }
 
constexpr float PI = boost::math::constants::pi<float>()
 
static StaticPlugin< AperturePhotometryPluginaperture_photometry_plugin
 
static const std::string ASSOC_CATALOG { "assoc-catalog" }
 
static const std::string ASSOC_MODE { "assoc-mode" }
 
static const std::string ASSOC_RADIUS { "assoc-radius" }
 
static const std::string ASSOC_FILTER { "assoc-filter" }
 
static const std::string ASSOC_COPY { "assoc-copy" }
 
static const std::string ASSOC_COLUMNS { "assoc-columns" }
 
static StaticPlugin< AssocModePluginassoc_plugin
 
static StaticPlugin< AutoPhotometryPluginaperture_photometry_plugin
 
static StaticPlugin< BlendedFlagPluginblended_plugin
 
static StaticPlugin< BoundaryFlagPluginboundary_flag
 
static const std::string CORE_THRESHOLD {"core-threshold-value" }
 
static const std::string CORE_MINAREA {"core-minimum-area" }
 
static const std::string CORE_THRESH_USE {"partition-corethreshold" }
 
static StaticPlugin< CoreThresholdPartitionPluginn_core_pixels
 
static StaticPlugin< DetectionFrameCoordinatesPlugindetection_frame_coordinates_plugin
 
static StaticPlugin< DetectionFrameGroupStampPlugindetection_frame_group_stamp_plugin
 
static StaticPlugin< DetectionFrameImagesPlugindetection_frame_coordinates_plugin
 
static StaticPlugin< DetectionFrameInfoPlugindetection_frame_info_plugin
 
static StaticPlugin< DetectionFramePixelValuesPlugindetection_frame_pixel_values_plugin
 
static StaticPlugin< DetectionFrameSourceStampPlugindetection_frame_source_stamp_plugin
 
static StaticPlugin< ExternalFlagPluginpixel_boundaries_plugin
 
static auto logger = Elements::Logging::getLogger("FlexibleModelFitting")
 
static const double MODEL_MIN_SIZE = 4.0
 
static const double MODEL_SIZE_FACTOR = 1.2
 
static StaticPlugin< FlexibleModelFittingPluginflexible_modelfitting_plugin
 
static auto logger = Elements::Logging::getLogger("FlexibleModelFitting")
 
static auto logger = Elements::Logging::getLogger("FlexibleModelFitting")
 
static const std::string FLUX_FRACTION {"flux-fraction"}
 
static StaticPlugin< FluxRadiusPluginflux_radius_plugin
 
static StaticPlugin< GroupInfoPlugingroup_info_plugin
 
static const std::string GROWTH_NSAMPLES {"flux-growth-samples"}
 
static StaticPlugin< GrowthCurvePlugingrowthcurve_plugin
 
static const SeFloat GROWTH_NSIG = 6.
 
static const size_t GROWTH_NSAMPLES = 64
 
static StaticPlugin< IsophotalFluxPluginisophotal_flux_plugin
 
static StaticPlugin< JacobianPluginjacobian_plugin
 
static StaticPlugin< KronRadiusPluginkron_radius_plugin
 
static StaticPlugin< MeasurementFramePluginmeasurement_frame_pixel_centroid_plugin
 
static StaticPlugin< MeasurementFrameCoordinatesPluginmeasurement_frame_coordinates_plugin
 
static StaticPlugin< MeasurementFrameGroupRectanglePluginmeasurement_frame_group_rectangle_plugin
 
static StaticPlugin< MeasurementFrameImagesPluginmeasurement_frame_coordinates_plugin
 
static StaticPlugin< MeasurementFrameInfoPluginmeasurement_frame_info_plugin
 
static StaticPlugin< MeasurementFramePixelCentroidPluginmeasurement_frame_pixel_centroid_plugin
 
static StaticPlugin< MeasurementFrameRectanglePluginmeasurement_frame_rectangle_plugin
 
static StaticPlugin< MoffatModelFittingPluginsimple_modelfitting_plugin
 
static StaticPlugin< NDetectedPixelsPluginn_detected_pixels
 
static const std::string ML_MEASUREMENT_MODEL {"ml-measurement-model"}
 
static StaticPlugin< OnnxPluginonnx_plugin
 
static StaticPlugin< PeakValuePluginpeak_value_plugin
 
static StaticPlugin< PixelBoundariesPluginpixel_boundaries_plugin
 
static StaticPlugin< PixelCentroidPluginpixel_centroid_plugin
 
static StaticPlugin< PsfPluginpsf_plugin
 
static const std::string PSF_FILE {"psf-filename"}
 
static const std::string PSF_FWHM {"psf-fwhm" }
 
static const std::string PSF_PIXEL_SAMPLING {"psf-pixel-sampling" }
 
static StaticPlugin< SaturateFlagPluginsaturate_flag
 
static StaticPlugin< ShapeParametersPluginshape_parameters_plugin
 
static StaticPlugin< SNRRatioPluginsnrratio
 
static StaticPlugin< SourceFlagsPluginsource_flags
 
static StaticPlugin< SourceIDsPluginsource_IDs_plugin
 
static StaticPlugin< SourcePsfPluginpsf_plugin
 
static const std::string VIGNET_SIZE {"vignet-size" }
 
static const std::string VIGNET_DEFAULT_PIXVAL {"vignet-default-pixval" }
 
static StaticPlugin< VignetPluginvignet
 
static StaticPlugin< WorldCentroidPluginpixel_centroid_plugin
 
static const std::string PLUGIN_DIRECTORY { "plugin-directory" }
 
static const std::string PLUGIN { "plugin" }
 
static struct sigaction sigterm_action sigstop_action sigcont_action sigwich_action
 
static std::map< int, struct sigaction > prev_signal
 
static int signal_fds [2]
 
static struct SourceXtractor::ncurses_done ncurses_done
 
static const std::string PROGRESS_MIN_INTERVAL {"progress-min-interval"}
 
static const std::string PROGRESS_BAR_DISABLED {"progress-bar-disable"}
 

Detailed Description

Copyright © 2019 Université de Genève, LMU Munich - Faculty of Physics, IAP-CNRS/Sorbonne Université

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Copyright © 2019-2021 Université de Genève, LMU Munich - Faculty of Physics, IAP-CNRS/Sorbonne Université

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Copyright © 2021 Université de Genève, LMU Munich - Faculty of Physics, IAP-CNRS/Sorbonne Université

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Copyright © 2020 Université de Genève, LMU Munich - Faculty of Physics, IAP-CNRS/Sorbonne Université

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Copyright © 2019-2012 Université de Genève, LMU Munich - Faculty of Physics, IAP-CNRS/Sorbonne Université

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Typedef Documentation

◆ DefaultConvolutionStrategy

For convenience, default convolution strategy.

Definition at line 34 of file Convolution.h.

◆ DetectionImage

Alias for the detection image, to make easier its type modification.

Definition at line 79 of file Image.h.

◆ DetectionImageFrame

Definition at line 188 of file Frame.h.

◆ DetectionImageProcessing

Definition at line 39 of file ImageProcessing.h.

◆ DetectionImageProcessingList

Definition at line 64 of file ImageProcessingList.h.

◆ DoneObservable

Definition at line 43 of file ProgressMediator.h.

◆ DoneObserver

Definition at line 35 of file ProgressReporter.h.

◆ ExternalFlagTaskAnd

Definition at line 69 of file ExternalFlagTask.h.

◆ ExternalFlagTaskMax

Definition at line 75 of file ExternalFlagTask.h.

◆ ExternalFlagTaskMin

Definition at line 72 of file ExternalFlagTask.h.

◆ ExternalFlagTaskMost

Definition at line 78 of file ExternalFlagTask.h.

◆ ExternalFlagTaskOr

Definition at line 66 of file ExternalFlagTask.h.

◆ FlagImage

Alias for the flag image, to make easier its type modification.

Definition at line 88 of file Image.h.

◆ MeasurementImage

Alias for the measurement image, to make easier its type modification.

Definition at line 82 of file Image.h.

◆ MeasurementImageFrame

Definition at line 189 of file Frame.h.

◆ MultiplyImage

template<typename T >
using SourceXtractor::MultiplyImage = typedef ProcessedImage<T, MultiplyOperation<T> >

Definition at line 111 of file ProcessedImage.h.

◆ NdArray

template<typename T >
using SourceXtractor::NdArray = typedef Euclid::NdArray::NdArray<T>

Definition at line 37 of file VignetPlugin.h.

◆ PIXTYPE

typedef float SourceXtractor::PIXTYPE

Definition at line 30 of file BackgroundDefine.h.

◆ ProgressObservable

Definition at line 42 of file ProgressMediator.h.

◆ ProgressObserver

Definition at line 34 of file ProgressReporter.h.

◆ SeFloat

Definition at line 32 of file Types.h.

◆ SeFloat32

using SourceXtractor::SeFloat32 = typedef float

Definition at line 29 of file Types.h.

◆ SeFloat64

using SourceXtractor::SeFloat64 = typedef double

Definition at line 30 of file Types.h.

◆ SnrImage

template<typename T >
using SourceXtractor::SnrImage = typedef ProcessedImage<T, SnrOperation<T> >

Definition at line 120 of file ProcessedImage.h.

◆ SubtractImage

template<typename T >
using SourceXtractor::SubtractImage = typedef ProcessedImage<T, SubtractOperation<T> >

Definition at line 102 of file ProcessedImage.h.

◆ Traits

Definition at line 14 of file ImageInterfaceTraits.cpp.

◆ WeightImage

Alias for the weight image, to make easier its type modification.

Definition at line 85 of file Image.h.

Enumeration Type Documentation

◆ Flags

Flagging of bad sources.

Enumerator
NONE 

No flag is set.

BIASED 

The object has bad pixels.

BLENDED 

The object was originally blended with another one.

SATURATED 

At least one pixel of the object is saturated.

BOUNDARY 

The object is truncated (too close to an image boundary)

NEIGHBORS 

The object has neighbors, bright and close enough.

OUTSIDE 

The object is completely outside of the measurement frame.

PARTIAL_FIT 

Some/all of the model parameters could not be fitted.

INSUFFICIENT_DATA 

There are not enough good pixels to fit the parameters.

ERROR 

Error flag: something bad happened during the measurement, model fitting, etc.

MEMORY 

Failed to allocate an object, buffer, etc.

BAD_PROJECTION 

Failed to project some of the coordinates into one of the measurement frames.

DOWNSAMPLED 

The fit was done on a downsampled image due to exceeding max size.

SENTINEL 

Used to find the boundary of possible values.

Definition at line 37 of file SourceFlags.h.

◆ FrameImageLayer

Enumerator
LayerOriginalImage 
LayerInterpolatedImage 
LayerSubtractedImage 
LayerFilteredImage 
LayerThresholdedImage 
LayerSignalToNoiseMap 
LayerOriginalVarianceMap 
LayerUnfilteredVarianceMap 
LayerVarianceMap 
LayerDetectionThresholdMap 

Definition at line 35 of file Frame.h.

◆ interpenum

Enumerator
INTERP_NEARESTNEIGHBOUR 
INTERP_BILINEAR 
INTERP_LANCZOS2 
INTERP_LANCZOS3 
INTERP_LANCZOS4 

Definition at line 103 of file ImageInterfaceTraits.h.

◆ LutzMarker

Enumerator
ZERO 
S0 
F0 

Definition at line 50 of file Lutz.cpp.

◆ LutzStatus

Enumerator
COMPLETE 
INCOMPLETE 
NONOBJECT 
OBJECT 

Definition at line 43 of file Lutz.cpp.

Function Documentation

◆ applyKernel()

static std::tuple<float, float> SourceXtractor::applyKernel ( const VectorImage< SeFloat > &  kernel,
ImageChunk< SeFloat > &  image_chunk,
ImageChunk< SeFloat > &  variance_chunk,
int  start_x,
int  start_y,
int  clip_w,
int  clip_h,
SeFloat  threshold 
)
static

Definition at line 44 of file BgConvolutionImageSource.cpp.

References SourceXtractor::VectorImage< T >::getHeight(), SourceXtractor::ImageChunk< T >::getValue(), SourceXtractor::VectorImage< T >::getValue(), SourceXtractor::VectorImage< T >::getWidth(), and std::make_pair().

Referenced by SourceXtractor::BgConvolutionImageSource::generateTile().

Here is the call graph for this function:

◆ BOOST_PYTHON_MODULE()

SourceXtractor::BOOST_PYTHON_MODULE ( _SourceXtractorPy  )

Definition at line 39 of file PythonModule.cpp.

References SourceXtractor::PyAperture::apertures, BIASED, BOUNDARY, SourceXtractor::PyOutputWrapper::close(), SourceXtractor::PyOutputWrapper::closed, SourceXtractor::PyMeasurementImage::constant_background_value, ERROR, SourceXtractor::PyMeasurementImage::file, SourceXtractor::PyOutputWrapper::fileno(), SourceXtractor::PyOutputWrapper::flush(), SourceXtractor::PyMeasurementImage::flux_scale, SourceXtractor::PyMeasurementImage::gain, SourceXtractor::PyFitsFile::getFilename(), SourceXtractor::PyFitsFile::getHeaders(), SourceXtractor::PyFitsFile::getImageHdus(), SourceXtractor::PyMeasurementImage::has_weight_threshold, SourceXtractor::PyId::id, SourceXtractor::PyMeasurementImage::image_hdu, SourceXtractor::CoordinateSystem::imageToWorld(), INSUFFICIENT_DATA, SourceXtractor::PyMeasurementImage::is_background_constant, SourceXtractor::PyOutputWrapper::isatty(), SourceXtractor::WorldCoordinate::m_alpha, SourceXtractor::WorldCoordinate::m_delta, SourceXtractor::ImageCoordinate::m_x, SourceXtractor::ImageCoordinate::m_y, NEIGHBORS, NONE, OUTSIDE, PARTIAL_FIT, SourceXtractor::PyMeasurementImage::psf_file, SourceXtractor::PyMeasurementImage::psf_hdu, SourceXtractor::PyOutputWrapper::read(), SourceXtractor::PyOutputWrapper::readable(), SourceXtractor::PyOutputWrapper::readline(), SourceXtractor::PyOutputWrapper::readlines(), SATURATED, SourceXtractor::PyMeasurementImage::saturation, SourceXtractor::PyOutputWrapper::seek(), SourceXtractor::PyOutputWrapper::seekable(), SourceXtractor::PyOutputWrapper::tell(), SourceXtractor::PyAperture::toString(), SourceXtractor::PyOutputWrapper::truncate(), SourceXtractor::PyMeasurementImage::weight_absolute, SourceXtractor::PyMeasurementImage::weight_file, SourceXtractor::PyMeasurementImage::weight_hdu, SourceXtractor::PyMeasurementImage::weight_scaling, SourceXtractor::PyMeasurementImage::weight_threshold, SourceXtractor::PyMeasurementImage::weight_type, SourceXtractor::CoordinateSystem::worldToImage(), SourceXtractor::PyOutputWrapper::writable(), SourceXtractor::PyOutputWrapper::write(), and SourceXtractor::PyOutputWrapper::writelines().

Here is the call graph for this function:

◆ checkIsClose()

boost::test_tools::predicate_result SourceXtractor::checkIsClose ( double  ref,
const double  val,
double  atol = 1e-8,
double  rtol = 1e-5 
)

Definition at line 92 of file TestUtils.h.

References std::atol(), isClose(), and std::ref().

Here is the call graph for this function:

◆ close_fits()

static void SourceXtractor::close_fits ( fitsfile *  ptr)
static

Definition at line 86 of file FitsFile.cpp.

◆ compareCollections()

template<typename T , typename U >
boost::test_tools::predicate_result SourceXtractor::compareCollections ( const T &  ref,
const U &  val,
double  atol = 1e-8,
double  rtol = 1e-5 
)

Definition at line 64 of file TestUtils.h.

References std::atol(), std::begin(), std::end(), isClose(), and std::ref().

Here is the call graph for this function:

◆ compareImages()

template<typename T , typename U >
boost::test_tools::predicate_result SourceXtractor::compareImages ( const T &  ref,
const U &  val,
double  atol = 1e-8,
double  rtol = 1e-5 
)

Definition at line 33 of file TestUtils.h.

References std::atol(), isClose(), std::ref(), x, and y.

Here is the call graph for this function:

◆ computeBn()

static double SourceXtractor::computeBn ( double  n)
static

Definition at line 194 of file FlexibleModelFittingModel.cpp.

References std::max().

Referenced by SourceXtractor::FlexibleModelFittingSersicModel::addForSource().

Here is the call graph for this function:

◆ computeFlags()

Flags SourceXtractor::computeFlags ( const std::shared_ptr< Aperture > &  aperture,
SeFloat  centroid_x,
SeFloat  centroid_y,
const std::vector< PixelCoordinate > &  pix_list,
const std::shared_ptr< Image< SeFloat >> &  detection_img,
const std::shared_ptr< Image< SeFloat >> &  detection_variance,
const std::shared_ptr< Image< SeFloat >> &  threshold_image,
SeFloat  variance_threshold 
)

Definition at line 27 of file Flagging.cpp.

References BADAREA_THRESHOLD_APER, BIASED, BOUNDARY, CROWD_THRESHOLD_APER, SourceXtractor::NeighbourInfo::isNeighbourObjectPixel(), NEIGHBORS, and NONE.

Referenced by SourceXtractor::ApertureFlagTask::computeProperties(), and SourceXtractor::AutoPhotometryFlagTask::computeProperties().

Here is the call graph for this function:

◆ computePropertiesSpecialized()

template<typename O >
static std::unique_ptr<OnnxProperty::NdWrapperBase> SourceXtractor::computePropertiesSpecialized ( const OnnxModel model,
const DetectionFrameImages detection_frame_images,
const PixelCentroid centroid 
)
static

Templated implementation of computeProperties

An ONNX model can have different input and output element types (float, integer) with different precision. We only support float for input, but in order to support also integer outputs (i.e for classification) we template the computeProperties method on the output value type

Definition at line 61 of file OnnxSourceTask.cpp.

References std::accumulate(), std::vector< T >::begin(), std::vector< T >::end(), fillCutout(), SourceXtractor::PixelCentroid::getCentroidX(), SourceXtractor::PixelCentroid::getCentroidY(), SourceXtractor::OnnxModel::getInputShape(), SourceXtractor::DetectionFrameImages::getLockedImage(), SourceXtractor::OnnxModel::getOutputShape(), LayerSubtractedImage, and SourceXtractor::OnnxModel::run().

Here is the call graph for this function:

◆ computeScaling()

static float SourceXtractor::computeScaling ( const std::shared_ptr< VectorImage< DetectionImage::PixelType >> &  variance,
const std::shared_ptr< VectorImage< WeightImage::PixelType >> &  weight 
)
static

Definition at line 44 of file SEBackgroundLevelAnalyzer.cpp.

References std::vector< T >::begin(), std::vector< T >::emplace_back(), std::vector< T >::end(), std::vector< T >::reserve(), std::vector< T >::size(), std::sort(), x, and y.

Referenced by SourceXtractor::SEBackgroundLevelAnalyzer::analyzeBackground().

Here is the call graph for this function:

◆ computeWeightThreshold()

static WeightImage::PixelType SourceXtractor::computeWeightThreshold ( WeightImageConfig::WeightType  weight_type,
double  threshold 
)
static

Definition at line 78 of file WeightImageConfig.cpp.

References std::numeric_limits::max().

Referenced by SourceXtractor::WeightImageConfig::initialize().

Here is the call graph for this function:

◆ copyFFTWorkAreaToImage()

template<typename T , template< typename > class Img>
static void SourceXtractor::copyFFTWorkAreaToImage ( std::vector< T > &  buffer,
Img< T > &  dest,
int  rpad = 0,
int  lpad = 0,
int  tpad = 0,
int  bpad = 0,
bool  normalize = true 
)
static

Copy the data from a buffer following FFTW in-place memory layout (padded) into an image

See also
copyImageToFFTWorkArea
Template Parameters
TPixel type
ImgAn image type
Parameters
bufferFFTW output data
destImage to initialize with the buffer data
lpad(Optional, defaults to 0) For convolving, images are usually padded. When extracting the data, it is considered to be horizontally padded with this many pixels left
rpad(Optional, defaults to 0) For convolving, images are usually padded. When extracting the data, it is considered to be horizontally padded with this many pixels right
tpad(Optional, defaults to 0) For convolving, images are usually padded. When extracting the data, it is considered to be vertically padded with this many pixels top
bpad(Optional, defaults to 0) For convolving, images are usually padded. When extracting the data, it is considered to be vertically padded with this many pixels bottom
normalize(Optional, defaults to true) After a convolution, the output values are scaled by N (number of logical pixels on the input) If true, scale-back dividing by N

Definition at line 87 of file FFTHelper.h.

References std::vector< T >::size(), x, and y.

Referenced by SourceXtractor::DFTConvolution< T, TPadding >::convolve().

Here is the call graph for this function:

◆ copyImageToFFTWorkArea()

template<typename T , template< typename > class Img>
static void SourceXtractor::copyImageToFFTWorkArea ( Img< T > &  origin,
std::vector< T > &  buffer 
)
static

Initialize the buffer with the pixel values in origin taking into account the memory layout expected by an in-place FFT transform.

See also
http://www.fftw.org/fftw3_doc/Multi_002dDimensional-DFTs-of-Real-Data.html
Template Parameters
TPixel type
ImgAn image type
Parameters
originCopy pixels from this image
bufferInto this buffer
Warning
The size of the buffer must fit the padded data used by FFTW3: height * (width / 2 + 1) * 2

Definition at line 44 of file FFTHelper.h.

References std::vector< T >::size(), x, and y.

Referenced by SourceXtractor::DFTConvolution< T, TPadding >::dumpImage().

Here is the call graph for this function:

◆ drawAperture()

template<typename T >
void SourceXtractor::drawAperture ( const std::shared_ptr< Aperture > &  aperture,
SeFloat  centroid_x,
SeFloat  centroid_y,
const std::shared_ptr< WriteableImage< T >> &  img,
value 
)

Draws the pixels that fall within the aperture with the given value. Useful for debugging.

Template Parameters
T
Parameters
apertureAperture to use
centroid_xCenter of the aperture on the X axis
centroid_yCenter of the aperture on the Y axis
imgImage to modify
valueValue to use for the fill

Definition at line 112 of file FluxMeasurement.h.

References x, and y.

◆ extractSourceId()

static unsigned int SourceXtractor::extractSourceId ( const SourceInterface i)
static

Definition at line 23 of file Sorter.cpp.

References SourceXtractor::SourceInterface::getProperty().

Referenced by SourceXtractor::Sorter::handleMessage().

Here is the call graph for this function:

◆ extractValues()

template<typename T >
static void SourceXtractor::extractValues ( std::istream line_stream,
std::vector< T > &  data 
)
static

Definition at line 185 of file SegmentationConfig.cpp.

References std::istream::good(), and std::vector< T >::push_back().

Referenced by SourceXtractor::SegmentationConfig::loadASCIIFilter().

Here is the call graph for this function:

◆ fftRoundDimension()

int SourceXtractor::fftRoundDimension ( int  size)

FFTW is best at handling sizes of the form 2^a 3^b 5^c 7^d 11^e 13^f where e+f is either 0 or 1. It can compute any size, but to make things faster, this function will return a new size greater of equal to 'size' that falls into the previously mentioned form. It really improves the performance. Of course, there has to be an equilibrium, if the rounded-up size is too far, then the overhead of computing more data won't pay off. For size >= 1024, if will be rounded up to the next multiple of 512.

Parameters
sizeThe size to round up
Returns
A value greater of equal that should improve the performance of the transform computation.
See also
http://www.fftw.org/fftw3_doc/Real_002ddata-DFTs.html

Definition at line 49 of file FFT.cpp.

Referenced by SourceXtractor::DFTConvolution< T, TPadding >::prepare().

◆ fillAperture()

template<typename T >
void SourceXtractor::fillAperture ( const std::shared_ptr< Aperture > &  aperture,
SeFloat  centroid_x,
SeFloat  centroid_y,
const std::shared_ptr< WriteableImage< T >> &  img,
value 
)

Fill the pixels that fall within the aperture with the given value. Useful for debugging.

Template Parameters
T
Parameters
apertureAperture to use
centroid_xCenter of the aperture on the X axis
centroid_yCenter of the aperture on the Y axis
imgImage to modify
valueValue to use for the fill

Definition at line 81 of file FluxMeasurement.h.

References x, and y.

◆ fillCutout()

template<typename T >
static void SourceXtractor::fillCutout ( const Image< T > &  image,
int  center_x,
int  center_y,
int  width,
int  height,
std::vector< T > &  out 
)
static

Definition at line 32 of file OnnxSourceTask.cpp.

References SourceXtractor::Image< T >::getHeight(), SourceXtractor::ImageAccessor< T >::getValue(), and SourceXtractor::Image< T >::getWidth().

Referenced by computePropertiesSpecialized().

Here is the call graph for this function:

◆ flags2long() [1/2]

constexpr int64_t SourceXtractor::flags2long ( const Flags a)
inlineconstexpr

◆ flags2long() [2/2]

std::vector<int64_t> SourceXtractor::flags2long ( const std::vector< Flags > &  v)
inline

Definition at line 94 of file SourceFlags.h.

References std::vector< T >::emplace_back(), and flags2long().

Here is the call graph for this function:

◆ formatShape()

static std::string SourceXtractor::formatShape ( const std::vector< int64_t > &  shape)
static

Pretty-print a vector with shape information

Definition at line 58 of file OnnxTaskFactory.cpp.

References std::vector< T >::back(), std::vector< T >::begin(), std::vector< T >::end(), and std::ostringstream::str().

Here is the call graph for this function:

◆ generateHeader()

template<typename T >
std::string SourceXtractor::generateHeader ( const std::string name,
value,
const std::string comment 
)

Definition at line 64 of file LdacWriter.cpp.

References std::left(), std::right(), std::scientific(), std::setw(), std::string::size(), and std::stringstream::str().

Referenced by SourceXtractor::LdacWriter::writeImHead().

Here is the call graph for this function:

◆ generateHeader< std::string >()

template<>
std::string SourceXtractor::generateHeader< std::string > ( const std::string name,
std::string  value,
const std::string comment 
)

Definition at line 82 of file LdacWriter.cpp.

References std::left(), std::setw(), std::string::size(), and std::stringstream::str().

Here is the call graph for this function:

◆ generateHistory()

static void SourceXtractor::generateHistory ( std::vector< std::string > &  headers)
static

Definition at line 101 of file LdacWriter.cpp.

References e, std::vector< T >::emplace_back(), std::gmtime(), std::left(), std::setw(), std::stringstream::str(), std::strftime(), and std::time().

Referenced by SourceXtractor::LdacWriter::writeImHead().

Here is the call graph for this function:

◆ generatePropertyName()

static std::string SourceXtractor::generatePropertyName ( const OnnxModel model)
static

Generate a property name based on domain, graph name and output name

Definition at line 37 of file OnnxTaskFactory.cpp.

References std::string::empty(), SourceXtractor::OnnxModel::getDomain(), SourceXtractor::OnnxModel::getGraphName(), SourceXtractor::OnnxModel::getOutputName(), and std::stringstream::str().

Referenced by SourceXtractor::OnnxTaskFactory::configure().

Here is the call graph for this function:

◆ getClamped()

double SourceXtractor::getClamped ( const ImageInterfaceTypePtr image,
int  x,
int  y 
)
inline

Definition at line 206 of file ImageInterfaceTraits.cpp.

References ModelFitting::ImageTraits< ImageInterfaceTypePtr >::at(), ModelFitting::ImageTraits< ImageInterfaceTypePtr >::height(), std::max(), std::min(), ModelFitting::ImageTraits< ImageInterfaceTypePtr >::width(), x, and y.

Referenced by shiftResize(), and ModelFitting::ImageTraits< WriteableInterfaceTypePtr >::shiftResize().

Here is the call graph for this function:

◆ getCoordX() [1/2]

static double SourceXtractor::getCoordX ( SourceXtractor::SourceGroupInterface group,
unsigned  instance 
)
static

Definition at line 33 of file PsfTask.cpp.

References SourceXtractor::SourceGroupInterface::getProperty(), SourceXtractor::MeasurementFrameGroupRectangle::getTopLeft(), and SourceXtractor::PixelCoordinate::m_x.

Here is the call graph for this function:

◆ getCoordX() [2/2]

static double SourceXtractor::getCoordX ( SourceXtractor::SourceInterface source,
unsigned  instance 
)
static

Definition at line 27 of file SourcePsfTask.cpp.

References SourceXtractor::MeasurementFramePixelCentroid::getCentroidX(), and SourceXtractor::SourceInterface::getProperty().

Here is the call graph for this function:

◆ getCoordY() [1/2]

static double SourceXtractor::getCoordY ( SourceXtractor::SourceGroupInterface group,
unsigned  instance 
)
static

Definition at line 39 of file PsfTask.cpp.

References SourceXtractor::SourceGroupInterface::getProperty(), SourceXtractor::MeasurementFrameGroupRectangle::getTopLeft(), and SourceXtractor::PixelCoordinate::m_y.

Here is the call graph for this function:

◆ getCoordY() [2/2]

static double SourceXtractor::getCoordY ( SourceXtractor::SourceInterface source,
unsigned  instance 
)
static

Definition at line 32 of file SourcePsfTask.cpp.

References SourceXtractor::MeasurementFramePixelCentroid::getCentroidY(), and SourceXtractor::SourceInterface::getProperty().

Here is the call graph for this function:

◆ getMaskedValue()

template<typename T >
static T SourceXtractor::getMaskedValue ( int  x,
int  y,
const VectorImage< T > &  img,
invalid 
)
static

Definition at line 23 of file ReplaceUndefImage.cpp.

References std::count(), std::distance(), dx, dy, SourceXtractor::VectorImage< T >::getHeight(), SourceXtractor::VectorImage< T >::getValue(), SourceXtractor::VectorImage< T >::getWidth(), std::numeric_limits::max(), x, and y.

Referenced by ReplaceUndef().

Here is the call graph for this function:

◆ getMedian()

static float SourceXtractor::getMedian ( const VectorImage< DetectionImage::PixelType > &  img)
static

Definition at line 69 of file SEBackgroundLevelAnalyzer.cpp.

References SourceXtractor::VectorImage< T >::getData(), and std::sort().

Referenced by SourceXtractor::SEBackgroundLevelAnalyzer::analyzeBackground().

Here is the call graph for this function:

◆ getMirrorPixel()

static std::tuple<SeFloat, SeFloat> SourceXtractor::getMirrorPixel ( SeFloat  centroid_x,
SeFloat  centroid_y,
PixelCoordinate  min_pixel,
int  pixel_x,
int  pixel_y,
const ImageChunk< SeFloat > &  img,
const ImageChunk< SeFloat > &  variance_map,
SeFloat  variance_threshold 
)
static

Definition at line 32 of file FluxMeasurement.cpp.

References SourceXtractor::ImageChunk< T >::getValue(), SourceXtractor::Image< T >::isInside(), SourceXtractor::PixelCoordinate::m_x, SourceXtractor::PixelCoordinate::m_y, and std::make_pair().

Referenced by measureFlux().

Here is the call graph for this function:

◆ getNormalization()

static bool SourceXtractor::getNormalization ( std::istream line_stream)
static

◆ getPixelValue()

static SeFloat SourceXtractor::getPixelValue ( int  x,
int  y,
SeFloat  centroid_x,
SeFloat  centroid_y,
const std::shared_ptr< ImageAccessor< SeFloat >> &  image,
const std::shared_ptr< ImageAccessor< SeFloat >> &  variance_map,
SeFloat  variance_threshold,
bool  use_symmetry 
)
static

Definition at line 37 of file GrowthCurveTask.cpp.

References x, and y.

Referenced by SourceXtractor::GrowthCurveTask::computeProperties().

◆ handleContinuationSignal()

static void SourceXtractor::handleContinuationSignal ( int  )
static

Intercept SIGCONT (after fg, for instance)

Definition at line 279 of file ProgressNCurses.cpp.

Referenced by SourceXtractor::Screen::Screen().

◆ handleResizeSignal()

static void SourceXtractor::handleResizeSignal ( int  s)
static

Intercept SIGWICH (resize)

Definition at line 288 of file ProgressNCurses.cpp.

References s, and signal_fds.

Referenced by SourceXtractor::Screen::Screen().

◆ handleStopSignal()

static void SourceXtractor::handleStopSignal ( int  s)
static

Intercept SIGTSTP (Ctrl+Z)

Definition at line 265 of file ProgressNCurses.cpp.

References prev_signal, and s.

Referenced by SourceXtractor::Screen::Screen().

◆ handleTerminatingSignal()

static void SourceXtractor::handleTerminatingSignal ( int  s)
static

Intercept several terminating signals so the terminal style can be restored

We can only call signal safe functions here: see man 7 signal-safety. We use a pipe to communicate the signals, as write is safe. It would be nice to use C++ types for the thread synchronization, but they may not be signal safe. From C++14: The common subset of the C and C++ languages consists of all declarations, definitions, and expressions that may appear in a well formed C++ program and also in a conforming C program. A POF (“plain old function”) is a function that uses only features from this common subset, and that does not directly or indirectly use any function that is not a POF. [...] The behavior of any function other than a POF used as a signal handler in a C++ program is implementation-defined. Therefore we resort to semaphores (sem_*), which are signal safe

Definition at line 234 of file ProgressNCurses.cpp.

References SourceXtractor::ncurses_done::m_semaphore, prev_signal, s, and signal_fds.

Referenced by SourceXtractor::Screen::Screen().

◆ image_to_world_alpha()

static double SourceXtractor::image_to_world_alpha ( const Pyston::Context context,
double  x,
double  y 
)
static

Definition at line 160 of file ModelFittingConfig.cpp.

References std::map< K, T >::at(), x, and y.

Referenced by SourceXtractor::ModelFittingConfig::initializeInner().

Here is the call graph for this function:

◆ image_to_world_delta()

static double SourceXtractor::image_to_world_delta ( const Pyston::Context context,
double  x,
double  y 
)
static

Definition at line 165 of file ModelFittingConfig.cpp.

References std::map< K, T >::at(), x, and y.

Referenced by SourceXtractor::ModelFittingConfig::initializeInner().

Here is the call graph for this function:

◆ interceptFileDescriptor()

static int SourceXtractor::interceptFileDescriptor ( int  old_fd,
int *  backup_fd 
)
static

Intercepts writes to a file descriptor old_fd into a pipe, and returns the reading end

Parameters
old_fdFile descriptor to intercept
backup_fdDuplicate the file descriptor and put it here, so we can restore later
Returns
A new file descriptor, corresponding now to the read end of the intercepting pipe

Definition at line 70 of file ProgressNCurses.cpp.

References std::generic_category().

Referenced by SourceXtractor::ProgressNCurses::Dashboard::Dashboard().

Here is the call graph for this function:

◆ interpolate_pix()

float SourceXtractor::interpolate_pix ( float *  pix,
float  x,
float  y,
int  xsize,
int  ysize,
interpenum  interptype 
)

Definition at line 147 of file ImageInterfaceTraits.cpp.

References dx, dy, INTERP_MAXKERNELWIDTH, INTERP_NEARESTNEIGHBOUR, make_kernel(), x, and y.

Referenced by shiftResizeLancszos(), and ModelFitting::ImageTraits< WriteableInterfaceTypePtr >::shiftResizeLancszos().

Here is the call graph for this function:

◆ isClose()

bool SourceXtractor::isClose ( double  a,
double  b,
double  atol = 1e-8,
double  rtol = 1e-5 
)

Definition at line 28 of file IsClose.h.

References std::atol().

Referenced by checkIsClose(), compareCollections(), compareImages(), BenchBackgroundConvolution::verifyResults(), and BenchConvolution::verifyResults().

Here is the call graph for this function:

◆ loadHeadersFromFits()

static std::map<std::string, MetadataEntry> SourceXtractor::loadHeadersFromFits ( fitsfile *  fptr)
static

Definition at line 202 of file FitsFile.cpp.

References std::map< K, T >::emplace(), std::strncmp(), and valueAutoCast().

Referenced by SourceXtractor::FitsFile::loadFitsHeader().

Here is the call graph for this function:

◆ make_kernel()

void SourceXtractor::make_kernel ( float  pos,
float *  kernel,
interpenum  interptype 
)
inline

Definition at line 122 of file ImageInterfaceTraits.cpp.

References e, INTERP_BILINEAR, INTERP_LANCZOS2, INTERP_LANCZOS3, INTERP_LANCZOS4, INTERP_NEARESTNEIGHBOUR, makeLanczos2Kernel(), makeLanczos3Kernel(), and makeLanczos4Kernel().

Referenced by interpolate_pix(), and shiftResizeLancszosFast().

Here is the call graph for this function:

◆ makeLanczos2Kernel()

static void SourceXtractor::makeLanczos2Kernel ( float  pos,
float *  kernel,
const float  threshold 
)
static

Definition at line 17 of file ImageInterfaceTraits.cpp.

References PI, and x.

Referenced by make_kernel().

◆ makeLanczos3Kernel()

static void SourceXtractor::makeLanczos3Kernel ( float  pos,
float *  kernel,
const float  threshold 
)
static

Definition at line 44 of file ImageInterfaceTraits.cpp.

References PI, and x.

Referenced by make_kernel().

◆ makeLanczos4Kernel()

static void SourceXtractor::makeLanczos4Kernel ( float  pos,
float *  kernel,
const float  threshold 
)
static

Definition at line 79 of file ImageInterfaceTraits.cpp.

References PI, and x.

Referenced by make_kernel().

◆ measureFlux()

FluxMeasurement SourceXtractor::measureFlux ( const std::shared_ptr< Aperture > &  aperture,
SeFloat  centroid_x,
SeFloat  centroid_y,
const std::shared_ptr< Image< SeFloat >> &  img,
const std::shared_ptr< Image< SeFloat >> &  variance_map,
SeFloat  variance_threshold,
bool  use_symmetry 
)

Measure the flux on an image

Parameters
apertureAperture to use
centroid_xCenter of the aperture on the X axis
centroid_yCenter of the aperture on the Y axis
imgThe image where to measure
variance_mapVariance map
variance_thresholdIf the pixel value in the variance map is greater than this value, the pixel will be ignored
use_symmetryIf the pixel is ignored, try using the symmetric point value instead
Returns
A measurement with the total flux, variance, and the BOUNDARY flag if the aperture touches on a border

Definition at line 51 of file FluxMeasurement.cpp.

References BADAREA_THRESHOLD_APER, BIASED, BOUNDARY, getMirrorPixel(), SourceXtractor::FluxMeasurement::m_bad_area, SourceXtractor::FluxMeasurement::m_flags, SourceXtractor::FluxMeasurement::m_flux, SourceXtractor::FluxMeasurement::m_total_area, SourceXtractor::FluxMeasurement::m_variance, OUTSIDE, and std::tie().

Referenced by SourceXtractor::AperturePhotometryTask::computeProperties(), and SourceXtractor::AutoPhotometryTask::computeProperties().

Here is the call graph for this function:

◆ nextPowerOfTwo()

template<typename T >
T SourceXtractor::nextPowerOfTwo ( v)

Definition at line 26 of file Misc.h.

Referenced by SourceXtractor::HilbertCurve::HilbertCurve().

◆ operator&()

constexpr Flags SourceXtractor::operator& ( const Flags a,
const Flags b 
)
inlineconstexpr

Definition at line 76 of file SourceFlags.h.

◆ operator*()

constexpr Flags SourceXtractor::operator* ( const Flags a,
const bool  b 
)
constexpr

Definition at line 81 of file SourceFlags.h.

References NONE.

◆ operator<() [1/2]

bool SourceXtractor::operator< ( SourceGroupInterface::iterator  a,
SourceGroupInterface::iterator  b 
)
inline

Definition at line 41 of file Cleaning.cpp.

◆ operator<() [2/2]

bool SourceXtractor::operator< ( std::reference_wrapper< const SourceInterface a,
std::reference_wrapper< const SourceInterface b 
)
inline

Definition at line 37 of file FlexibleModelFittingParameterManager.h.

References std::reference_wrapper::get().

Here is the call graph for this function:

◆ operator<<() [1/2]

std::ostream& SourceXtractor::operator<< ( std::ostream out,
const TileKey tk 
)
inline

Definition at line 51 of file TileManager.h.

References SourceXtractor::TileKey::getRepr().

Here is the call graph for this function:

◆ operator<<() [2/2]

std::ostream& SourceXtractor::operator<< ( std::ostream out,
Flags  flags 
)
inline

Definition at line 102 of file SourceFlags.h.

References BIASED, FlagsStr, NONE, and SENTINEL.

◆ operator|()

constexpr Flags SourceXtractor::operator| ( const Flags a,
const Flags b 
)
inlineconstexpr

Definition at line 71 of file SourceFlags.h.

◆ operator|=()

Flags& SourceXtractor::operator|= ( Flags a,
const Flags b 
)
inline

Definition at line 85 of file SourceFlags.h.

◆ override_rl_display()

static void SourceXtractor::override_rl_display ( void  )
static

But why? You may ask. Because it looks like before Python 3.7, when loading the SourceXtractor++ Python configuration, something would trigger the loading of readline, which in turns tries to get the terminal size, overwriting LINES and COLS and leaving them with the default 80x24 (Maybe because we intercept stderr/stdout?) This leaves our ncurses UI in a bad shape, not being able to properly go back to the former state at exiting. Looking at the readline code, it appears like we can avoid a call into tgetent if we override rl_redisplay_function

Definition at line 103 of file ProgressNCurses.cpp.

Referenced by SourceXtractor::Screen::Screen().

◆ readImage()

template<typename T >
static std::shared_ptr<VariablePsf> SourceXtractor::readImage ( T &  image_hdu)
static

Definition at line 133 of file PsfPluginConfig.cpp.

References std::begin(), std::copy(), SourceXtractor::VectorImage< T >::create(), std::end(), and logger.

Referenced by SourceXtractor::PsfPluginConfig::readPsf().

Here is the call graph for this function:

◆ readPsfEx()

static std::shared_ptr<VariablePsf> SourceXtractor::readPsfEx ( std::unique_ptr< CCfits::FITS > &  pFits)
static

Definition at line 52 of file PsfPluginConfig.cpp.

References std::begin(), SourceXtractor::PsfTask::component_value_getters, SourceXtractor::VectorImage< T >::create(), e, std::find(), logger, and std::to_string().

Referenced by SourceXtractor::PsfPluginConfig::readPsf().

Here is the call graph for this function:

◆ readStackedPsf()

static std::shared_ptr<VariablePsfStack> SourceXtractor::readStackedPsf ( std::unique_ptr< CCfits::FITS > &  pFits)
static

Definition at line 46 of file PsfPluginConfig.cpp.

References logger, and std::move().

Referenced by SourceXtractor::PsfPluginConfig::readPsf().

Here is the call graph for this function:

◆ Reflect101Coordinates()

int SourceXtractor::Reflect101Coordinates ( int  N,
int  v 
)
inline

Definition at line 55 of file PaddedImage.h.

References std::max().

Here is the call graph for this function:

◆ ReflectCoordinates()

int SourceXtractor::ReflectCoordinates ( int  N,
int  v 
)
inline

Definition at line 38 of file PaddedImage.h.

◆ registerColumnConverter()

template<typename T >
static void SourceXtractor::registerColumnConverter ( OutputRegistry registry,
const OnnxSourceTask::OnnxModelInfo model_info 
)
static

Definition at line 104 of file OnnxTaskFactory.cpp.

References SourceXtractor::OnnxSourceTask::OnnxModelInfo::model, SourceXtractor::OnnxSourceTask::OnnxModelInfo::prop_name, and SourceXtractor::OutputRegistry::registerColumnConverter().

Here is the call graph for this function:

◆ ReplaceUndef() [1/2]

template std::shared_ptr< VectorImage< SeFloat > > SourceXtractor::ReplaceUndef ( const VectorImage< SeFloat > &  ,
SeFloat   
)

◆ ReplaceUndef() [2/2]

template<typename T >
std::shared_ptr< VectorImage< T > > SourceXtractor::ReplaceUndef ( const VectorImage< T > &  original,
mask 
)

Replace undefined (i.e. masked) values with the average of the closest defined pixel values

Template Parameters
TPixel type
Parameters
originalOriginal image
maskValue that masks invalid pixels

Definition at line 63 of file ReplaceUndefImage.cpp.

References SourceXtractor::VectorImage< T >::create(), SourceXtractor::VectorImage< T >::getHeight(), getMaskedValue(), SourceXtractor::VectorImage< T >::getWidth(), x, and y.

Here is the call graph for this function:

◆ ReplicateCoordinates()

int SourceXtractor::ReplicateCoordinates ( int  N,
int  v 
)
inline

Definition at line 32 of file PaddedImage.h.

◆ shiftResize()

void SourceXtractor::shiftResize ( const ImageInterfaceTypePtr source,
ImageInterfaceTypePtr window,
double  scale_factor,
double  x_shift,
double  y_shift 
)

Definition at line 211 of file ImageInterfaceTraits.cpp.

References ModelFitting::ImageTraits< ImageInterfaceTypePtr >::at(), std::floor(), getClamped(), ModelFitting::ImageTraits< ImageInterfaceTypePtr >::height(), ModelFitting::ImageTraits< ImageInterfaceTypePtr >::width(), x, and y.

Here is the call graph for this function:

◆ shiftResizeLancszos()

void SourceXtractor::shiftResizeLancszos ( const ImageInterfaceTypePtr source,
ImageInterfaceTypePtr window,
double  scale_factor,
double  x_shift,
double  y_shift 
)

Definition at line 237 of file ImageInterfaceTraits.cpp.

References ModelFitting::ImageTraits< ImageInterfaceTypePtr >::at(), ModelFitting::ImageTraits< ImageInterfaceTypePtr >::height(), INTERP_LANCZOS4, interpolate_pix(), ModelFitting::ImageTraits< ImageInterfaceTypePtr >::width(), x, and y.

Referenced by ModelFitting::ImageTraits< WriteableInterfaceTypePtr >::addImageToImage().

Here is the call graph for this function:

◆ shiftResizeLancszosFast()

void SourceXtractor::shiftResizeLancszosFast ( const ImageInterfaceTypePtr source,
ImageInterfaceTypePtr window,
double  scale_factor,
double  x_shift,
double  y_shift 
)

◆ transform()

std::pair<double, double> SourceXtractor::transform ( int  x,
int  y,
const std::array< double, 4 > &  t 
)
inline

◆ valueAutoCast()

static MetadataEntry::value_t SourceXtractor::valueAutoCast ( const std::string value)
static

Cast a string to a C++ type depending on the format of the content.

  • if only digits are present, it will be casted to int64_t
  • if it matches the regex (one dot and/or exponent present), it will be casted to double
  • if there is one single character, it will be casted to char
  • anything else will be casted to std::string, removing simple quotes if necessary

Definition at line 50 of file FitsFile.cpp.

References std::string::at(), std::string::begin(), std::string::empty(), std::string::end(), std::string::push_back(), std::string::reserve(), std::string::size(), std::stod(), and std::stoll().

Referenced by loadHeadersFromFits(), and SourceXtractor::FitsFile::loadHeadFile().

Here is the call graph for this function:

◆ VariantCast()

template<typename To , typename From >
To SourceXtractor::VariantCast ( const From &  from)

Definition at line 37 of file VariantCast.h.

◆ wcsCheckHeaders()

static void SourceXtractor::wcsCheckHeaders ( const wcsprm *  wcs,
const char *  headers_str,
int  number_of_records 
)
static

Look for some known inconsistencies that wcslib will not report

Definition at line 105 of file WCS.cpp.

References logger, std::strlen(), std::strncmp(), and wcsExtractKeywords().

Referenced by SourceXtractor::WCS::init().

Here is the call graph for this function:

◆ wcsExtractKeywords()

static std::set<std::string> SourceXtractor::wcsExtractKeywords ( const char *  header,
int  number_of_records 
)
static

Extract the keywords from the headers

Definition at line 93 of file WCS.cpp.

References std::set< K >::insert(), and std::strcspn().

Referenced by wcsCheckHeaders().

Here is the call graph for this function:

◆ wcsLogErr()

static void SourceXtractor::wcsLogErr ( wcserr *  err)
static

Definition at line 65 of file WCS.cpp.

References logger.

Referenced by wcsRaiseOnTransformError().

◆ wcsRaiseOnParseError()

static void SourceXtractor::wcsRaiseOnParseError ( int  ret_code)
static

Translate the return code from wcspih to an elements exception

Definition at line 51 of file WCS.cpp.

Referenced by SourceXtractor::WCS::init().

◆ wcsRaiseOnTransformError()

static void SourceXtractor::wcsRaiseOnTransformError ( wcsprm *  wcs,
int  ret_code 
)
static

Translate the return code from wcss2p and wcsp2s to an elements exception

Definition at line 75 of file WCS.cpp.

References wcsLogErr().

Referenced by SourceXtractor::WCS::imageToWorld(), and SourceXtractor::WCS::worldToImage().

Here is the call graph for this function:

◆ wcsReportWarnings()

static void SourceXtractor::wcsReportWarnings ( const char *  err_buffer)
static

Wrap wcslib error report and display them via logger

Definition at line 129 of file WCS.cpp.

References logger, and std::strchr().

Referenced by SourceXtractor::WCS::init().

Here is the call graph for this function:

◆ WrapCoordinates()

int SourceXtractor::WrapCoordinates ( int  N,
int  v 
)
inline

Definition at line 71 of file PaddedImage.h.

◆ wrapped_lincpy()

static int SourceXtractor::wrapped_lincpy ( int  alloc,
const struct linprm *  linsrc,
struct linprm *  lindst 
)
static

wcslib < 5.18 is not fully safe thread, as some functions (like discpy, called by lincpy) rely on global variables for determining the allocation sizes. For those versions, this is called instead, wrapping the call with a mutex.

Definition at line 152 of file WCS.cpp.

References std::lock().

Referenced by SourceXtractor::WCS::init().

Here is the call graph for this function:

Variable Documentation

◆ aperture_photometry_plugin [1/2]

StaticPlugin<AperturePhotometryPlugin> SourceXtractor::aperture_photometry_plugin
static

Definition at line 34 of file AperturePhotometryPlugin.cpp.

◆ aperture_photometry_plugin [2/2]

StaticPlugin<AutoPhotometryPlugin> SourceXtractor::aperture_photometry_plugin
static

Definition at line 34 of file AutoPhotometryPlugin.cpp.

◆ ASSOC_CATALOG

const std::string SourceXtractor::ASSOC_CATALOG { "assoc-catalog" }
static

◆ ASSOC_COLUMNS

const std::string SourceXtractor::ASSOC_COLUMNS { "assoc-columns" }
static

◆ ASSOC_COPY

const std::string SourceXtractor::ASSOC_COPY { "assoc-copy" }
static

◆ ASSOC_FILTER

const std::string SourceXtractor::ASSOC_FILTER { "assoc-filter" }
static

◆ ASSOC_MODE

const std::string SourceXtractor::ASSOC_MODE { "assoc-mode" }
static

◆ assoc_plugin

StaticPlugin<AssocModePlugin> SourceXtractor::assoc_plugin
static

Definition at line 30 of file AssocModePlugin.cpp.

◆ ASSOC_RADIUS

const std::string SourceXtractor::ASSOC_RADIUS { "assoc-radius" }
static

◆ BACKGROUND_VALUE

const std::string SourceXtractor::BACKGROUND_VALUE {"background-value" }
static

◆ BADAREA_THRESHOLD_APER

const SeFloat SourceXtractor::BADAREA_THRESHOLD_APER = 0.1

Definition at line 25 of file Flagging.cpp.

Referenced by computeFlags(), and measureFlux().

◆ bck_model_logger

Elements::Logging SourceXtractor::bck_model_logger = Elements::Logging::getLogger("BackgroundModel")
static

◆ blended_plugin

StaticPlugin<BlendedFlagPlugin> SourceXtractor::blended_plugin
static

Definition at line 29 of file BlendedFlagPlugin.cpp.

◆ boundary_flag

StaticPlugin<BoundaryFlagPlugin> SourceXtractor::boundary_flag
static

◆ CELLSIZE_VALUE

const std::string SourceXtractor::CELLSIZE_VALUE {"background-cell-size" }
static

◆ CHECK_APERTURE

const std::string SourceXtractor::CHECK_APERTURE { "check-image-aperture" }
static

◆ CHECK_AUTO_APERTURE

const std::string SourceXtractor::CHECK_AUTO_APERTURE { "check-image-auto-aperture" }
static

◆ CHECK_FILTERED

const std::string SourceXtractor::CHECK_FILTERED { "check-image-filtered" }
static

◆ CHECK_GROUPING

const std::string SourceXtractor::CHECK_GROUPING { "check-image-grouping" }
static

◆ CHECK_ML_DETECTION

const std::string SourceXtractor::CHECK_ML_DETECTION { "check-image-ml-detection" }
static

◆ CHECK_MODEL_BACKGROUND

const std::string SourceXtractor::CHECK_MODEL_BACKGROUND { "check-image-background" }
static

◆ CHECK_MODEL_FITTING

const std::string SourceXtractor::CHECK_MODEL_FITTING { "check-image-model-fitting" }
static

◆ CHECK_MODEL_VARIANCE

const std::string SourceXtractor::CHECK_MODEL_VARIANCE { "check-image-variance" }
static

◆ CHECK_MOFFAT

const std::string SourceXtractor::CHECK_MOFFAT { "debug-image-moffat" }
static

◆ CHECK_PARTITION

const std::string SourceXtractor::CHECK_PARTITION { "check-image-partition" }
static

◆ CHECK_PSF

const std::string SourceXtractor::CHECK_PSF { "check-image-psf" }
static

◆ CHECK_RESIDUAL

const std::string SourceXtractor::CHECK_RESIDUAL { "check-image-residual" }
static

◆ CHECK_SEGMENTATION

const std::string SourceXtractor::CHECK_SEGMENTATION { "check-image-segmentation" }
static

◆ CHECK_SNR

const std::string SourceXtractor::CHECK_SNR { "check-image-snr" }
static

◆ CHECK_THRESHOLDED

const std::string SourceXtractor::CHECK_THRESHOLDED { "check-image-thresholded" }
static

◆ CLEANING_MINAREA

const std::string SourceXtractor::CLEANING_MINAREA {"cleaning-minimum-area"}
static

◆ CORE_MINAREA

const std::string SourceXtractor::CORE_MINAREA {"core-minimum-area" }
static

◆ CORE_THRESH_USE

const std::string SourceXtractor::CORE_THRESH_USE {"partition-corethreshold" }
static

◆ CORE_THRESHOLD

const std::string SourceXtractor::CORE_THRESHOLD {"core-threshold-value" }
static

◆ CROWD_THRESHOLD_APER

const SeFloat SourceXtractor::CROWD_THRESHOLD_APER = 0.1

Definition at line 24 of file Flagging.cpp.

Referenced by computeFlags().

◆ DETECT_MINAREA

const std::string SourceXtractor::DETECT_MINAREA {"detection-minimum-area"}
static

◆ detection_frame_coordinates_plugin [1/2]

StaticPlugin<DetectionFrameCoordinatesPlugin> SourceXtractor::detection_frame_coordinates_plugin
static

Definition at line 27 of file DetectionFrameCoordinatesPlugin.cpp.

◆ detection_frame_coordinates_plugin [2/2]

StaticPlugin<DetectionFrameImagesPlugin> SourceXtractor::detection_frame_coordinates_plugin
static

Definition at line 27 of file DetectionFrameImagesPlugin.cpp.

◆ detection_frame_group_stamp_plugin

StaticPlugin<DetectionFrameGroupStampPlugin> SourceXtractor::detection_frame_group_stamp_plugin
static

Definition at line 33 of file DetectionFrameGroupStampPlugin.cpp.

◆ detection_frame_info_plugin

StaticPlugin<DetectionFrameInfoPlugin> SourceXtractor::detection_frame_info_plugin
static

Definition at line 27 of file DetectionFrameInfoPlugin.cpp.

◆ detection_frame_pixel_values_plugin

StaticPlugin<DetectionFramePixelValuesPlugin> SourceXtractor::detection_frame_pixel_values_plugin
static

Definition at line 33 of file DetectionFramePixelValuesPlugin.cpp.

◆ detection_frame_source_stamp_plugin

StaticPlugin<DetectionFrameSourceStampPlugin> SourceXtractor::detection_frame_source_stamp_plugin
static

Definition at line 33 of file DetectionFrameSourceStampPlugin.cpp.

◆ DETECTION_IMAGE

const std::string SourceXtractor::DETECTION_IMAGE { "detection-image" }
static

◆ DETECTION_IMAGE_FLUX_SCALE

const std::string SourceXtractor::DETECTION_IMAGE_FLUX_SCALE {"detection-image-flux-scale"}
static

◆ DETECTION_IMAGE_GAIN

const std::string SourceXtractor::DETECTION_IMAGE_GAIN { "detection-image-gain" }
static

◆ DETECTION_IMAGE_INTERPOLATION

const std::string SourceXtractor::DETECTION_IMAGE_INTERPOLATION { "detection-image-interpolation" }
static

◆ DETECTION_IMAGE_INTERPOLATION_GAP

const std::string SourceXtractor::DETECTION_IMAGE_INTERPOLATION_GAP { "detection-image-interpolation-gap" }
static

◆ DETECTION_IMAGE_SATURATION

const std::string SourceXtractor::DETECTION_IMAGE_SATURATION { "detection-image-saturation" }
static

◆ fftw_global_plan_mutex

boost::mutex SourceXtractor::fftw_global_plan_mutex {}

FFTW3 requires a global mutex when creating a plan. Plan executions are, on the other hand, thread safe.

Definition at line 35 of file FFT.cpp.

Referenced by SourceXtractor::FFT< T >::createForwardPlan(), and SourceXtractor::FFT< T >::createInversePlan().

◆ fitsWriterLogger

Elements::Logging SourceXtractor::fitsWriterLogger = Elements::Logging::getLogger("FitsWriter")
static

◆ FlagsStr

const std::map<Flags, std::string> SourceXtractor::FlagsStr
Initial value:
= {
{Flags::NONE, "NONE"},
{Flags::BIASED, "BIASED"},
{Flags::BLENDED, "BLENDED"},
{Flags::BOUNDARY, "BOUNDARY"},
{Flags::NEIGHBORS, "NEIGHBORS"},
{Flags::OUTSIDE, "OUTSIDE"},
{Flags::PARTIAL_FIT, "PARTIAL_FIT"},
{Flags::INSUFFICIENT_DATA, "INSUFFICIENT_DATA"},
{Flags::ERROR, "ERROR"},
{Flags::MEMORY, "MEMORY"},
{Flags::BAD_PROJECTION, "BAD_PROJECTION"},
{Flags::DOWNSAMPLED, "DOWNSAMPLED"}
}

String representation of the flags.

Definition at line 55 of file SourceFlags.h.

Referenced by operator<<().

◆ flexible_modelfitting_plugin

StaticPlugin<FlexibleModelFittingPlugin> SourceXtractor::flexible_modelfitting_plugin
static

Definition at line 35 of file FlexibleModelFittingPlugin.cpp.

◆ FLUX_FRACTION

const std::string SourceXtractor::FLUX_FRACTION {"flux-fraction"}
static

◆ flux_radius_plugin

StaticPlugin<FluxRadiusPlugin> SourceXtractor::flux_radius_plugin
static

Definition at line 27 of file FluxRadiusPlugin.cpp.

◆ format_map

std::map<std::string, OutputConfig::OutputFileFormat> SourceXtractor::format_map
static
Initial value:
{
{"ASCII", OutputConfig::OutputFileFormat::ASCII},
{"FITS", OutputConfig::OutputFileFormat::FITS},
{"FITS_LDAC", OutputConfig::OutputFileFormat::FITS_LDAC}
}

Definition at line 45 of file OutputConfig.cpp.

Referenced by SourceXtractor::OutputConfig::initialize(), and SourceXtractor::OutputConfig::preInitialize().

◆ group_info_plugin

StaticPlugin<GroupInfoPlugin> SourceXtractor::group_info_plugin
static

Definition at line 34 of file GroupInfoPlugin.cpp.

◆ GROUPING_ALGORITHM

const std::string SourceXtractor::GROUPING_ALGORITHM {"grouping-algorithm" }
static

◆ GROUPING_ALGORITHM_MOFFAT

const std::string SourceXtractor::GROUPING_ALGORITHM_MOFFAT {"MOFFAT" }
static

Definition at line 44 of file GroupingConfig.cpp.

Referenced by SourceXtractor::GroupingConfig::initialize().

◆ GROUPING_ALGORITHM_NONE

const std::string SourceXtractor::GROUPING_ALGORITHM_NONE {"NONE" }
static

Definition at line 41 of file GroupingConfig.cpp.

Referenced by SourceXtractor::GroupingConfig::initialize().

◆ GROUPING_ALGORITHM_OVERLAP

const std::string SourceXtractor::GROUPING_ALGORITHM_OVERLAP {"OVERLAP" }
static

Definition at line 42 of file GroupingConfig.cpp.

Referenced by SourceXtractor::GroupingConfig::initialize().

◆ GROUPING_ALGORITHM_SPLIT

const std::string SourceXtractor::GROUPING_ALGORITHM_SPLIT {"SPLIT" }
static

◆ GROUPING_HARD_LIMIT

const std::string SourceXtractor::GROUPING_HARD_LIMIT {"grouping-hard-limit" }
static

◆ GROUPING_MOFFAT_MAX_DISTANCE

const std::string SourceXtractor::GROUPING_MOFFAT_MAX_DISTANCE {"grouping-moffat-max-distance" }
static

◆ GROUPING_MOFFAT_THRESHOLD

const std::string SourceXtractor::GROUPING_MOFFAT_THRESHOLD {"grouping-moffat-threshold" }
static

◆ GROWTH_NSAMPLES [1/2]

const std::string SourceXtractor::GROWTH_NSAMPLES {"flux-growth-samples"}
static

◆ GROWTH_NSAMPLES [2/2]

const size_t SourceXtractor::GROWTH_NSAMPLES = 64
static

Definition at line 35 of file GrowthCurveTask.cpp.

◆ GROWTH_NSIG

const SeFloat SourceXtractor::GROWTH_NSIG = 6.
static

◆ growthcurve_plugin

StaticPlugin<GrowthCurvePlugin> SourceXtractor::growthcurve_plugin
static

Definition at line 30 of file GrowthCurvePlugin.cpp.

◆ isophotal_flux_plugin

StaticPlugin<IsophotalFluxPlugin> SourceXtractor::isophotal_flux_plugin
static

Definition at line 33 of file IsophotalFluxPlugin.cpp.

◆ jacobian_plugin

StaticPlugin<JacobianPlugin> SourceXtractor::jacobian_plugin
static

Definition at line 31 of file JacobianPlugin.cpp.

◆ kron_radius_plugin

StaticPlugin<KronRadiusPlugin> SourceXtractor::kron_radius_plugin
static

Definition at line 32 of file KronRadiusPlugin.cpp.

◆ LEGACY_BACKGROUND

const std::string SourceXtractor::LEGACY_BACKGROUND {"background-legacy"}
static

◆ logger [1/5]

Elements::Logging SourceXtractor::logger = Elements::Logging::getLogger("WCS")
static

Definition at line 44 of file WCS.cpp.

Referenced by BenchConvolution::benchmark(), BenchBackgroundConvolution::benchmark(), SourceXtractor::FlexibleModelFittingTask::computeProperties(), SourceXtractor::FlexibleModelFittingTaskFactory::configure(), SourceXtractor::ProgressReporterFactory::createProgressMediator(), disableBlasMultithreading(), SourceXtractor::FlexibleModelFittingIterativeTask::fitSource(), SourceXtractor::PsfPluginConfig::generateGaussianPsf(), SourceXtractor::PythonInterpreter::getApertureOutputColumns(), SourceXtractor::PythonInterpreter::getApertures(), SourceXtractor::PythonInterpreter::getFrameModelsMap(), SourceXtractor::PythonInterpreter::getMeasurementGroups(), SourceXtractor::PythonInterpreter::getMeasurementImages(), SourceXtractor::PythonInterpreter::getModelFittingOutputColumns(), SourceXtractor::Prefetcher::handleMessage(), SourceXtractor::WCS::init(), SourceXtractor::MeasurementImageConfig::initialize(), SourceXtractor::ModelFittingConfig::initialize(), SourceXtractor::PluginManager::loadPlugins(), main(), BenchBackgroundConvolution::mainMethod(), BenchConvolution::mainMethod(), SEMain::mainMethod(), TestImage::mainMethod(), SourceXtractor::Prefetcher::outputLoop(), SourceXtractor::MultithreadedMeasurement::outputThreadStatic(), SourceXtractor::BackgroundConvolution::processImage(), readImage(), SourceXtractor::PsfPluginConfig::readPsf(), readPsfEx(), readStackedPsf(), SourceXtractor::Prefetcher::requestProperty(), SourceXtractor::PythonInterpreter::runCode(), SourceXtractor::PythonInterpreter::runFile(), BenchBackgroundConvolution::verifyResults(), BenchConvolution::verifyResults(), SourceXtractor::MultithreadedMeasurement::waitForThreads(), wcsCheckHeaders(), wcsLogErr(), wcsReportWarnings(), and SourceXtractor::PythonInterpreter::~PythonInterpreter().

◆ logger [2/5]

Elements::Logging SourceXtractor::logger = Elements::Logging::getLogger("PluginManager")
static

Definition at line 45 of file PluginManager.cpp.

◆ logger [3/5]

auto SourceXtractor::logger = Elements::Logging::getLogger("FlexibleModelFitting")
static

Definition at line 45 of file FlexibleModelFittingIterativeTask.cpp.

◆ logger [4/5]

auto SourceXtractor::logger = Elements::Logging::getLogger("FlexibleModelFitting")
static

Definition at line 65 of file FlexibleModelFittingTask.cpp.

◆ logger [5/5]

auto SourceXtractor::logger = Elements::Logging::getLogger("FlexibleModelFitting")
static

Definition at line 35 of file FlexibleModelFittingTaskFactory.cpp.

◆ MAG_ZEROPOINT

const std::string SourceXtractor::MAG_ZEROPOINT {"magnitude-zero-point"}
static

◆ MAX_QUEUE_SIZE

const std::string SourceXtractor::MAX_QUEUE_SIZE {"thread-max-queue-size"}
static

◆ MAX_TILE_MEMORY

const std::string SourceXtractor::MAX_TILE_MEMORY {"tile-memory-limit"}
static

◆ measurement_frame_coordinates_plugin [1/2]

StaticPlugin<MeasurementFrameCoordinatesPlugin> SourceXtractor::measurement_frame_coordinates_plugin
static

Definition at line 27 of file MeasurementFrameCoordinatesPlugin.cpp.

◆ measurement_frame_coordinates_plugin [2/2]

StaticPlugin<MeasurementFrameImagesPlugin> SourceXtractor::measurement_frame_coordinates_plugin
static

Definition at line 27 of file MeasurementFrameImagesPlugin.cpp.

◆ measurement_frame_group_rectangle_plugin

StaticPlugin<MeasurementFrameGroupRectanglePlugin> SourceXtractor::measurement_frame_group_rectangle_plugin
static

Definition at line 33 of file MeasurementFrameGroupRectanglePlugin.cpp.

◆ measurement_frame_info_plugin

StaticPlugin<MeasurementFrameInfoPlugin> SourceXtractor::measurement_frame_info_plugin
static

Definition at line 27 of file MeasurementFrameInfoPlugin.cpp.

◆ measurement_frame_pixel_centroid_plugin [1/2]

StaticPlugin<MeasurementFramePlugin> SourceXtractor::measurement_frame_pixel_centroid_plugin
static

Definition at line 34 of file MeasurementFramePlugin.cpp.

◆ measurement_frame_pixel_centroid_plugin [2/2]

StaticPlugin<MeasurementFramePixelCentroidPlugin> SourceXtractor::measurement_frame_pixel_centroid_plugin
static

Definition at line 33 of file MeasurementFramePixelCentroidPlugin.cpp.

◆ measurement_frame_rectangle_plugin

StaticPlugin<MeasurementFrameRectanglePlugin> SourceXtractor::measurement_frame_rectangle_plugin
static

Definition at line 33 of file MeasurementFrameRectanglePlugin.cpp.

◆ MFIT_ENGINE

const std::string SourceXtractor::MFIT_ENGINE {"model-fitting-engine"}
static

◆ MFIT_MAX_ITERATIONS

const std::string SourceXtractor::MFIT_MAX_ITERATIONS {"model-fitting-iterations"}
static

◆ ML_MEASUREMENT_MODEL

const std::string SourceXtractor::ML_MEASUREMENT_MODEL {"ml-measurement-model"}
static

◆ model_fitting_logger

Elements::Logging SourceXtractor::model_fitting_logger = Elements::Logging::getLogger("ModelFitting")

Definition at line 33 of file FlexibleModelFittingPlugin.cpp.

◆ MODEL_MIN_SIZE

const double SourceXtractor::MODEL_MIN_SIZE = 4.0
static

◆ MODEL_SIZE_FACTOR

const double SourceXtractor::MODEL_SIZE_FACTOR = 1.2
static

◆ MTHRESH_MIN_AREA

const std::string SourceXtractor::MTHRESH_MIN_AREA {"partition-minimum-area"}
static

◆ MTHRESH_MIN_CONTRAST

const std::string SourceXtractor::MTHRESH_MIN_CONTRAST {"partition-minimum-contrast"}
static

◆ MTHRESH_THRESHOLDS_NB

const std::string SourceXtractor::MTHRESH_THRESHOLDS_NB {"partition-threshold-count"}
static

◆ MTHRESH_USE

const std::string SourceXtractor::MTHRESH_USE {"partition-multithreshold"}
static

◆ n_core_pixels

StaticPlugin<CoreThresholdPartitionPlugin> SourceXtractor::n_core_pixels
static

Definition at line 28 of file CoreThresholdPartitionPlugin.cpp.

◆ n_detected_pixels

StaticPlugin<NDetectedPixelsPlugin> SourceXtractor::n_detected_pixels
static

Definition at line 43 of file NDetectedPixelsPlugin.cpp.

◆ ncurses_done

◆ onnx_logger

Elements::Logging SourceXtractor::onnx_logger = Elements::Logging::getLogger("MLMeasurement")

◆ onnx_plugin

StaticPlugin<OnnxPlugin> SourceXtractor::onnx_plugin
static

Definition at line 25 of file OnnxPlugin.cpp.

◆ ORT_ENV

Ort::Env SourceXtractor::ORT_ENV

Definition at line 25 of file OnnxCommon.cpp.

Referenced by SourceXtractor::OnnxModel::OnnxModel().

◆ OUTPUT_FILE

const std::string SourceXtractor::OUTPUT_FILE {"output-catalog-filename"}
static

◆ OUTPUT_FILE_FORMAT

const std::string SourceXtractor::OUTPUT_FILE_FORMAT {"output-catalog-format"}
static

◆ OUTPUT_FLUSH_SIZE

const std::string SourceXtractor::OUTPUT_FLUSH_SIZE {"output-flush-size"}
static

◆ OUTPUT_PROPERTIES

const std::string SourceXtractor::OUTPUT_PROPERTIES {"output-properties"}
static

◆ OUTPUT_UNSORTED

const std::string SourceXtractor::OUTPUT_UNSORTED {"output-flush-unsorted"}
static

◆ peak_value_plugin

StaticPlugin<PeakValuePlugin> SourceXtractor::peak_value_plugin
static

Definition at line 33 of file PeakValuePlugin.cpp.

◆ PI

constexpr float SourceXtractor::PI = boost::math::constants::pi<float>()
constexpr

◆ pixel_boundaries_plugin [1/2]

StaticPlugin<ExternalFlagPlugin> SourceXtractor::pixel_boundaries_plugin
static

Definition at line 33 of file ExternalFlagPlugin.cpp.

◆ pixel_boundaries_plugin [2/2]

StaticPlugin<PixelBoundariesPlugin> SourceXtractor::pixel_boundaries_plugin
static

Definition at line 34 of file PixelBoundariesPlugin.cpp.

◆ pixel_centroid_plugin [1/2]

StaticPlugin<PixelCentroidPlugin> SourceXtractor::pixel_centroid_plugin
static

Definition at line 33 of file PixelCentroidPlugin.cpp.

◆ pixel_centroid_plugin [2/2]

StaticPlugin<WorldCentroidPlugin> SourceXtractor::pixel_centroid_plugin
static

Definition at line 34 of file WorldCentroidPlugin.cpp.

◆ PLUGIN

const std::string SourceXtractor::PLUGIN { "plugin" }
static

◆ PLUGIN_DIRECTORY

const std::string SourceXtractor::PLUGIN_DIRECTORY { "plugin-directory" }
static

◆ prev_signal

std::map<int, struct sigaction> SourceXtractor::prev_signal
static

◆ PROGRESS_BAR_DISABLED

const std::string SourceXtractor::PROGRESS_BAR_DISABLED {"progress-bar-disable"}
static

◆ PROGRESS_MIN_INTERVAL

const std::string SourceXtractor::PROGRESS_MIN_INTERVAL {"progress-min-interval"}
static

◆ PSF_FILE

const std::string SourceXtractor::PSF_FILE {"psf-filename"}
static

◆ PSF_FWHM

const std::string SourceXtractor::PSF_FWHM {"psf-fwhm" }
static

◆ PSF_PIXEL_SAMPLING

const std::string SourceXtractor::PSF_PIXEL_SAMPLING {"psf-pixel-sampling" }
static

◆ psf_plugin [1/2]

StaticPlugin<PsfPlugin> SourceXtractor::psf_plugin
static

Definition at line 37 of file PsfPlugin.cpp.

◆ psf_plugin [2/2]

StaticPlugin<SourcePsfPlugin> SourceXtractor::psf_plugin
static

Definition at line 31 of file SourcePsfPlugin.cpp.

◆ s_instance

std::shared_ptr<TileManager> SourceXtractor::s_instance
static

Definition at line 28 of file TileManager.cpp.

Referenced by SourceXtractor::TileManager::getInstance().

◆ s_tile_logger

Elements::Logging SourceXtractor::s_tile_logger = Elements::Logging::getLogger("TileManager")
static

◆ safe_lincpy

decltype(&lincpy) SourceXtractor::safe_lincpy = &lincpy

◆ SAMPLING_MAX_FIT_SIZE

const std::string SourceXtractor::SAMPLING_MAX_FIT_SIZE {"sampling-max-fit-size"}
static

◆ SAMPLING_SCALE_FACTOR

const std::string SourceXtractor::SAMPLING_SCALE_FACTOR {"sampling-scale-factor"}
static

◆ saturate_flag

StaticPlugin<SaturateFlagPlugin> SourceXtractor::saturate_flag
static

◆ segConfigLogger

Elements::Logging SourceXtractor::segConfigLogger = Elements::Logging::getLogger("Config")
static

◆ SEGMENTATION_ALGORITHM

const std::string SourceXtractor::SEGMENTATION_ALGORITHM {"segmentation-algorithm" }
static

◆ SEGMENTATION_BFS_MAX_DELTA

const std::string SourceXtractor::SEGMENTATION_BFS_MAX_DELTA {"segmentation-bfs-max-delta" }
static

◆ SEGMENTATION_DISABLE_FILTERING

const std::string SourceXtractor::SEGMENTATION_DISABLE_FILTERING {"segmentation-disable-filtering" }
static

◆ SEGMENTATION_FILTER

const std::string SourceXtractor::SEGMENTATION_FILTER {"segmentation-filter" }
static

◆ SEGMENTATION_LUTZ_WINDOW_SIZE

const std::string SourceXtractor::SEGMENTATION_LUTZ_WINDOW_SIZE {"segmentation-lutz-window-size" }
static

◆ SEGMENTATION_ML_MODEL

const std::string SourceXtractor::SEGMENTATION_ML_MODEL {"segmentation-ml-model" }
static

◆ SEGMENTATION_ML_THRESHOLD

const std::string SourceXtractor::SEGMENTATION_ML_THRESHOLD {"segmentation-ml-threshold" }
static

◆ shape_parameters_plugin

StaticPlugin<ShapeParametersPlugin> SourceXtractor::shape_parameters_plugin
static

Definition at line 33 of file ShapeParametersPlugin.cpp.

◆ signal_fds

int SourceXtractor::signal_fds[2]
static

◆ sigwich_action

struct sigaction sigterm_action sigstop_action sigcont_action SourceXtractor::sigwich_action
static

Definition at line 1 of file ProgressNCurses.cpp.

Referenced by SourceXtractor::Screen::Screen().

◆ simple_modelfitting_plugin

StaticPlugin<MoffatModelFittingPlugin> SourceXtractor::simple_modelfitting_plugin
static

Definition at line 33 of file MoffatModelFittingPlugin.cpp.

◆ SMOOTHINGBOX_VALUE

const std::string SourceXtractor::SMOOTHINGBOX_VALUE {"smoothing-box-size" }
static

◆ snrratio

StaticPlugin<SNRRatioPlugin> SourceXtractor::snrratio
static

Definition at line 29 of file SNRRatioPlugin.cpp.

◆ source_flags

StaticPlugin<SourceFlagsPlugin> SourceXtractor::source_flags
static

◆ source_IDs_plugin

StaticPlugin<SourceIDsPlugin> SourceXtractor::source_IDs_plugin
static

Definition at line 46 of file SourceIDsPlugin.cpp.

◆ SUPERSAMPLE_NB

const int SourceXtractor::SUPERSAMPLE_NB = 10

Definition at line 29 of file CircularAperture.cpp.

Referenced by SourceXtractor::CircularAperture::getArea().

◆ THREADS_NB

const std::string SourceXtractor::THREADS_NB {"thread-count"}
static

◆ THRESHOLD_VALUE

const std::string SourceXtractor::THRESHOLD_VALUE {"detection-threshold" }
static

◆ TILE_SIZE

const std::string SourceXtractor::TILE_SIZE {"tile-size"}
static

◆ USE_ATTRACTORS_PARTITION

const std::string SourceXtractor::USE_ATTRACTORS_PARTITION {"use-attractors-partition"}
static

◆ USE_CLEANING

const std::string SourceXtractor::USE_CLEANING {"use-cleaning"}
static

◆ vignet

StaticPlugin<VignetPlugin> SourceXtractor::vignet
static

Definition at line 29 of file VignetPlugin.cpp.

◆ VIGNET_DEFAULT_PIXVAL

const std::string SourceXtractor::VIGNET_DEFAULT_PIXVAL {"vignet-default-pixval" }
static

◆ VIGNET_SIZE

const std::string SourceXtractor::VIGNET_SIZE {"vignet-size" }
static

◆ WEIGHT_ABSOLUTE

const std::string SourceXtractor::WEIGHT_ABSOLUTE {"weight-absolute" }
static

◆ WEIGHT_IMAGE

const std::string SourceXtractor::WEIGHT_IMAGE {"weight-image" }
static

◆ WEIGHT_SCALING

const std::string SourceXtractor::WEIGHT_SCALING {"weight-scaling" }
static

◆ WEIGHT_SYMMETRYUSAGE

const std::string SourceXtractor::WEIGHT_SYMMETRYUSAGE {"weight-use-symmetry" }
static

◆ WEIGHT_THRESHOLD

const std::string SourceXtractor::WEIGHT_THRESHOLD {"weight-threshold" }
static

◆ WEIGHT_TYPE

const std::string SourceXtractor::WEIGHT_TYPE {"weight-type" }
static