HALCON Reference Manual 10.0.2
Name
slide_imageslide_imageslide_imageSlideImageSlideImage — Interactive output from two window buffers.
slide_imageslide_imageslide_imageSlideImageSlideImage divides the window horizontal in two logical
areas dependent of the mouse position. The content of the first indicated
window is copied in the upper area, the content of the second window is copied
in the lower area. If you press the left mouse button you may scroll the
delimitation between the two areas (you may move the mouse outside the
window, too. In doing so the position of the mouse relative to the
window determines the borderline).
Pressing the right mouse button in the window terminates the operator
slide_imageslide_imageslide_imageSlideImageSlideImage.
A useful application of the operator slide_imageslide_imageslide_imageSlideImageSlideImage might be the
visualisation of the effect of a filtering operation for an image.
The output is directed to the current set window (WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle).
The three windows must have the same size and have to reside on the
same computer.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: local (may only be called from the same thread in which the window, model, or tool instance was created).
- Processed without parallelization.
Logical window number of the “upper window”.
Logical window number of the “lower window”.
read_image(Image,'fabrik')
sobel_amp(Image,Amp,'sum_abs',3)
open_window(0,0,-1,-1,'root','buffer','',Buffer1)
disp_image(Amp,Buffer1)
sobel_dir(Image,Amp,Dir,'sum_abs',3)
open_window(0,0,-1,-1,'root','buffer','',Buffer2)
disp_image(Dir,Bufer2)
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
slide_image(Buffer1,Buffer2,WindowHandle)
read_image(&Image,"fabrik") ;
sobel_amp(Image,&Amp,"sum_abs",3) ;
open_window(0,0,-1,-1,"root","buffer","",&Buffer1) ;
disp_image(Amp,Buffer1) ;
sobel_dir(Image,&Amp,&Dir,"sum_abs",3) ;
open_window(0,0,-1,-1,"root","buffer","",&Buffer2) ;
disp_image(Dir,Buffer2) ;
open_window(0,0,-1,-1,"root","visible","",&WindowHandle) ;
slide_image(Buffer1,Buffer2,WindowHandle) ;
read_image(Image,'fabrik')
sobel_amp(Image,Amp,'sum_abs',3)
open_window(0,0,-1,-1,'root','buffer','',Buffer1)
disp_image(Amp,Buffer1)
sobel_dir(Image,Amp,Dir,'sum_abs',3)
open_window(0,0,-1,-1,'root','buffer','',Buffer2)
disp_image(Dir,Bufer2)
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
slide_image(Buffer1,Buffer2,WindowHandle)
read_image(Image,'fabrik')
sobel_amp(Image,Amp,'sum_abs',3)
open_window(0,0,-1,-1,'root','buffer','',Buffer1)
disp_image(Amp,Buffer1)
sobel_dir(Image,Amp,Dir,'sum_abs',3)
open_window(0,0,-1,-1,'root','buffer','',Buffer2)
disp_image(Dir,Bufer2)
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
slide_image(Buffer1,Buffer2,WindowHandle)
read_image(Image,'fabrik')
sobel_amp(Image,Amp,'sum_abs',3)
open_window(0,0,-1,-1,'root','buffer','',Buffer1)
disp_image(Amp,Buffer1)
sobel_dir(Image,Amp,Dir,'sum_abs',3)
open_window(0,0,-1,-1,'root','buffer','',Buffer2)
disp_image(Dir,Bufer2)
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
slide_image(Buffer1,Buffer2,WindowHandle)
If the both windows exist and one of these windows is valid
slide_imageslide_imageslide_imageSlideImageSlideImage returns 2 (H_MSG_TRUE).
If necessary an exception is raised.
open_windowopen_windowopen_windowOpenWindowOpenWindow,
open_textwindowopen_textwindowopen_textwindowOpenTextwindowOpenTextwindow
copy_rectanglecopy_rectanglecopy_rectangleCopyRectangleCopyRectangle,
get_mpositionget_mpositionget_mpositionGetMpositionGetMposition
open_windowopen_windowopen_windowOpenWindowOpenWindow,
open_textwindowopen_textwindowopen_textwindowOpenTextwindowOpenTextwindow,
move_rectanglemove_rectanglemove_rectangleMoveRectangleMoveRectangle
Foundation
| HALCON Reference Manual 10.0.2 |
Copyright © 1996-2011 MVTec Software GmbH |