rlmesh::adapters::Image
Class in rlmesh.hpp.
struct ImageFields
- role
std::string role{} - height
std::optional<uint32_t> height{} - width
std::optional<uint32_t> width{} - layout
ImageLayout layout = ImageLayout::Hwc - channels
std::optional<uint32_t> channels{} - dtype
Tolerant<DType> dtype = DType::Uint8 - normalize
std::variant<bool, std::pair<double, double>> normalize = false - lead_dims
uint32_t lead_dims = 0 - upside_down
bool upside_down = false - resample
Tolerant<Resample> resample = Resample::Bilinear - allow_upscale
bool allow_upscale = false - fit
OptionalList<Tolerant<FitMode>> fit{} - optional
bool optional = false - fill
std::optional<uint8_t> fill{} - stack
uint32_t stack = 1 - crop
std::optional<double> crop{} - crop_area
std::optional<double> crop_area{} - crop_mode
Tolerant<CropMode> crop_mode = CropMode::Zoom - jpeg_quality
std::optional<uint8_t> jpeg_quality{} - channel_order
Tolerant<ChannelOrder> channel_order = ChannelOrder::Rgb - render
std::optional<std::pair<uint32_t, uint32_t>> render{} - offsets
OptionalList<int32_t> offsets{} - stack_pad
StackPad stack_pad = StackPad::First - part
std::optional<std::string> part{}
Static methods
Methods
role
field[source]std::string role{}height
field[source]std::optional<uint32_t> height{}width
field[source]std::optional<uint32_t> width{}layout
field[source]ImageLayout layout = ImageLayout::Hwcchannels
field[source]std::optional<uint32_t> channels{}dtype
field[source]Tolerant<DType> dtype = DType::Uint8normalize
field[source]std::variant<bool, std::pair<double, double>> normalize = falselead_dims
field[source]uint32_t lead_dims = 0upside_down
field[source]bool upside_down = falseresample
field[source]Tolerant<Resample> resample = Resample::Bilinearallow_upscale
field[source]bool allow_upscale = falsefit
field[source]OptionalList<Tolerant<FitMode>> fit{}optional
field[source]bool optional = falsefill
field[source]std::optional<uint8_t> fill{}stack
field[source]uint32_t stack = 1crop
field[source]std::optional<double> crop{}crop_area
field[source]std::optional<double> crop_area{}crop_mode
field[source]Tolerant<CropMode> crop_mode = CropMode::Zoomjpeg_quality
field[source]std::optional<uint8_t> jpeg_quality{}channel_order
field[source]Tolerant<ChannelOrder> channel_order = ChannelOrder::Rgbrender
field[source]std::optional<std::pair<uint32_t, uint32_t>> render{}offsets
field[source]OptionalList<int32_t> offsets{}stack_pad
field[source]StackPad stack_pad = StackPad::Firstpart
field[source]std::optional<std::string> part{}from_raw
static method[source]static Image from_raw(const RLMeshImage& c)raw
method[source]RLMeshImage raw(detail_adapter::Arena& a) constwith_size
method[source]Image with_size(uint32_t size) constwith_stride
method[source]Image with_stride(uint32_t stride) const