3#include "blace_index.h"
4#include "computation_graph/public_base_op.h"
5#include "computation_graph/raw_memory_fetcher.h"
8#ifdef BLACE_AI_OPENCV_INTERFACE
9#include <opencv2/core/mat.hpp>
13#include "library_defines.h"
15typedef std::vector<int64_t> SizesVec;
20#ifdef BLACE_AI_OPENCV_INTERFACE
24class EXPORT_OR_IMPORT FromCVMatOp :
public BaseOp {
31 FromCVMatOp(cv::Mat cv_mat);
37class EXPORT_OR_IMPORT FromImageFileOp :
public BaseOp {
44 FromImageFileOp(std::string path);
163 InferenceOp(std::vector<char> model_bytes, std::vector<OpP> inputs,
165 std::string payload_folder);
351class EXPORT_OR_IMPORT
ZerosOp :
public BaseOp {
380class EXPORT_OR_IMPORT
OnesOp :
public BaseOp {
413 IndexPutOp(blace::ops::OpP input, ml_core::BlaceIndexVec indices,
414 blace::ops::OpP val);
423 IndexPutOp(blace::ops::OpP input, ml_core::BlaceIndexVec indices,
double val);
432 IndexPutOp(blace::ops::OpP input, ml_core::BlaceIndexVec indices,
float val);
441 IndexPutOp(blace::ops::OpP input, ml_core::BlaceIndexVec indices,
int val);
447class EXPORT_OR_IMPORT
NoneOp :
public BaseOp {
476class EXPORT_OR_IMPORT
IndexOp :
public BaseOp {
485 IndexOp(blace::ops::OpP input, ml_core::BlaceIndexVec indices,
486 std::optional<ml_core::ColorFormatEnum> color_format = std::nullopt);
507 int g,
int b,
int thickness);
Definition public_ops.h:493
DrawRectangles(blace::ops::OpP img, blace::ops::OpP bounding_boxes, int r, int g, int b, int thickness)
Definition public_ops.h:124
Definition public_ops.h:137
Definition public_ops.h:111
FromIntListOp(std::vector< int64_t > val)
Definition public_ops.h:98
Definition public_ops.h:306
FromRawMemoryFetcherOp(std::shared_ptr< blace::RawMemoryFetcher > mem_fetcher, ml_core::DeviceEnum device)
Definition public_ops.h:290
FromRawMemoryOp(std::shared_ptr< blace::RawMemoryObject > mem_object)
Definition public_ops.h:85
FromTextOp(std::string text)
Definition public_ops.h:476
IndexOp(blace::ops::OpP input, ml_core::BlaceIndexVec indices, std::optional< ml_core::ColorFormatEnum > color_format=std::nullopt)
Definition public_ops.h:402
IndexPutOp(blace::ops::OpP input, ml_core::BlaceIndexVec indices, int val)
IndexPutOp(blace::ops::OpP input, ml_core::BlaceIndexVec indices, double val)
IndexPutOp(blace::ops::OpP input, ml_core::BlaceIndexVec indices, float val)
IndexPutOp(blace::ops::OpP input, ml_core::BlaceIndexVec indices, blace::ops::OpP val)
Definition public_ops.h:150
InferenceOp(std::vector< char > model_bytes, std::vector< OpP > inputs, ml_core::InferenceArgsCollection inference_args, int return_index, std::string payload_folder)
InferenceOp(InferenceOp const &e)
Definition public_ops.h:52
Interpolate2DOp(OpP node, int height, int width, ml_core::Interpolation interpolation, bool align_corners, bool antialias)
Definition public_ops.h:181
MapToRangeOp(OpP input, ml_core::ValueRangeEnum range)
Definition public_ops.h:447
Definition public_ops.h:72
NormalizeImagenetOp(OpP input)
Definition public_ops.h:197
NormalizeToZeroOneOP(NormalizeToZeroOneOP const &e)
NormalizeToZeroOneOP(OpP input)
NormalizeToZeroOneOP(OpP input, OpP min_in, OpP max_in, double min_out, double max_out)
NormalizeToZeroOneOP(OpP input, double min_in, double max_in, OpP min_out, OpP max_out)
NormalizeToZeroOneOP(OpP input, double min_in, double max_in, double min_out, double max_out)
NormalizeToZeroOneOP(OpP input, double min, double max)
Definition public_ops.h:380
OnesOp(std::vector< int64_t > sizes, ml_core::OrderEnum order, ml_core::DeviceEnum device, ml_core::DataTypeEnum data_type, ml_core::ColorFormatEnum color_format)
Definition public_ops.h:324
PrepareForHostCopyOP(OpP input, ml_core::DataTypeEnum data_type, ml_core::ColorFormatEnum color_format, ml_core::OrderEnum tensor_order, ml_core::ValueRangeEnum value_range, ml_core::DeviceEnum device)
Definition public_ops.h:460
SaveImageOp(blace::ops::OpP input, std::string filename)
Definition public_ops.h:263
ToColorOp(OpP input, ml_core::ColorFormatEnum color_format, ml_core::LAB_NORMS lab_norms)
ToColorOp(OpP input, ml_core::ColorFormatEnum color_format)
Definition public_ops.h:351
ZerosOp(ZerosOp const &e)
ZerosOp(std::vector< int64_t > sizes, ml_core::OrderEnum order, ml_core::DeviceEnum device, ml_core::DataTypeEnum data_type, ml_core::ColorFormatEnum color_format)
Contains implementation for a class used to I/O custom memory.
Basic types of the blace.ai library.
DataTypeEnum
Definition types.h:59
Interpolation
Definition types.h:160
OrderEnum
Definition types.h:74
ColorFormatEnum
Definition types.h:103
DeviceEnum
Definition types.h:41
ValueRangeEnum
Definition types.h:46