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.

Tags: NI Hardware

Similar Questions

  • 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

  • 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

  • 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


  • 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

  • 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

  • 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.

  • the unstable image cropping slider control, jumps to the zoom of the image and lifestyle culture

    A problem that started right after a touch of support linked to the difficulties of the subscription and then LR thinking that another LR catalog has been opened.  The chassis of the crop cursor control is unstable.  When you attempt to drag a corner, culture window disappears and the cursor is create a zoom effect.  Hold down the mouse button causes the zoom to get in and out. Makes it absolutely impossible to culture. Zoom in and zoom control of the window in the X Y library function is affected in the same way. I used LR since LR3 and have 20 + K images in my catalogs, so I don't know how features should work. I use Windows 8.1 and since a year or two. The problem seems to get worse day by day. My last support contact picked up my screen and installed updates LR that I had stayed away from because things worked OK. I am now running 2015.3 Release, Camera Raw 9.3.  To deal almost exclusively with Nikon NEF files, even though I was converting them to DNG format until the last support suggested things would go faster (better?) if I stayed just in the NAVE.  Any suggestion would be appreciated. I'm not terribly computer warned, so changes to the system as back to an earlier version are not easy for me.  Tom

    Tom,

    It sounds like your mouse is dying. Try another and see if that fixes the problem.

    HAL

  • How is it when I Zoom in pages now, it is not a zoom of the images too?

    I use Firefox for Mac desktop 38.0.5. I am running OSX Yosemite.
    Then I Zoom pages this does not zoom images. He is used to.
    Sometimes, it's the main reason I'm zoom... to see a captcha, or images as on tumblr or a news page.

    Please help and return this feature!
    Thank you, Tom.

    You can find this setting in the view menu:

    • View > Zoom > [] 'Zoom text only '.

    See also:

  • My mouse cursor disappears behind the image, I work with!

    While I was working on an image in Photoshop, my mouse cursor disappeared. No line of sight (I already tried to turn the caps lock). He had just disappeared. I was moving my mouse and it appears each time I chose a new tool or when I work with layers or when I use something in the drop-down menu, the mouse is there when I did open in Photoshop - just at the moment where I have the program open - but whenever I start to work on an image or a blank canvas disappears that's going under canvas (I found that I can still draw and erase on the canvas, I can just say where because the cursor has gone). It's frustrating because I use Photoshop to create my digital work and my drawing pad is small, so I need to know where my cursor to shoot accurately.

    (I use Photoshop CS6 and I use it on HP EliteBook with Windows 8)

    Things I did to solve the problem so far: I downloaded the current update of Adobe, I tried to adjust my settings to properties on my computer, I tried to adjust my cursor settings in my preferences, I tried to reset my presets - thinking I might have Miss clicked on a key combination to achieve - I also tried closing and go into Photoshop, even turned off my computer , let rest and then back on. But my mouse cursor continues to disappear under the canvas.

    I intend uninstalling and then reinstalling my software Photoshop - I hope it works. Otherwise, if it is not, someone knows how to fix this?

    Post edited by: Nelson Keely

    Okay, so I figured this out how to solve this problem, a few days after the publication of my question. If you have the Nezumi Pro plugin for your Photoshop there is an option in settings of Nezumi to hide your cursor which can be easily activated by Miss simply by clicking F6. Once I understood this and changed my cursor back to normal settings, my mouse reappeared.

  • 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:

  • Zoom on the image Bitmap field

    Good morning to all"

    I want to zoom in on BitmapField. Is it possible to BB?

    TNX your tips.

    What do you mean by 'zoom in '?  If you want to enlarge a bitmap image, you can use EncodedImage.scaleImage32 (as long as you are able to get your image as an EncodedImage data).  Here's an example of utility code I had to scale an image based on its width or height.  Using this as a basis, it should be simple enough to adapt it to your specific needs.  If not, let me know; I have a lot of image processing code.

     public static EncodedImage scaleImageToWidth(EncodedImage encoded, int newWidth) {
            return scaleToFactor(encoded, encoded.getWidth(), newWidth);
        }
    
        public static EncodedImage scaleImageToHeight(EncodedImage encoded, int newHeight) {
            return scaleToFactor(encoded, encoded.getHeight(), newHeight);
        }
    
        public static EncodedImage scaleToFactor(EncodedImage encoded, int curSize, int newSize) {
            int numerator = Fixed32.toFP(curSize);
            int denominator = Fixed32.toFP(newSize);
            int scale = Fixed32.div(numerator, denominator);
    
            return encoded.scaleImage32(scale, scale);
        }
    
  • animate CC animation jerky with the zoom of the image?

    Does anyone else know this? whenever I have a png or jpeg and I animate it to zoom out, it looks slick animated CC, but once published, it is very rough in all browsers I test it in. how to fix this?

    If it's canvas, try to simplify the acceleration you have. Just do a regular ease, not a custom.

Maybe you are looking for