![]() |
CARTA Backend
The backend component of CARTA
|
Namespaces | |
namespace | FileInfo |
namespace | logger |
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< Column > | ColumnFromFitsType (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 const std::function<void(double, double, const std::vector<float>&, const std::vector<int32_t>&)> carta::ContourCallback |
using carta::HistogramBounds = typedef Bounds<double> |
typedef std::vector<int64_t> carta::IndexList |
typedef uWS::HttpRequest carta::Req |
typedef uWS::HttpResponse<false> carta::Res |
typedef std::function<bool(int&, uint32_t&, std::string&, std::string&, std::string&, bool&, std::string&, ScriptingResponseCallback, ScriptingSessionClosedCallback)> carta::ScriptingRequestHandler |
typedef std::function<void(const bool&, const std::string&, const std::string&)> carta::ScriptingResponseCallback |
typedef std::function<void()> carta::ScriptingSessionClosedCallback |
typedef std::shared_ptr< std::vector< float > > carta::TilePtr |
enum carta::Edge |
void carta::applyOptionalArgument | ( | T & | val, |
const string & | argument_name, | ||
const cxxopts::ParseResult & | results | ||
) |
|
static |
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 | ||
) |
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 | ||
) |
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 | ||
) |
void carta::CalcBasicStats | ( | BasicStats< float > & | stats, |
const float * | data, | ||
const size_t | data_size | ||
) |
Histogram carta::CalcHistogram | ( | int | num_bins, |
const HistogramBounds & | bounds, | ||
const float * | data, | ||
const size_t | data_size | ||
) |
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 | ||
) |
std::unique_ptr< Column > carta::ColumnFromFitsType | ( | int | type, |
const string & | col_name | ||
) |
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 | ||
) |
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 | ||
) |
int carta::Decompress | ( | std::vector< float > & | array, |
std::vector< char > & | compression_buffer, | ||
int | nx, | ||
int | ny, | ||
int | precision | ||
) |
void carta::EncodeIntegers | ( | std::vector< int32_t > & | array, |
bool | strided | ||
) |
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 | ||
) |
CARTA::ImageBounds carta::GetImageBounds | ( | const Tile & | tile, |
int | image_width, | ||
int | image_height, | ||
int | mip | ||
) |
std::vector< int32_t > carta::GetNanEncodingsBlock | ( | std::vector< float > & | array, |
int | offset, | ||
int | w, | ||
int | h | ||
) |
std::vector< int32_t > carta::GetNanEncodingsSimple | ( | std::vector< float > & | array, |
int | offset, | ||
int | length | ||
) |
void carta::GetTiles | ( | int | image_width, |
int | image_height, | ||
int | mip, | ||
std::vector< Tile > & | tiles | ||
) |
|
inlinestatic |
void carta::MakeKernel | ( | std::vector< float > & | kernel, |
double | sigma | ||
) |
void carta::MakeKernel | ( | vector< float > & | kernel, |
double | sigma | ||
) |
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 | ||
) |
double carta::NormPdf | ( | double | x, |
double | sigma | ||
) |
void carta::RoundAndEncodeVertices | ( | const std::vector< float > & | array, |
std::vector< int32_t > & | dest, | ||
float | rounding_factor | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
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 | ||
) |
void carta::TrimSpaces | ( | string & | str | ) |
|
static |
const uint16_t carta::ICD_VERSION = 30 |
const std::string carta::LAYOUT = "layout" |
|
static |
const std::unordered_map<std::string, std::string> carta::SCHEMA_URLS |
const std::string carta::SNIPPET = "snippet" |
const std::string carta::SUCCESS_STRING = json({{"success", true}}).dump() |
const std::string carta::WORKSPACE = "workspace" |