Add image extraction functionality with background removal
- Implemented ExtractImageRegion operator for extracting image regions using box or lasso selection. - Added RemoveImageRegionBackground job for background removal from selected image regions. - Created utility functions for polygon bounds, selection canvas creation, and applying selection masks. - Integrated image processing using PIL and numpy for efficient pixel manipulation. - Enhanced user experience with modal drawing and status updates during extraction.
This commit is contained in:
@@ -5,11 +5,7 @@ from .balloon import (
|
||||
AnalyzeBalloon,
|
||||
)
|
||||
from .debug import DebugBen2, DebugDa3, DebugMoge2
|
||||
from .image_lasso import (
|
||||
ActivateImageLassoTool,
|
||||
AnalyzeImageLasso,
|
||||
ExtractImageLasso,
|
||||
)
|
||||
from .image_extract import CLASSES as IMAGE_EXTRACT_CLASSES
|
||||
from .depth_plane import (
|
||||
ConvertToDepthPlane,
|
||||
ExtractOriginalFrames,
|
||||
@@ -44,9 +40,7 @@ CLASSES = (
|
||||
GenerateOriginalBackground,
|
||||
ExtractOriginalFrames,
|
||||
ClearModels,
|
||||
ExtractImageLasso,
|
||||
AnalyzeImageLasso,
|
||||
ActivateImageLassoTool,
|
||||
*IMAGE_EXTRACT_CLASSES,
|
||||
ExtractBalloon,
|
||||
AnalyzeBalloon,
|
||||
ActivateBalloonTool,
|
||||
|
||||
Reference in New Issue
Block a user