poIImagePlane GetEdgeColor
Gets the color of the edges when the post-processing Edge detection filter is active on an image plane.
Syntax
Imageplane_handle GetEdgeColor
Application
HyperView Tcl Query
Description
The image plane offers several image post-processing filters that can be applied on the image or video. One of them is an edge detection filter, where detected edges in the image are rendered with a specified color. This command returns the RGB values for the color of the rendered edges.
Returns the RGB edge color, as three values between 0 and 255.
Inputs
Context
Example
hwi OpenStack
if {[catch {
::post::GetPostHandle client_handle
hwi GetSessionHandle session_handle
client_handle GetImagePlaneCtrlHandle ipc_handle
set ipid1 [ipc_handle AddImagePlane Logo1]
ipc_handle GetImagePlaneHandle imageplane_handle $ipid1
imageplane_handle SetFileName g:/samples2/VideoOverlay/Altair_logo.jpg
imageplane_handle SetMode background
imageplane_handle SetCrop 0 0 0.9995 0.995
imageplane_handle SetFilterType Edge;
imageplane_handle SetFilterMode Sobel;
imageplane_handle SetEdgeColor "0 0 0";
imageplane_handle SetMipMapMode Linear1
puts " Filter Type: [imageplane_handle GetFilterType]";
puts " Filter Mode: [imageplane_handle GetFilterMode]";
puts " Edge Color: [imageplane_handle GetEdgeColor]";
puts " MipMap Mode: [imageplane_handle GetMipMapMode]";
client_handle Draw
} result]} {
global errorInfo;
puts stderr $result;
puts "[session_handle GetError]";
puts stderr "*** Tcl TRACE ***";
puts stderr $errorInfo;
} else {
puts "No errors.";
puts "Warnings: ";
puts " [session_handle GetError]";
}
hwi CloseStack
Errors
Returns HW_InvalidHandle if the image plane handle is invalid.