Jump to content

jorwex

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Posts posted by jorwex

  1. Hello all,

    I'm using an ActiveX object that I found ( http://www.shrinkwrapvb.com/videocap.htm ) to display a live image from an Epiphan VGA2USB device. It shows up as a TWAIN (I think that's the correct way to describe it) source if you go to My Computer in Windows. When I first tried to get it to work (All I did was put the video window in an ActiveX container) the colors were all screwy. I managed to get the built-in Windows capture parameter window to display (lets you select source's resolution and bit depth) at the beginning of the program execution.

    video.jpg

    Once I changed it from the default (as its shown in the image above) to RGB24, everything looked the way it was supposed to. Is there a way to programmatically set this prior to execution? I'm not a programmer and I'm having difficulty deciding whether that's a task for the ActiveX object or if it's something I need to set in the OS. I immediately looked to the OCX file, but I think its a Windows setting now, but I don't know where to start.

    Thanks LAVA,

    Jordan

  2. Hey all, I was wondering if there was a simple way to save only the graph window for an intensity graph. If you use the Get Image method, it saves other things like the color ramp, the Graph label, etc..kinda like taking a screenshot of the area surrounding the graph instead of the graph itself. I've tried using Get Image and then Get Image Subset, but I'm either selecting the wrong area or selecting the wrong # of pixels or something, because it's not the correct resolution and doesn't quite look right.

    I'm taking a 640x480 image from a BMP, converting it to greyscale, and then saving the U8 converted greyscale data to both a pixmap and to a 2d array. Then I use the 2d array as the input for the intensity graph. The greyscale pixmap and the intensity map look very similar, but the intensity graph is a bit squished horizontally. If you right click the intensity map and go to properties and then the scales tab (im using labview 8.2--no size in the first tab like in 8.6), the y scale (width of the pic) says 650 instead of 640. If I try and change it to 640, it goes back to 650 as soon as I run the vi. It actually looks like those 10 extra pixels have been wrapped around from the left side of the image to the right, and then the whole 650 pixels have been squeezed to the space that 640 pixels occupy (interpolated?).

    Help!

  3. QUOTE (jorwex @ Aug 6 2008, 11:01 AM)

    Got it! Now all i have to take care of is the color mapping. Through all that right-click menu surfing, I couldn't find a way to get it to 0-255 greyscale.+

    EDIT: I believe the answer that I'm looking for is the Marker Color option (found by right clicking an intensity graph's color ramp). However, it is greyed (grayed?) out and I cannot seem to make it clickable.

    Any suggestions?

    EDIT 2: I figured it out. You have to click on the numbers on the scale. That's dumb :)

    I tried everything but the numbers, starting with the colored ramp itself. I'm sure there's a good reason for it that I haven't considered yet as a LabVIEW newbie.

    Thanks for your help.

  4. QUOTE (jorwex @ Aug 5 2008, 03:59 PM)

    Thanks. I played around with it and got it almost working:

    intensity.GIF

    But I can't seem to figure out how to remove that grey border. On the Intensity graph that I keep referencing, it is invisible, and is a very thin border of the black area.

    How do I make it transparent?

    Got it! Now all i have to take care of is the color mapping. Through all that right-click menu surfing, I couldn't find a way to get it to 0-255 greyscale.+

    EDIT: I believe the answer that I'm looking for is the Marker Color option (found by right clicking an intensity graph's color ramp). However, it is greyed (grayed?) out and I cannot seem to make it clickable.

    Any suggestions?

  5. QUOTE (jdunham @ Aug 4 2008, 04:34 PM)

    I don't have that toolkit loaded on my machine, so I haven't seen the example, but it sounds like your Z scale is not set right. If you make the Z scale visible, and make sure that different colors are assigned to values between 0 and 255, you should get a more interesting rendering of your data. It's too complicated to describe how the Z scale works, but just right-click on the various parts and fiddle with them, or as a last resort, you could try the user's manual. You should probably start with interpolated colors and make sure the data is plotted correctly, and then you might pick a few ranges for colors and then turn interpolation off. I find the latter makes a more understandable image display, more like a contour plot. You can also get some mileage from seting "aribitrary spacing" rather than uniform.

    For example you can have zero displayed as black, 1-63 as blue, 64-127 as green, 128-191 as yellow, 192-254 as white, and 255 as red. With interpolation on, this will look kind of muddy, but with it off, it will look great.

    If you don't want to see other graph items, and the "visible items" isn't clearing them, you can try coloring them transparent. For the X and Y scales, you just change the scale type to "No Scale".

    Good luck

    Thanks. I played around with it and got it almost working:

    intensity.GIF

    But I can't seem to figure out how to remove that grey border. On the Intensity graph that I keep referencing, it is invisible, and is a very thin border of the black area.

    How do I make it transparent?

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.