Class ScribbleImage
An image mask representing a brush scribble.
public record ScribbleImage : IEquatable<ScribbleImage>
- Inheritance
-
ScribbleImage
- Implements
- Inherited Members
Properties
Image
The brush scribble to guide segmentation. Valid for the interactive mode.
[JsonPropertyName("image")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Image? Image { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a ScribbleImage object.
public static ScribbleImage? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- ScribbleImage
The deserialized ScribbleImage object, or null if deserialization fails.