Open Image and SuperImpose a Control on Top of a section in Image

This is a loaded question, because, I cant seem to find a single VI
that opens and displays a jpg, bmp, etc!
But assuming, I find a toolbox or create my own that will open/display
an image, lets say an picture of a car's
dash panel.. could I place a gauge/dial meter ON TOP of the place in
the image where the real gauge exists??
If it can be done in Labview, how difficult would it be for a
beginner??

Easy!
Display your background image and then place gauges on to of it. You can make the background of the gauge transparent.
(If this is a real gauge on the image, just photoedit the needle out of the background image and then hide even the scale of the LabVIEW gauge, showing only the needle.)
Here's a quick draft:
Message Edited by altenbach on 06-27-2007 12:52 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
GaugeOverImage.png ‏90 KB

Similar Messages

  • Most of the time, when I hit a link, it opens but tabs with ads or pages that I didn't ask for are opening also and they come up on top. I have to dump them t

    Most of the time, when I hit a link, it opens but tabs with ads or pages that I didn't ask for are opening also and they come up on top. I have to dump them to get to the link I originally hit. How can I stop this from happening? It's so irritating and they take a while to come up before I can close them. Note: I use Firefox for Mac OS

    You can stop that behavior by changing two settings within the browser. Go to Tools -> Options and click on the CONTENT button. Make sure that "Block pop-up windows" is checked. Then click on the ADVANCED button on the far right and add a check to "Warn me when websites try to redirect or reload".
    That should stop most of them. If not all, then you could install AdBlock Plus add-on, since most of the redirects are ad generated. (Tools -> Add-ons -> Get Add-ons)

  • I keep losing entire catalogs. I put in 30,000 images and cannot get to them. Put in 3,000 images and get error message "LR encountered error when reading its previous cash and needs to quit. LR will fix this problem the next time it loads.' I  have loade

    I keep losing entire catalogs. I put in 30,000 images and cannot get to them. Put in 3,000 images and get error message "Light room encountered error when reading its previous cash and needs to quit. light room will fix this problem the next time it loads.'
    I  have loaded light room several times and even exited computer for 8 hours. Still get error message

    A search of this forum shows lots of threads where this issue of "error reading cache" is solved

  • I have an iPad2. Trying to use the cams connection kit. When I plug in the connector and turn the camera on my iPad opens photos and shows cams at the top but no photos show up??? Help

    When the camera connector is plugged in and I turn on the camera the iPad opens photos and camera shows up but no photos come through.  Help????

    Try switching from Picture Transfer Protocol (PTP) [Some cameras may refer to PTP as Pictbridge or PTP/Pictbridge.] to Mass Storage Device Mode or vise versa on the camera.
    Or use the camera's SD card.
     Cheers, Tom

  • How do I take an object from an image and save it so I can use it in other images?

    I am trying to figure out how to take an object from an image and save it so I can re-use it again in other pictures?  I know how to use the magic wand to select the object and place it in a blank image.... but I do not know how to re size the selected object or keep it for later use.  Basically I would like to use the object the same way that I use the graphics ... so I guess I am wondering if there is a way that I can make my own graphics... I have Elements Photoshop 13.  Thanks for any help/advice....  Jerrie

    Hi Jerrie,
    You can re-size using Transformation tool. Ctrl + T will give you a box to re-size the image or object.
    You can save these object as PNG file with Transparent layer. You can use these objects later in another projects.
    Regards,
    Sandeep

  • Is it possible to open, move and hide the Controls Palette programati​caly?

    I'm currently creating a tools to create and edit VI. And I would like to bring the tool palette programaticaly.
    regards,
    Nitrof

    Nitrof,
    The attached example program uses ActiveX to access the menus in LabVIEW and execute the menu selection based on keys sent to the program. Because this example program uses ActiveX it is only applicable on Windows Operating Systems. To access a menu in LabVIEW this program uses the SendKeys function and an ActiveX container with property nodes to execute the shortcut commands for menus programmatically.
    The Show Tools Palette menu item has "P" key associated with it ("P" is the underlined letter in the name). So, to open the tools palette programmatically, you would specify "SendKeys %wp" in the keys string in the attached VI.
    The Show Controls Palette item has no keys associated by default, so you would have to edit the run-time menu to assign
    this item a key. Use the Set Menu Item Info function (under Application Control>>Menu palette) to set the shortcut key for the Show Controls Palette item. Refer to the LabVIEW Help for more info on this function.
    Zvezdana S.
    Attachments:
    Programmatically_Accessing_Menus_and_Directories_6.0.zip ‏8 KB

  • In Finder I lost ability to open folders and disks without Control key

    MBPro Lion. Can I remove plist in Pref Finder?

    Go to Finder "Go" menu hold the option key and choose Library. Then go to Preferences trash these two files:
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    Then, restart.(You will have to reset a few finder prefs the way you like them.)

  • Wierd printing problem.  I have a TIFF file from a color negative scanned some years ago into Photoshop. Photoshop version probably CS2. Now printing from CS6. It prints with a black line around the image and mid grey outside that. Margins are white. Imag

    Any suggestions as to how to fix this, please?

    My printed colors look wrong. | Mylenium's Error Code Database
    Mylenium

  • Trying to overlay text onto images and save them.

    What I want: I have a computer running the media in my car and I want to hook up a camera to it that'll record when the computer is running and overlay the GPS speed onto the video for later viewing.
    What I got: I have the following piece of code that saves a series of .jpg images at a specified frame rate and a separate Java application that puts them together into a .mov file to view later. I couldn't find anything to record the straight video so if you have any links for that, please point me. But for now I'll settle for doing it this way and I'm not too concerned with the GPS speed NMEA parsing for now, I'll just use a static speed label until I get the overlaying working.
    What I need: I need to know what to plug into the speedOverlay() method in order to grab the image and put the speed on top of it before saving it and moving to the next image. Any ideas?
    Code:
    import com.sun.image.codec.jpeg.JPEGCodec;
    import com.sun.image.codec.jpeg.JPEGEncodeParam;
    import com.sun.image.codec.jpeg.JPEGImageEncoder;
    import com.sun.media.sound.Toolkit;
    import javax.imageio.ImageIO;
    import javax.media.*;
    import javax.media.control.FrameGrabbingControl;
    import javax.media.format.VideoFormat;
    import javax.media.util.BufferToImage;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JTextField;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Font;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.Panel;
    import java.awt.Shape;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.font.TextLayout;
    import java.awt.geom.AffineTransform;
    import java.awt.image.BufferedImage;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.Timer;
    import java.util.TimerTask;
    public class SwingCapture1 extends Panel implements Runnable, ActionListener
         private static final long serialVersionUID = 1L;
         public static Player player = null;
         public CaptureDeviceInfo di = null;
         public MediaLocator ml = null;
         public JButton start = new JButton("START");
         public JButton stop = new JButton ("STOP NOW");
         public JLabel frequencyLabel = new JLabel("Frequency:");
         public JTextField frequencyInputField = new JTextField(5);
         public JLabel framerateLabel = new JLabel("Framerate: ");
         public JTextField framerateInputField = new JTextField(5);
         public JLabel timerLabel = new JLabel("Timer: ");
         public JTextField timerInputField = new JTextField(5);
         public JPanel southPanel = new JPanel();
         public static Buffer buf = null;
         public static Image img = null;
         public VideoFormat vf = null;
         public static BufferToImage btoi = null;
         public static ImagePanel imgpanel = null;
         public static Timer timer = new Timer();
         static int theFrameRate = 0;
         static int theTimeLength = 0;
         static int i = 0;
         static int interval = 0;
         int count = 0;
         static int timeLength = 0;
         static String filePrefix = "";
         static String imagesDirectory = "c:\\images\\";
         static boolean timerBoolean = true;
         Thread capThread;
         Toolkit toolkit;
         public SwingCapture1()
              setLayout(new BorderLayout());
    //          setSize(640, 480);
              imgpanel = new ImagePanel();
              start.addActionListener(this);
              final String str = "vfw:Microsoft WDM Image Capture (Win32):0";
              di = CaptureDeviceManager.getDevice(str);
              ml = new MediaLocator(str);
              try
                   player = Manager.createRealizedPlayer(ml);
                   player.start();
                   Component comp;
                   if ((comp = player.getVisualComponent()) != null)
                        add(comp, BorderLayout.LINE_START);
    //               add(capture);
                   add(imgpanel, BorderLayout.LINE_END);
                   add(southPanel, BorderLayout.SOUTH);
                   southPanel.add(framerateLabel);
                   southPanel.add(framerateInputField);
                   southPanel.add(timerLabel);
                   southPanel.add(timerInputField);
                   southPanel.add(start);
                   southPanel.add(stop);
              catch (final Exception e)
                   System.out.println("ERROR 1");
                   e.printStackTrace();
         public static void playerclose()
              player.close();
              player.deallocate();
         public void actionPerformed(final ActionEvent e)
              final JComponent c = (JComponent) e.getSource();
              if (c == start)
    //               snapPicture();
                   theFrameRate = Integer.parseInt(framerateInputField.getText());
                   theTimeLength = Integer.parseInt(timerInputField.getText());
                   startCapture(theFrameRate, theTimeLength);
              if (c == stop)
                   timerBoolean = false;
         public void startCapture(final int framerate, final int timeLength)
              interval = 1000 / framerate;
              // Start timer.
              timer.scheduleAtFixedRate(new TimerTask ()
                   public void run()
                        System.out.println("SNAP");
                        snapPicture();
                        count++;
                        if (count >= timeLength * framerate)
                             this.cancel();
              }, 1000, interval);
         public static void snapPicture()
              final FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
              buf = fgc.grabFrame(); // Convert it to an image
              btoi = new BufferToImage((VideoFormat) buf.getFormat());
              img = btoi.createImage(buf); // show the image
              imgpanel.setImage(img); // save image
              // saveJPG(img, "c:\\java\\Tomcat\\webapps\\loadimage\\main.jpg");
              i++;
              speedOverlay(img);
              saveJPG(img, imagesDirectory + filePrefix + i + ".jpg");
         public static void speedOverlay(Image img)
         public static void saveJPG(final Image img, final String s)
              final BufferedImage bi = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
              final Graphics2D g2 = bi.createGraphics();
              g2.drawImage(img, null, null);
              FileOutputStream out = null;
              try
                   out = new FileOutputStream(s);
              catch (final java.io.FileNotFoundException io)
                   System.out.println("ERROR 2");
                   System.out.println("File Not Found");
              final JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
              final JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
              param.setQuality(0.5f, false);
              encoder.setJPEGEncodeParam(param);
              try
                   encoder.encode(bi);
                   out.close();
              catch (final java.io.IOException io)
                   System.out.println("ERROR 3");
                   System.out.println("IOException");
         public void start()
              if (capThread == null)
                   capThread = new Thread(this, "Capture Thread");
                   capThread.start();
         public Image getFrameImage()
              // Grab a frame
              final FrameGrabbingControl fgc = (FrameGrabbingControl)
              player.getControl("javax.media.control.FrameGrabbingControl");
              buf = fgc.grabFrame();
              // Convert it to an image
              btoi = new BufferToImage((VideoFormat)buf.getFormat());
              return btoi.createImage(buf);
         @Override
         public void run() {
              // TODO Auto-generated method stub
    }

    Sorry guys, I haven't looked at your links yet but I will, once I get some time to sit down and code again. I just wanted to provide this piece of code that uses the Graphics2d you're talking about to overlay text onto an image but I haven't been able to plug it into my code at all. If you're links answer the question, I'm sorry, just providing it until I can actually sit down and spend time on the research you've given me. Thanks.
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import java.text.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class WaterMark {
        public static void main(String[] args) throws IOException {
             String speed = "50";
            URL url = new URL("file:c:\\images\\1.jpg");
            BufferedImage im = ImageIO.read(url);
            String text = speed + " Km/H";
            Graphics2D g = im.createGraphics();
    //        g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
    //        g.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
    //        g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g.setFont(new Font("Lucida Bright", Font.ITALIC, 40));
    //        g.rotate(-Math.PI/4, im.getWidth()/2, im.getHeight()/2);
            TextLayout tl = new TextLayout(text, g.getFont(), g.getFontRenderContext());
    //        Rectangle2D bounds = tl.getBounds();
    //        double x = (im.getWidth()-bounds.getWidth())/2 - bounds.getX();
    //        double y = (im.getHeight()-bounds.getHeight())/2 - bounds.getY();
            double x = 10;
            double y = 50;
            Shape outline = tl.getOutline(AffineTransform.getTranslateInstance(x+2, y+1));
    //        g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.3f));
            g.setPaint(Color.BLACK);
            g.draw(outline);
    //        g.setPaint(new GradientPaint(0, 0, Color.WHITE, 30, 20, new Color(128,128,255), true));
            tl.draw(g, (float)x, (float)y);
            g.dispose();
            display(im);
        public static void display(BufferedImage image) {
            JFrame f = new JFrame("WaterMark");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JLabel(new ImageIcon(image)));
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • Resized images and video seam blurred in motion 4...

    Hello,
    I don't know if my problem is a bug or a stupid mistake I did, or something basic I haven't understood about motion, but here it is:
    I had to edit today a project I created in september 2009 with motion 3. (I installed 2 weeks ago motion 4). The project is made of images and text. When I opened the old project the images looked ok but seamed blurred although the render settings are at best quality.
    I then made an experiment and created a new project in Motion 4 and imported one image, and when I put the quality at best, again this image look unfocused. I would probably not have noticed the problem and thought that the problem comes from the image or from the capabilities of motion, if I didn't have that old video done in motion 3 with the exact same images in the exact same size in perfect crisp quality...
    I did a research in forums, but haven't found any one with a similar problem. People usually have pixelated images because they didn't put the best render quality...
    I then tried to test this on a different computer with motion 4: same problem. I tried all the settings I could find in Motion, but still no result. I trash the preferences, I repaired the permission of my mac, I reinstalled motion 4, tried several images format and size but still no result.
    I noticed that the problem occurs when I resize an image or when I resize a video. At 100% I get perfect quality, but when I resize them, they look blurred. Anything that requires a render seam to be a little blurred when the render quality is set to best. It seams like the anti-aliasing is working so well that it blurs everything... If I put the quality at normal settings, the elements that have been resized look sharp but pixelated...
    I haven't tried to test all this again in motion 3 because I don't have access to any computer that still have that version installed. And I haven't phoned applecare yet because they are closed right now in my country, but I will phone them tomorrow morning and let you know if I get any result with them.
    I really hope I simply forgot something obvious, or maybe there is a new or old setting in motion 4 that I don't know about or haven't understood properly...
    please help me
    Louie
    ps: My version of Motion is French, so I might not use the right english words used in the english version of Motion.

    Thanks for responding.
    I'm of course sizing my picture down. The project I was working on yesterday that helped me notice the problem is 300x300 pixels and the images are around 500x1000 pixels, scaled down to around 20%.
    I haven't notice today that the problem occurs in other project as well. Before I was not looking in detail at the quality, and if no one tells you about it, you won't notice it. But right now all my old projects done in Motion 3, once opened in Motion 4 seam to have that blurry effect on any image or video that is scaled down.
    I understand that Motion might maybe not be very good at scale down things, and might do it less perfetly then Photoshop. But what is odd is that all my old video exported when I had Motion 3 have sharp perfect scaled down images comparred to what I get today in Motion 4.
    The blur I'm speaking about is very light. You won't notice it easily unless you have an old version of the same video to compare it with. But in the project I was working yesterday at 300x300 pixel, the difference was really very obvious, because at this size every detail counts.
    My idea to solve my problem temporarly was to change my Motion project settings to triple its original size (from 300x300 to 900x900) and blow up everthing 300%, export the video at 900x900 and then scale it down through Quicktime instead of Motion at 300x300. This worked and my images are as sharp as they should be. This project is short and light, so I didn't mind doing this conversion, but when I will work with projects that need more render time, it's not a productiv way to work!
    I noticed another odd thing about the problem, I hope I will explain this clearly by describing 3 situations:
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by pulling one corner (=> the image or video becomes blurred)
    4. In the properties inspector I type the word "100" to get it back to 100%
    => the image is still blurred, it is difficult to see, but when I import again the same image and put it next to it you can see a difference althought both image are at 100%!!!
    or
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by pulling one corner (=> the image or video becomes blurred)
    4. In the properties inspector I click on the arrow in the top right corner of that reverts to the original settings the image or video
    => the image is perfect
    or
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by typing any number in the properties inspector (=> the image or video becomes blurred)
    4. In the properties inspector I type the word "100" to get it back to 100%
    => the image is perfect
    So it seams that my problem occurs even at 100% but only if the image has first been modified in its size by pulling one corner and than put back to 100% through the properties inspector...
    hmmmm
    very odd.
    Louie
    Message was edited by: Louie13

  • Re: Java Images and Threads prob Help!!

    Without going through it in detail the problem may be that you're doing the repaint which you hope will draw the image before the image has completed loading.
    Create your ImageIcon (loading the "xxxx.jpeg" files) during program initialisation. And check the load status of the icon, at least in a test version.

    I still cant get the reqd output. Only the 1st image is dispayed and when i click the second code, the 2nd image doesnt come(the first one does not disappear, and even when i click the code 1 i have to minimize/ maximize the screen, to get the image and after that it does not go for the s2nd image 2 come!! )
    Create your ImageIcon (loading the "xxxx.jpeg" files) during program >>initialisation. And check the load status of the icon, at least in a test version. How do u load the image during initialization??? and can ny1 plz tell me how to get the flashing threads with msgs????

  • Rotating images and links

    I have a website that uses include commands to insert shtml files into different sections of my home page. I would like to have rotating images and text links in one of the include sections. For example, image one shows up with link to URL #1, then image two shows up with link to URL#2. Any thoughts on how to easily accomplish this? Would I use Flash, javascript?
    Thanks,
    Elliott

    This one uses JavaScript.
    http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Delete duplicate images and install images from digital photo card

    Just installed Lightroom 4, more than 60000 images were imported. Many of them were duplicates, triplets and so on. I want to have a clean, unincombured library. Should I delete the 60000 images and reinstall the images from my photo digital cards or use the slow process of "X" out the unwanted images? I would like to start improving my images vs removing the unwanted images.

    HI,
    if you just starting to use Lr, I would drop the entire import / catalog and use some external program to find the dublicate image and delete them.
    Or if you have all your images on cards, I would  copy them to the hdd in seperated folders and rearrage them inside Lr.

  • How do I superimpose a darkfield image on brightfield image and then chose color range from the darkfield and only keep what I selected in the color range?

    Hi
    In the previous version of photoshop I was able to superimpose images of brightfield and darkfield  insitu hybridization.  I would adjust both images to same size and resolution.  The darkfield image I would change the hue saturation to red so that now all the brighspots appeared red.  Then I would open a new photoshop image and then drag the brightfield first into the new panel and then drag the red darkfield image on the brightfield.  So now you can only see the red dark field layer on the top,  THen using range I would select the bright red spots on the dark field and press delete.  This would keep all the dark red spots on the brightfield image and all the other dark spots from the dark filed would disappear.  This way I would superimpose all the brightest red spots from the dark field image on the brightfield image and this way I would get red signals on the bluish brightfiled image.  I am unable to do this using photoshop on CS6. I am pasting the darkfiled image on the brightfield image (rather than dragging them) . Then using range when I choose the color range and then hit delete button I am unable to clear the unwanted dark field sections.  Can anybody tell me what I should do on the new Adobe photoshop 6 (64 bits).
    Thanks

    That question may be better answered with a goolge search.  It not something most Photoshop users would be doing. More science then normal image processing.

  • Sometimes a Firefox window top bar goes weird, and the window controls at extreme top right disappear.

    Sometimes, after its been going quite a long time. a Firefox window top bar goes weird, and the window controls at extreme top right disappear, making it impossible to resize or close the window. The only solution I have found is to individually move the tabs to a new window. The original (bad) one then disappears as soon as the final tab is shifted.

    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

Maybe you are looking for