MagicEraserOptions
MagicEraserOptions
Combined magic eraser options for use by ImageProcessing functions. More…
#include <ProcessingOptions.hpp>
Public Functions
| Name | |
|---|---|
| MagicEraserOptions | fromParamsAndState(MagicEraserParams const & params, MagicEraserState const & state) Construct from separate params and state. |
Public Attributes
| Name | |
|---|---|
| int | brush_size Size of the eraser brush (1-100 pixels). |
| int | median_filter_size Size of the median filter kernel (3-101, must be odd). |
| bool | drawing_mode Whether currently in drawing mode. |
| std::vector< uint8_t > | mask Mask of pixels to be replaced (empty = no replacement). |
| ImageSize | image_size Size of the image the mask corresponds to. |
Detailed Description
struct MagicEraserOptions;Combined magic eraser options for use by ImageProcessing functions.
This struct combines MagicEraserParams and MagicEraserState for backward compatibility with existing ImageProcessing functions that accept a single options struct.
Public Functions Documentation
function fromParamsAndState
static inline MagicEraserOptions fromParamsAndState(
MagicEraserParams const & params,
MagicEraserState const & state
)Construct from separate params and state.
Public Attributes Documentation
variable brush_size
int brush_size {10};Size of the eraser brush (1-100 pixels).
variable median_filter_size
int median_filter_size {25};Size of the median filter kernel (3-101, must be odd).
variable drawing_mode
bool drawing_mode {false};Whether currently in drawing mode.
variable mask
std::vector< uint8_t > mask;Mask of pixels to be replaced (empty = no replacement).
variable image_size
ImageSize image_size;Size of the image the mask corresponds to.
Updated on 2026-11-13 at 20:25:39 +0000