Skip to content

Commit

Permalink
feat: add grow shrink to growcut tools and box prompt to sam model (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi authored Dec 9, 2024
1 parent f2c65f1 commit c46ab42
Show file tree
Hide file tree
Showing 49 changed files with 2,668 additions and 974 deletions.
19 changes: 16 additions & 3 deletions common/reviews/api/ai.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ export class ONNXSegmentationController {
promptAnnotationTypes: any;
models: any;
modelName: any;
previewToolType: string;
islandFillOptions: any;
});
// (undocumented)
acceptPreview(element: any): void;
// (undocumented)
protected annotationModifiedListener: (_event?: any) => void;
// (undocumented)
protected annotationsNeedUpdating: boolean;
// (undocumented)
static BoxPrompt: string;
// (undocumented)
protected boxRadius: number;
// (undocumented)
cacheImageEncodings(current?: any, offset?: number, length?: number): any;
Expand Down Expand Up @@ -96,6 +100,11 @@ export class ONNXSegmentationController {
// (undocumented)
protected isGpuInUse: boolean;
// (undocumented)
protected islandFillOptions: {
maxInternalRemove: number;
fillInternalEdge: boolean;
};
// (undocumented)
protected load(): Promise<void>;
// (undocumented)
loadModels(models: any, imageSession?: any): Promise<void>;
Expand Down Expand Up @@ -149,19 +158,23 @@ export class ONNXSegmentationController {
// (undocumented)
modelWidth: number;
// (undocumented)
protected previewToolType: string;
protected pCutoff: number;
// (undocumented)
protected promptAnnotationTypes: string[];
// (undocumented)
rejectPreview(element: any): void;
// (undocumented)
restoreImageEncoding(session: any, imageId: any): Promise<any>;
// (undocumented)
protected runDecode(): Promise<void>;
// (undocumented)
setPCutoff(cutoff: number): void;
// (undocumented)
protected sharedImageEncoding: any;
// (undocumented)
storeImageEncoding(session: any, imageId: any, data: any): Promise<void>;
// (undocumented)
protected tool: any;
tool: any;
// (undocumented)
tryLoad(options?: {
resetImage: boolean;
Expand Down
Loading

0 comments on commit c46ab42

Please sign in to comment.