the protection of the KING region in the image control.

I use the return on investment on an image rectangle.

As you well know, the KING can move or change the size by clicking and moving the mouse.

But when the user clicks a position outside the KING, the current KING will reset and disappeared from the image control.

Is there an idea on how to get information about the event or property to protect the KING?

(Region KING detects the manipulation of the mouse event).

I just wanted to keep, move or translate the present KING with the handling of the mouse.

My application must have an entry a consistent ROI in real time.

labmaster.

I just put extra code to check if the current KING is valid or not to cash the size of the table of the global rectangle.

Invalid KING means no size of table or the same position of x 1 and x 2 (for y, the same thing.) of the rectangle.

I know this isn't a perfect way to keep the KING, but it is OK for me virtually.

labmaster

Tags: NI Software

Similar Questions

  • How could I possibly remove the default image in the image control?

    I use the image control and a bit of code to create a zoom on a picture effect. Everything works fine however I get a picture of labview when the Vi is loaded for the first time. I'm trying to get a blank area instead cause it looks like not really tidy!

    I have attached a picture and my code.

    Thanks for your help

    The image is configured to be the default value of "Photo". In other words: you must get rid of the default value. You can do this either by:

    (a) 'Image' of delete and recreate. Disadvantage: You have to re-create all the nodes property associated with this control.

    (b) load an image empty and select "data operations > use current default value.

    hope this helps,

    Norbert

  • mouse to zoom to the image control

    Hi all

    LabVIEW 2013 32-bit SP1

    Vision 2013 SP1 32 bit Wizard

    I read a bunch of images from a CameraLink camera and store it in a binary file.

    I then reset at the beginning of the file and read them.

    I have a loop that receives images one at a time and allows the user to select a specific image.

    I have an event loop in the while loop, to capture user events.

    I do a few filters, edge detection, overlays, etc.  (I don't think it's important to question, just to be thorough)

    Each image is displayed in a control from IMAQ Image.

    In case of a loop, I check for "mouse down" on the Image, and then I enter the coordinates where the user clicked.

    That works well.

    However, for this control when the user moves the mouse over the image, the mouse pointer changes under the microscope.

    When the user clicks on the image, I get the coordinates of the click, but the image is also "zoomed".

    I have initially display the image in the format 'fit to screen', and which seems to work very well.

    I would like to cut ownership of 'zoom on mouse click', but I can't find that in the list of properties.

    Any help will be appreciated.

    Thank you
    Jeff

    As soon as you create an indicator image tool KING before Panel Magnifier tool is selected.
    -You can make the current KING tool to the selection tool by creating the current "Tool KING" property node indicator image.

  • DisplayImageFile() does not change the dimensions of the image control

    Hello

    I put in an image with DisplayImageFile() control image + assigning to the attribute of control ATTR_FIT_MODE = VAL_SIZE_TO_IMAGE. The image size is larger, then the size of the control and I want the control to resize to the size of the image.

    It works fine except when I ask the dimensions of the control with GetCtrlAttribute (panel, control, ATTR_HEIGHT, & height), I get the original size (before calling DisplayImageFile())...

    It seems I missed something basic...

    Environment: LAB Windows CVI 2012, Windows 7

    Thanks in advance

    Ramy

    I don't know if you still experience this problem or not, but I came across this discussion now and wanted to point out that this could happen if your picture controls if it is covered by another control or is it hidden altogether (and there might be other similar situations that I can't think of right now).

    When this happens, the CVI runtime can pull the image directly on the image. Instead, he plans an asynchronous action that will redraw this section of the Panel from the back to the front (if it's just overlapped, not hidden). It is only in the later action that the image is applied to the control, and it is only then that the control is resized to fit the image. This may seem immediate to the casual observer, but, because it is asynchronous, you can't try to get new size immediately after calling DisplayImageFile, because the image is not yet in control at that moment.

    Ironically, this occurs only if the control has already been set to the image size at the time you call DisplayImageFile. If this isn't the case, then the new size is applied when you later change the mode made programmatically. Whereas if the adjustment mode has been already updated the image size, trying to programmatically set the same value of the image size has no effect and nothing happens then.

    If this is what is happening, one way around this would be to call ProcessDrawEvents or ProcessSystemEvents immediately after the call to DisplayImageFile. Unless the control or Panel has been hidden way explicit, which will require the drawing action will take place at this time, and you should then be able to get the new size of control at any time after that.

    Luis

  • Save picture in the image control

    Hello world

    The labview picture control has a context menu that includes the option so save the image. I found that it works very well in the development environment. If I click on it, a dialog box opens that allows me to choose where to save the image. However, once an exe file is built, the option will still be there but clicking on it seems to do nothing. Is this a known bug, or would it be a problem with my installation?

    I'm under Labview 2012 SP1.

    Thanks for the help,

    -Gary

    Hi Gary!

    I can confirm your observations. It's the behavior of my app, im using LabvIEW2013.

    Best regards

    Dan

  • property of the mouse to the image control

    In LV 8.5 I noticed that if you reset your image to the default control (using the menu drop-down), the position property of the mouse no longer works, it will always return 0.0 no matter where the mouse is in control.  You must destroy and recreate your image control to fix right here.

    Perhaps this problem has been fixed in later versions of LV but I didn't know any documentation of the present.

    Good afternoon Garvacious,.

    When you say that the pop-up menu, I guess you want to tell the menu that is displayed if you right-click on the control.

    I just tried this in LabVIEW 8.6.1.  My position of mouse cursor reads 0.0 when the mouse is over the control and -1, -1 when the mouse is not over the control.  It is a bug.  I have filed the appropriate internal documentation (Corrective Action Request #167102), while R & D is aware of the issue.

    Thanks for letting us know about this behavior.  I'm sorry for any inconveniencce this bug you has done.

  • Image not displayed does not correctly in the image control to the small zoom level

    I display a picture in an image control with a zoom factor of ~0.015 and it is displayed as shown in the picture 1.jpg.  When I Zoom in a little bit more to ~0.016 the image is displayed correctly, as shown in the picture-2.jpg.  The two images are attached.

    Why the image is displayed as a "gray band" in the first picture?  What should I do to have the picture displayed correctly at any zoom factor?  I use LV 2011 with the module for development of vision associated with Windows 7.

    Thank you

    Jonathan-LV


  • Resize the Bitmap image in the image control in flex3

    I'm loading an image in the image at the start control. Then I am a color transformation applying to this image and want to load this bitmap in flex3. That works, but automatic resizing does not work then. If I load another image, then AutoSize works well. Image control does not support resizing of the same bitmap object image?.

    Here is the part of the code:
    < mx:Image source = "{imgpath}" id = creationComplete = "imageCompleted ('MyImage'); "x ="20"y ="30"width ="365"height ="440"maintainAspectRatio = 'true '.
    / >
    private void applyColor(event:Event):void {}

    myBitmapDataObject = new BitmapData (myImage.height, true, myImage.width, 0x00CCCCCC);

    myBitmapDataObject.draw (myImage.content);
    myBitImage = new Bitmap (myBitmapDataObject);

    myBitmapDataObject.colorTransform (myBitmapDataObject.rect, new ColorTransform (1, 1, 1, 1, 39, 76, 135, 100));
    myImage.removeChildAt (0)
    myImage.load (myBitImage);


    }

    Any help is appreciated.

    You must create the BitmapData as the size of the original loaded image, not mx:Image height and width. Simply convert you / copy only a portion of the original size that matches the size of the Image. That is to say. whether you have a picture of 400 x 400 and your Image is 100 x 100. Your BitmapData is created at 100 x 100, NOT 400 x 400, you need to do. Everything simply because you resize the Image, does not mean that the underlying BitmapData is also resized.

    Also, in general, addChild would serve after removeChild, never used charge myself. Not sure if this is important.

  • Beginning of the image control

    I'm learning the LV for the following steps.

    -Zoom in/out images

    -Animate (rotate, zoom in and out, move) pictures, etc.

    May I know where should I run, any good sample, thank you.

    I suggest you take a look at the examples (help > find examples... ) and image search.

    I think that the example of 'RobotArm.vi' is nice and "SolarSystem" and "Robot".

    Hope this helps

  • In the image control, how can I draw a small picture with a specific offset within a larger image?

    I could use the opposite of 'Get Image Subset.vi', as a 'Set Image Subset.vi'.

    The function of "draw flattened Pixmap" would work if it would let me define the position of the target instead of the position of the source.

    You can use "draw no flattened Pixmap.vi. Here is an example:

  • How to index multi-ROIs in the images?

    Dear everyone:

    I'd love to the multi-ROIs in the image of the index in order to extract the information inside each KING exactly. Can someone tell me how to do this?

    Thank you very much

    Each of the Kings will be displayed in the coverage area to a single KING read as a property of the image control node.  They are listed in the order they are created.

    There is a function of Vision that transforms this KING several unique contour in an array of single-edge Kings (Vision and Motion > commercial Vision > region of interest > IMAQ disassociate ROIs.vi)

  • Node property/reference for the image and 'Create VI' inconsistent control?

    Hello

    I encountered this problem several times already and although I have worked around him, so far, I would really like to understand what is it:

    If I have an image display control on the Panel before (IMAQ Vision, not the image control type) and drag a property node or a reference to it on the block diagram, it seems impossible to create a Subvi diagram if the selected objects are equipped with a knot of property image or an image reference. Select 'Create Subvi' won't do anything, don period. No warning, no beep system, no nothing.

    A related issue is that if I have a view control reference on the diagram and try to create a control from it (for example to use as a control on one dimension of connector VI entry), same thing, "Create control" will not do anything.

    Why is this?

    Thanks for your comments.

    X.

    Xavier,

    This was reported to R & D (35835) for further investigations. A possible workaround is to make the Subvi LabVIEW 7.1 and open it in the new version of LabVIEW.

  • marquee selection in the drawing image control

    I would like a vi that draw a marquee selection with the mouse in a control program image.

    This works so far if the user begins to drag inside the image control. The code is actually robust against

    start the image and entering again. Unfortunately this isn't the case if someone starts to slip outside

    peak control. then drags succeeding is arrested after the mouse moving a few pixels (about 1 to 10) and the

    rect selection gets fixed.

    No idea what could be wrong with the vi? Thank you!

    Your problem is with the fact that you have a structure of the event inside the other. This is generally a no-no and should be mentioned in the help (there is a warnings section).

    Specifically, the structure is part to begin to get events when the VI goes into run mode. This means that from then on, the internal structure will start enqueueing mouse all events on the image, so that when you start outside and go inside, structure remembers this event, but won't have to deal with until he actually runs. When she is not running (because there was a supported external mouse event), it will load the mouse previous event immediately.

    The basic solution is to use a unique event structure. You can use a cluster and a registry change to keep state data and don't forget what state you're in, if you need a timeout, etc., so that you know how to respond to each event.

  • How can I determine the position of the mouse in a 2D image control

    I have an app where I would like the user to be able to interact with objects in a 2D image control with the mouse.  To do this, I need to translate between the screen coordinates, which are transmitted with the events of mouse and in the control of 2D image.

    The problem that I am running is that I can't find a way to determine the screen coordinates of the top left corner of the drawing/client of the 2D image control area.  I tried to use the 'Position' of the image control property, but this results in a mismatch because of the difference between the upper-left corner of the image control (including the label, etc.) and the upper left corner of the drawing area.  See attached VI.

    Does anyone know how to get the coordinate of the screen from the corner of the drawing of the control of the photo area?

    Mark Moss

    I tend to use the mouse in the image control property to get the position.  Deals with things like the passage of origin for you.

  • Is it possible to pick up random points in the specific region of the image?

    Hello

    I do image analysis. I came across a problem. I want to take a random 8-bit image point, that I'm processing. But I have more than a single constraint: the point must be in a particular region in the image. Is there any diagram can be used?

    Any advice is welcome. Thanks heaps.

    (for example in the attached picture, is it possible to select the points randomly in the black area? Because, I mean, you take more 1000 points at random in the image, I need all of them are in black areas.)

    Jian

    A simple way is just to generate random points and check if they are in your particular region.  Something like this:

Maybe you are looking for

  • "My screen" application on Windows 2008

    He does ' t work. Is this normal for this application?

  • Hang watch over satellite A110-233 PASB2E

    HelloIf anyone has any suggestions on how to help with this, I would be very grateful. Sleep never worked on this laptop. He's going through the motions and then crashes at the idle screen preparedness. From this point, I have to restart by pressing

  • c/programfiles pcfixspeed/unins000.msg is missing

    I got pcfixspeed on my computer and when I try to uninstall it I get the message message c/program files pcfixspeed/unins000.msg is missing please fix the problem or get a new copy of the program. What should I do? I don't want this program on my com

  • Need help with Picture It!

    I use Microsoft Picture It! Photo Premium 9 (V9.0.607.0) on XP and when I try to save my collage project .png I get a message that I can't save it. Can someone help me, please? It is a collage of about 40 images that I cut of photos using Picture It!

  • BlackBerry Smartphones Bricked torch - update OS interruptus.

    While I was upgrading my OS today via my computer, the backup/wipe had just finished (I think) and Windows Update then decides to try to be useful and try to restart my machine. I said no, but it seems that the harm had been done. Desktop Manager gav