Package ai.djl.modality.cv.output
Class CategoryMask.SegmentationSerializer
java.lang.Object
ai.djl.modality.cv.output.CategoryMask.SegmentationSerializer
- All Implemented Interfaces:
com.google.gson.JsonSerializer<CategoryMask>
- Enclosing class:
- CategoryMask
public static final class CategoryMask.SegmentationSerializer
extends Object
implements com.google.gson.JsonSerializer<CategoryMask>
A customized Gson serializer to serialize the
Segmentation object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElementserialize(CategoryMask src, Type type, com.google.gson.JsonSerializationContext ctx)
-
Constructor Details
-
SegmentationSerializer
public SegmentationSerializer()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(CategoryMask src, Type type, com.google.gson.JsonSerializationContext ctx) - Specified by:
serializein interfacecom.google.gson.JsonSerializer<CategoryMask>
-