CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta Namespace Reference

Namespaces

namespace  FileInfo
 
namespace  logger
 

Classes

class  AnimationObject
 
class  AnimationTask
 
struct  BasicStats
 
class  BasicStatsCalculator
 
struct  BeamInfo
 
struct  BeamTableInfo
 
struct  Bounds
 
struct  CacheId
 
struct  CacheIdHash
 
class  CartaFitsImage
 
class  CartaHdf5Image
 
class  CartaLogSink
 
class  CartaMiriadImage
 
class  CasaLoader
 
class  ChannelMapSettings
 
class  Column
 
class  CompListLoader
 
class  CompressedFits
 
class  ConcatLoader
 
class  concurrent_queue
 
struct  ConfigId
 
struct  ConfigIdHash
 
struct  ContourSettings
 
class  CrtfImportExport
 
class  CursorSettings
 
class  DataColumn
 
class  Ds9ImportExport
 
struct  EventHeader
 
class  ExprLoader
 
class  FileExtInfoLoader
 
class  FileInfoLoader
 
class  FileListHandler
 
class  FileLoader
 
struct  FitData
 Data structure for storing fitting-related data. More...
 
class  FitsHduList
 
class  FitsLoader
 
struct  FitStatus
 Data structure for storing status of the fitting result. More...
 
class  Frame
 
struct  GeneratedImage
 
class  Hdf5Attributes
 
class  Hdf5Loader
 
class  Histogram
 
struct  HistogramCache
 
struct  HistogramConfig
 
class  HttpServer
 
class  Image2DConvolver
 
class  ImageFitter
 A class for fitting multiple Gaussian components to an image and generating model and residual images. More...
 
class  ImageMoments
 
class  ImagePtrLoader
 
class  LineBoxRegions
 
class  ListProgressReporter
 
class  LoaderCache
 
class  MiriadLoader
 
class  MomentGenerator
 
class  OnMessageTask
 
struct  PerSocketData
 
class  PolarizationCalculator
 
struct  PreviewCubeParameters
 
struct  PreviewCutParameters
 
struct  ProgramSettings
 
class  PvGenerator
 
class  PvPreviewCube
 
class  PvPreviewCut
 
class  PvPreviewUpdateTask
 
class  queuing_rw_mutex
 
class  queuing_rw_mutex_scoped
 
class  Region
 
class  RegionConverter
 
class  RegionDataStreamsTask
 
class  RegionHandler
 
struct  RegionHistogramConfig
 
class  RegionImportExport
 
struct  RegionProperties
 
struct  RegionSpectralConfig
 
struct  RegionState
 
struct  RegionStatsConfig
 
struct  RequiredTiles
 
class  Session
 
class  SessionContext
 
class  SessionManager
 
class  SetCursorTask
 
class  SetImageChannelsTask
 
struct  SpectralCache
 
struct  SpectralConfig
 
class  SpectralProfileTask
 
class  StartAnimationTask
 
struct  StatsCache
 
class  Stokes
 
class  StokesFilesConnector
 
struct  StokesRegion
 
struct  StokesSlicer
 
struct  StokesSource
 
class  Table
 
class  TableController
 
struct  TableParam
 
class  TableView
 
struct  TableViewCache
 
class  ThreadManager
 
struct  Tile
 
class  TileCache
 A cache for full-resolution image tiles. More...
 
struct  TileCacheKey
 Key for tiles used in TileCache. More...
 
struct  TilePool
 This struct stores the memory allocated for cached tile data. More...
 
struct  TimeDelta
 
class  Timer
 
class  VectorField
 
class  WebBrowser
 

Typedefs

using TilePtr = std::shared_ptr< std::vector< float > >
 
typedef const std::function< void(double, double, const std::vector< float > &, const std::vector< int32_t > &)> ContourCallback
 
typedef uWS::HttpRequest Req
 
typedef uWS::HttpResponse< false > Res
 
typedef std::function< bool(int &, uint32_t &, std::string &, std::string &, std::string &, bool &, std::string &, ScriptingResponseCallback, ScriptingSessionClosedCallback)> ScriptingRequestHandler
 
using HistogramBounds = Bounds< double >
 
typedef std::function< void(const bool &, const std::string &, const std::string &)> ScriptingResponseCallback
 
typedef std::function< void()> ScriptingSessionClosedCallback
 
typedef std::vector< int64_t > IndexList
 

Enumerations

enum  Edge {
  TopEdge , RightEdge , BottomEdge , LeftEdge ,
  None
}
 

Functions

int Compress (std::vector< float > &array, size_t offset, std::vector< char > &compression_buffer, size_t &compressed_size, uint32_t nx, uint32_t ny, uint32_t precision)
 
int Decompress (std::vector< float > &array, std::vector< char > &compression_buffer, int nx, int ny, int precision)
 
std::vector< int32_t > GetNanEncodingsSimple (std::vector< float > &array, int offset, int length)
 
std::vector< int32_t > GetNanEncodingsBlock (std::vector< float > &array, int offset, int w, int h)
 
void RoundAndEncodeVertices (const std::vector< float > &array, std::vector< int32_t > &dest, float rounding_factor)
 
void EncodeIntegers (std::vector< int32_t > &array, bool strided)
 
int Compress (std::vector< float > &array, size_t offset, std::vector< char > &compression_buffer, std::size_t &compressed_size, uint32_t nx, uint32_t ny, uint32_t precision)
 
void TraceSegment (const float *image, std::vector< bool > &visited, int64_t width, int64_t height, double scale, double offset, double level, int x_cell, int y_cell, int side, vector< float > &vertices)
 
void TraceLevel (const float *image, int64_t width, int64_t height, double scale, double offset, double level, vector< float > &vertices, vector< int32_t > &indices, int chunk_size, ContourCallback &partial_callback)
 
void TraceContours (float *image, int64_t width, int64_t height, double scale, double offset, const std::vector< double > &levels, std::vector< std::vector< float > > &vertex_data, std::vector< std::vector< int32_t > > &index_data, int chunk_size, ContourCallback &partial_callback)
 
void TraceContourLevel (float *image, int64_t width, int64_t height, double scale, double offset, double level, std::vector< double > &vertex_data, std::vector< int32_t > &indices)
 
double NormPdf (double x, double sigma)
 
void MakeKernel (vector< float > &kernel, double sigma)
 
bool RunKernel (const vector< float > &kernel, const float *src_data, float *dest_data, const int64_t src_width, const int64_t src_height, const int64_t dest_width, const int64_t dest_height, const bool vertical)
 
bool GaussianSmooth (const float *src_data, float *dest_data, int64_t src_width, int64_t src_height, int64_t dest_width, int64_t dest_height, int smoothing_factor)
 
bool BlockSmooth (const float *src_data, float *dest_data, int64_t src_width, int64_t src_height, int64_t dest_width, int64_t dest_height, int64_t x_offset, int64_t y_offset, int smoothing_factor)
 
bool BlockSmoothSSE (const float *src_data, float *dest_data, int64_t src_width, int64_t src_height, int64_t dest_width, int64_t dest_height, int64_t x_offset, int64_t y_offset, int smoothing_factor)
 
bool BlockSmoothScalar (const float *src_data, float *dest_data, int64_t src_width, int64_t src_height, int64_t dest_width, int64_t dest_height, int64_t x_offset, int64_t y_offset, int smoothing_factor)
 
void NearestNeighbor (const float *src_data, float *dest_data, int64_t src_width, int64_t dest_width, int64_t dest_height, int64_t x_offset, int64_t y_offset, int smoothing_factor)
 
static __m128 IsInfinity (__m128 x)
 
void MakeKernel (std::vector< float > &kernel, double sigma)
 
bool RunKernel (const std::vector< float > &kernel, const float *src_data, float *dest_data, int64_t src_width, int64_t src_height, int64_t dest_width, int64_t dest_height, bool vertical)
 
void GetTiles (int image_width, int image_height, int mip, std::vector< Tile > &tiles)
 
CARTA::ImageBounds GetImageBounds (const Tile &tile, int image_width, int image_height, int mip)
 
static std::unordered_map< int, casacore::DataType > bitpix_types ({{8, casacore::DataType::TpChar}, {16, casacore::DataType::TpShort}, {32, casacore::DataType::TpInt}, {64, casacore::DataType::TpInt64}, {-32, casacore::DataType::TpFloat}, {-64, casacore::DataType::TpDouble}})
 
void CalcBasicStats (BasicStats< float > &stats, const float *data, const size_t data_size)
 
Histogram CalcHistogram (int num_bins, const HistogramBounds &bounds, const float *data, const size_t data_size)
 
bool CalcStatsValues (std::map< CARTA::StatsType, std::vector< double > > &stats_values, const std::vector< CARTA::StatsType > &requested_stats, const casacore::ImageInterface< float > &image, bool per_channel)
 
template<class T >
void applyOptionalArgument (T &val, const string &argument_name, const cxxopts::ParseResult &results)
 
void TrimSpaces (string &str)
 
std::unique_ptr< ColumnColumnFromFitsType (int type, const string &col_name)
 

Variables

static std::unordered_map< CARTA::FileType, string > FileTypeString
 
const std::string SUCCESS_STRING = json({{"success", true}}).dump()
 
const std::string LAYOUT = "layout"
 
const std::string SNIPPET = "snippet"
 
const std::string WORKSPACE = "workspace"
 
const std::unordered_map< std::string, std::string > SCHEMA_URLS
 
static const std::unordered_map< std::string, std::string > MimeTypes
 
const uint16_t ICD_VERSION = 30
 

Typedef Documentation

◆ ContourCallback

typedef const std::function<void(double, double, const std::vector<float>&, const std::vector<int32_t>&)> carta::ContourCallback

◆ HistogramBounds

using carta::HistogramBounds = typedef Bounds<double>

◆ IndexList

typedef std::vector<int64_t> carta::IndexList

◆ Req

typedef uWS::HttpRequest carta::Req

◆ Res

typedef uWS::HttpResponse<false> carta::Res

◆ ScriptingRequestHandler

typedef std::function<bool(int&, uint32_t&, std::string&, std::string&, std::string&, bool&, std::string&, ScriptingResponseCallback, ScriptingSessionClosedCallback)> carta::ScriptingRequestHandler

◆ ScriptingResponseCallback

typedef std::function<void(const bool&, const std::string&, const std::string&)> carta::ScriptingResponseCallback

◆ ScriptingSessionClosedCallback

typedef std::function<void()> carta::ScriptingSessionClosedCallback

◆ TilePtr

typedef std::shared_ptr< std::vector< float > > carta::TilePtr

Enumeration Type Documentation

◆ Edge

Enumerator
TopEdge 
RightEdge 
BottomEdge 
LeftEdge 
None 

Function Documentation

◆ applyOptionalArgument()

template<class T >
void carta::applyOptionalArgument ( T &  val,
const string &  argument_name,
const cxxopts::ParseResult &  results 
)
Here is the caller graph for this function:

◆ bitpix_types()

static std::unordered_map< int, casacore::DataType > carta::bitpix_types ( {{8, casacore::DataType::TpChar}, {16, casacore::DataType::TpShort}, {32, casacore::DataType::TpInt}, {64, casacore::DataType::TpInt64}, {-32, casacore::DataType::TpFloat}, {-64, casacore::DataType::TpDouble}}  )
static
Here is the caller graph for this function:

◆ BlockSmooth()

bool carta::BlockSmooth ( const float *  src_data,
float *  dest_data,
int64_t  src_width,
int64_t  src_height,
int64_t  dest_width,
int64_t  dest_height,
int64_t  x_offset,
int64_t  y_offset,
int  smoothing_factor 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BlockSmoothScalar()

bool carta::BlockSmoothScalar ( const float *  src_data,
float *  dest_data,
int64_t  src_width,
int64_t  src_height,
int64_t  dest_width,
int64_t  dest_height,
int64_t  x_offset,
int64_t  y_offset,
int  smoothing_factor 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ BlockSmoothSSE()

bool carta::BlockSmoothSSE ( const float *  src_data,
float *  dest_data,
int64_t  src_width,
int64_t  src_height,
int64_t  dest_width,
int64_t  dest_height,
int64_t  x_offset,
int64_t  y_offset,
int  smoothing_factor 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalcBasicStats()

void carta::CalcBasicStats ( BasicStats< float > &  stats,
const float *  data,
const size_t  data_size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalcHistogram()

Histogram carta::CalcHistogram ( int  num_bins,
const HistogramBounds bounds,
const float *  data,
const size_t  data_size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalcStatsValues()

bool carta::CalcStatsValues ( std::map< CARTA::StatsType, std::vector< double > > &  stats_values,
const std::vector< CARTA::StatsType > &  requested_stats,
const casacore::ImageInterface< float > &  image,
bool  per_channel 
)
Here is the caller graph for this function:

◆ ColumnFromFitsType()

std::unique_ptr< Column > carta::ColumnFromFitsType ( int  type,
const string &  col_name 
)
Here is the caller graph for this function:

◆ Compress() [1/2]

int carta::Compress ( std::vector< float > &  array,
size_t  offset,
std::vector< char > &  compression_buffer,
size_t &  compressed_size,
uint32_t  nx,
uint32_t  ny,
uint32_t  precision 
)
Here is the caller graph for this function:

◆ Compress() [2/2]

int carta::Compress ( std::vector< float > &  array,
size_t  offset,
std::vector< char > &  compression_buffer,
std::size_t &  compressed_size,
uint32_t  nx,
uint32_t  ny,
uint32_t  precision 
)

◆ Decompress()

int carta::Decompress ( std::vector< float > &  array,
std::vector< char > &  compression_buffer,
int  nx,
int  ny,
int  precision 
)

◆ EncodeIntegers()

void carta::EncodeIntegers ( std::vector< int32_t > &  array,
bool  strided 
)
Here is the caller graph for this function:

◆ GaussianSmooth()

bool carta::GaussianSmooth ( const float *  src_data,
float *  dest_data,
int64_t  src_width,
int64_t  src_height,
int64_t  dest_width,
int64_t  dest_height,
int  smoothing_factor 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetImageBounds()

CARTA::ImageBounds carta::GetImageBounds ( const Tile tile,
int  image_width,
int  image_height,
int  mip 
)
Here is the caller graph for this function:

◆ GetNanEncodingsBlock()

std::vector< int32_t > carta::GetNanEncodingsBlock ( std::vector< float > &  array,
int  offset,
int  w,
int  h 
)
Here is the caller graph for this function:

◆ GetNanEncodingsSimple()

std::vector< int32_t > carta::GetNanEncodingsSimple ( std::vector< float > &  array,
int  offset,
int  length 
)

◆ GetTiles()

void carta::GetTiles ( int  image_width,
int  image_height,
int  mip,
std::vector< Tile > &  tiles 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsInfinity()

static __m128 carta::IsInfinity ( __m128  x)
inlinestatic
Here is the caller graph for this function:

◆ MakeKernel() [1/2]

void carta::MakeKernel ( std::vector< float > &  kernel,
double  sigma 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MakeKernel() [2/2]

void carta::MakeKernel ( vector< float > &  kernel,
double  sigma 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NearestNeighbor()

void carta::NearestNeighbor ( const float *  src_data,
float *  dest_data,
int64_t  src_width,
int64_t  dest_width,
int64_t  dest_height,
int64_t  x_offset,
int64_t  y_offset,
int  smoothing_factor 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NormPdf()

double carta::NormPdf ( double  x,
double  sigma 
)
Here is the caller graph for this function:

◆ RoundAndEncodeVertices()

void carta::RoundAndEncodeVertices ( const std::vector< float > &  array,
std::vector< int32_t > &  dest,
float  rounding_factor 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RunKernel() [1/2]

bool carta::RunKernel ( const std::vector< float > &  kernel,
const float *  src_data,
float *  dest_data,
int64_t  src_width,
int64_t  src_height,
int64_t  dest_width,
int64_t  dest_height,
bool  vertical 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ RunKernel() [2/2]

bool carta::RunKernel ( const vector< float > &  kernel,
const float *  src_data,
float *  dest_data,
const int64_t  src_width,
const int64_t  src_height,
const int64_t  dest_width,
const int64_t  dest_height,
const bool  vertical 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TraceContourLevel()

void carta::TraceContourLevel ( float *  image,
int64_t  width,
int64_t  height,
double  scale,
double  offset,
double  level,
std::vector< double > &  vertex_data,
std::vector< int32_t > &  indices 
)

◆ TraceContours()

void carta::TraceContours ( float *  image,
int64_t  width,
int64_t  height,
double  scale,
double  offset,
const std::vector< double > &  levels,
std::vector< std::vector< float > > &  vertex_data,
std::vector< std::vector< int32_t > > &  index_data,
int  chunk_size,
ContourCallback partial_callback 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TraceLevel()

void carta::TraceLevel ( const float *  image,
int64_t  width,
int64_t  height,
double  scale,
double  offset,
double  level,
vector< float > &  vertices,
vector< int32_t > &  indices,
int  chunk_size,
ContourCallback partial_callback 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TraceSegment()

void carta::TraceSegment ( const float *  image,
std::vector< bool > &  visited,
int64_t  width,
int64_t  height,
double  scale,
double  offset,
double  level,
int  x_cell,
int  y_cell,
int  side,
vector< float > &  vertices 
)
Here is the caller graph for this function:

◆ TrimSpaces()

void carta::TrimSpaces ( string &  str)
Here is the caller graph for this function:

Variable Documentation

◆ FileTypeString

std::unordered_map<CARTA::FileType, string> carta::FileTypeString
static
Initial value:
{{CARTA::FileType::CASA, "CASA"}, {CARTA::FileType::CRTF, "CRTF"},
{CARTA::FileType::DS9_REG, "DS9"}, {CARTA::FileType::FITS, "FITS"}, {CARTA::FileType::HDF5, "HDF5"},
{CARTA::FileType::MIRIAD, "MIRIAD"}, {CARTA::FileType::UNKNOWN, "Unknown"}}

◆ ICD_VERSION

const uint16_t carta::ICD_VERSION = 30

◆ LAYOUT

const std::string carta::LAYOUT = "layout"

◆ MimeTypes

const std::unordered_map<std::string, std::string> carta::MimeTypes
static
Initial value:
= {{".css", "text/css"}, {".htm", "text/html"}, {".html", "text/html"},
{".jpg", "image/jpeg"}, {".jpeg", "image/jpeg"}, {".js", "text/javascript"}, {".json", "application/json"}, {".png", "image/png"},
{".svg", "image/svg+xml"}, {".woff", "font/woff"}, {".woff2", "font/woff2"}, {".wasm", "application/wasm"}}

◆ SCHEMA_URLS

const std::unordered_map<std::string, std::string> carta::SCHEMA_URLS
Initial value:
= {
#define CARTA_SNIPPET_SCHEMA_URL
Definition HttpServer.h:30
#define CARTA_WORKSPACE_SCHEMA_URL
Definition HttpServer.h:31
#define CARTA_LAYOUT_SCHEMA_URL
Definition HttpServer.h:29
const std::string LAYOUT
Definition HttpServer.cc:28
const std::string SNIPPET
Definition HttpServer.cc:29

◆ SNIPPET

const std::string carta::SNIPPET = "snippet"

◆ SUCCESS_STRING

const std::string carta::SUCCESS_STRING = json({{"success", true}}).dump()

◆ WORKSPACE

const std::string carta::WORKSPACE = "workspace"