How to change picture aspect ratio in LabVIEW?

I would like to change aspec ratio of my picture. Is that possible in labview.
To show it on example. I would like to take this picture:
Picture 1
and convert it to something like this:
Picture 2
Solved!
Go to Solution.

Lourens wrote:
Here is something I put together quickly based on the suggestion of using interpolation. You could expand on this to increase the image size based on a width and height percentage or set aspect ratio.
Nice native solution, but when I need to do this I use .NET with a GDI resize function.  In testing it ran about 3-4 times faster than the solution you came up with.  .NET also supports multiple file types not just PNG, and it supports alpha layers in PNG files which is a royal pain to try to do nativly.  Of course not everyone can use .NET and not all environments support it.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
Attachments:
Resize with GDI Comparision.zip ‏45 KB

Similar Messages

  • Camileo S10 - how to change the aspect ratio to 16:9

    Does anyone know how to change the aspect ratio when making movies with the arcsoft software included with the S10!!!!!
    Won't let me select 16:9 only 4:3!!!
    Not sure why as when you play the recording back directly through the telly it does it in 16:9 so I know it's being recorded in the right ratio!!

    You cannot change the aspect ratio because you record at full hd 1080. The S10 records in format 1440/1080 at full hd, wich means 4/3. The S10 is not capable to record in full hd at 1920/1080 (this is 16/9 full hd). It is simple:
    Camileo S10 record 1440 pixels on horizontal and 1080 pixels on vertical. The aspect ratio is 4/3.
    Answer for your question: if you want to see in 16/9 format use HD2 (720p) for recording.
    Bye.

  • How to change custom aspect ratio in Lighroom 5.

    I am having trouble changing custom aspect ratio in lightroom 5. I can change it in 3 but it doesnt work in 5?

    Custom aspect ratios are just that, ratios. There is no size involved. You control size in the print module or in the export dialogue. There is no provision in Lightroom itself to change the size of the image. Lightroom imports the image taken by the camera and displays all the pixels. Any sizing that you want done is enter your control using either Lightroom features. The original image size cannot be changed.

  • Any ideas on how to change the aspect ratio to 16x9 by trimming the clip, as in 5k R3D files?

    I need to edit my project in 16x9, the source files are Epic R3D's in their native 5k resolution which is not 16x9.
    I need to trim the shots to 16x9 but don't see the tools to do that.
    The trimming functionality does allow for trimming but not to a different aspect ratio than the source file.
    At least not with consistency, like having a 16x9 preset.

    Highly recommend a look through these: http://themovieswemake.com/tag/red-workflow/

  • How can I change the aspect ratio

    I connected my new Apple TV 2 to an LCD projector (Epson 9300) using a Belkin HDMI-to-DVI cable. The projector supports a variety of resolutions, but the aspect ratio is fixed at 4:3. The picture is therefore stretched vertically. How can I change the aspect ratio on the Apple TV?

    How can I change the aspect ratio on the Apple TV?
    You can't. The TV device plays content at the encoded aspect ratio. It is up to your viewing device to alter the display aspect if it can. Your primary options are to use a different viewing device capable of multiple aspect ratios, scaling, and/or zoom effects or you could simply letterbox your content when you encode it.

  • How can I change the aspect ratio of an image display

    I am snapping a sequence of images and using imgPlot to diplay the images. However, due to my camera specifications [it's a Pulnix 9701 with Pixel Size 11.6μm (H) X 13.3μm (V)], the image I get displayed is elongated in the horizontal direction, i.e. if I snap an image of a square, I get a rectangle on my computer display.
    How can I change the aspect ratio of the display on my computer? The only parameters I have seen so far just control what portion of the image is acquired or diplayed, but none actually changes the aspect ratio.
    Thanks in advance for any help.

    If you are using an analog camera, you can set the aspect ratio in MAX. This will correct for non-square pixels.
    If you are using a digital camera, I don't think there is a way to fix it during acquisition. You could resample the image to correct the ratios, but that would be a slow, time consuming process.
    One other possibility is that your computer monitor is in a mode which is not a standard 4x3 configuration. For example 640x480 and 800x600 are 4:3 ratios. 1200x1024 is not, which tends to distort your displayed images.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • IDVD is producing DVDs which chop the edges off my video.  I have tried changing the aspect ratio between 4:3 and 16:9 but it hasn't helped.  My TV is definitely on the correct settings.  How can I solve this?

    iDVD is producing DVDs which chop the edges off my video.  I have tried changing the aspect ratio between 4:3 and 16:9 but it hasn't helped.  My TV is definitely on the correct settings.  How can I solve this?

    One way to to put the videos into an iDVD slideshow
    and set iDVD's Slideshow preferences to always scale slides to TV Safe Area. 
    However, some users have reported that the audio quality using this method is lessened.  I've not noticed it but then I don't have a good ear when it comes to that sort of thing. If you add more than one video in the same slideshow do not select any transition.
    OT

  • How do I change the aspect ratio of source video in the event library?

    I’ve imported video to iMovie 08 from a Canon Mini DV MD235 video camera. The video is recorded in widescreen format and plays back in widescreen when viewed from the iMovie event library (prior to doing any video editing). However, when I delete rejected frames from any particular video clip in the event library the video clip is automatically pillarboxed (i.e. switched from widescreen to 4:3 format). This squashes the video horizontally, stretches it vertically and leaves vertical black bars to the left and right of the video during playback. This automatic change in aspect ratio is occurring to the source video in the event library.
    I’d be grateful for any help / advice on how I can convert the edited clips back to widescreen aspect ratio, so they display in the *event library* as they did when first imported into iMovie.

    I don’t really want to clog up my hard drive with unwanted video and it’s easier to edit it from within iMovie.
    Have you considered manually importing only portions of the clips you actually plan to use? Or, if you must import the entire clip, have you considered trimming externally in an application like MPEG Streamclip which will allow you to set frame level in/out points and then perform a "Save As..." operation that stores the select range of frames to an MOV file container retaining the proper flag?
    Is there anything I can do from within iMovie to activate the 16:9 setting for these as yet unedited clips, so the same pillarboxing doesn’t happen?
    Not sure what you mean by "unedited" here. If the files have been destructively split, the flag is gone and there is nothing you can do about it but re-compress. If you mean they are imported but as of yet whole and still contain their flags, then you have two options. The first is to edit non-destrctively within iMovie '08 and the second would be to do the trimming externally.
    This second option is really fairly simple. Just close iMovie '08. Open MPEG Streamclip and load a clip you want to trim. Set your in and pout points, select the "Save As..." option, and store the files in the original Events folder with a new name. I would also recommend you perform these trims in their original time sequence so the "creation" date time groups (Finder attributes) are in time order also. When done with the loaded clip either delete it from the "Event" folder or move it to an archival location. When done with the last clip, close MPEG Streamclip, delete the Cache and Thumbnail folders from the Event folder, open iMovie '08 again, and go get a cup of coffee or tea while the files are re-thumbnailing. DO NOT DO THIS TO ANY EVENT WHICH CONTAINS FILES ALREADY USED IN ANY PROJECT. (I.e., this must be done before you start the actual project editing process.)
    It seems odd to me that iMovie is doing this.
    I suspect that as the application was originally written as an NLE, non-destructive, "by reference" application, the writers/updaters "overlooked" this facet when adding a "destructive" routine and did not provide for checks of this flag nor provide for copying it re-written segments.

  • How do i change pixel aspect ratio of an image in elements9?

    My camera only shoots in one format ratio, i would like to change images to 2:1, or 1:2. Without cropping or letterboxing. (Hence i think it is the 'pixel' aspect ratio i need to alter, not the 'picture' aspect ratio). Is this possible in elements or is it something else i can't do in elements; and just another reason why i should've bought CS5 instead??

    You can use a custom crop and Elements will automatically re-sample the pixels. You won’t get any distortion but you will sacrifice part of the image.
    In this example the original image was 3872 x 2592
    I divided 3872 by 2 and changed the height in the options bar to 1936
    Part of the sky had to go but still a pleasing result.
    Result
      You can position the crop shield anywhere. e.g. depending on the original you may want to loose part of the top or bottom. Simply move the image around to get the best composition then hit the green checkmark.

  • How do I change the aspect ratio on Final Cut Pro X?

    Whenever I upload new media (regardless of what ratio it was filmed in) it plays in letterbox format. I would like to change the aspect ratio to 16:9. Thanks.

    Please open the clip in the QT player and post a screen shot of the movie inspector. Post a screen **** of what you're seeing in the viewer.
    You keep saying upload, do you mean import?

  • Please watch and see if you can tell me how to correct the aspect ratio

    http://www.youtube.com/watch?v=shiFprOnbK4
    This is an unfinished std. def video hence this issue I ran into which is just a fun video for my youth group kids I teach at my church. I am editing it in final cut pro 7 and if you see at about 35 seconds the aspect ratio changes whatever its doing with the picture there.
    I have never ran into this problem before so I don't know if its something I may have selected on the camera accidentally or done wrong in FCP but I shot all the video the same day of course for this event of ours and all the other video is fine an in 16:9 or what was called the "letterbox" option on my Panasonic DVX100B.
    Please help me correct it if you know how. Thank you very much in advance.

    I can't watch the video as well. Not quite sure what trouble your having
    Aspect ratios can be tricky and there are a few spots you can mess them up. First I would check to make sure that your sequence settings are the same aspect ratio as your original footage. I would also make sure your exporting with the correct aspect ratio as well. (If you’re using the quicktime conversion option. Sometimes depending on your settings options like 16:9 are not turned on by default and you need to check them before exporting.)
    Also if you can change the aspect ratio in FCP regardless of your sequence's aspect ratio is. Under your distort tab there is a aspect ratio option. +33 will make your footage 4:3 and -33 will make your footage anamorphic. However this will only stretch your footage. This method is only useful for when you can to place 4:3 footage into a 16:9 sequence without it appearing distorted and stretched

  • Photoshop Elements 5.0 - won't let me change image aspect ratio. Box is greyed out. Have reinstalled

    I've been using Photoshop Elements 5.0 for years.  As of today, it won't let me change image aspect ratio. Box is greyed out. Have reinstalled the program with no change

    Where in photoshop elements 5 are you seeing the "Box" geyed out?
    Or how are you trying to change the image aspect ratio?

  • Changing photo aspect ratio with QT 7 Pro

    Can I use QT 7 Pro to change the aspect ratio of my iPhoto pictures so they can be used in HD video?
    David

    I guess it would be easyier for me to purchase Graphic Converter to convert all my JPEGs to 16:9 ratio to be used in Final Cut Express.
    Again, this depends on what you are looking for in an application. I personally have never used Graphic Converter. If, for instance, it is able to batch process your photos, then it might be worth purchasing if that is what you are primarily interested in. However, any graphic application can change the aspect ratio of your photos—including Preview which, I assume, is already installed on your system. In fact, I recommend you try this work flow with a few sample photos to be sure it is the aspect ratio you really want to change. (I.e., most cameras use a 4:3 or 3:2 aspect ratio and changing the aspect ratio for the frame will introduce a distortion to the photograph subjects.) The more normal approach is to crop the photos to the desired aspect ratio in iPhoto and export the customized photos from iPhoto or import the customized photos directly into the target application.
    In any case, simply open one or more photos in Preview, select a photo, open the "Tools>Adjust Size" option, deselect the "Scale proportionately" option, and enter the desired HD dimensions.
    Example... This
    becomes this...
    In this case making the subjects appear fatter than the actually are which usually does not go over well with the women in the picture.

  • Change pixel aspect ratio

    Hi all,
    My school requires me to produce all my videos in a format of 768px by 576px, square pixels, PAL format.  I need to know how to change the pixel aspect ratio to 768x576 with the standard PAL format and square pixels.  I can see that when you start a project you can set the size, but the boxes that contain the pixel size are shadowed out and I can't select them to change them. I have also tried to modify the project after it was created, using project settings and sequence settings, but again, I was not able to select the boxes that included the pixel aspect ratio.
    Please help soon, as my project is due within hours.

    My source material is 768x576 animations from Maya.  The output needs to be .avi format, but it's not going onto a DVD or a DV tape or a web video, it just needs to be uploaded to my instructor's computer.
    I am trying to export a file with the correct aspect ratio now.  I set the output to codec=none, and changed the aspect ratio to 768x576.  It seems unable to output the file, as I have tried four times and it has given me an error each time.  Is a codec necessary?  Is that what's freaking it out?
    Also, the final video will only be 2:28 long, and I have set the scratch disk to a drive on my computer that has 78 GB free, so I hope it is not running out of processing space.
    Thank you for your help and patience with this problem.  I'm not sure I get the reason for the format myself, which is probably why I'm having trouble explaining why this is so important.  However, my instructor told us numerous times that we absolutely had to have a final file that was 768x576, so I figured I had to make every effort to get it done that way.

  • How to keep original aspect ratio when cropping in Camera Raw?

    How to keep original aspect ratio when cropping in Camera Raw? Cant figure it out! With shift, the aspect ratio is 1:1. But I didnt set it to 1:1 (I checked "normal").

    The Shift key works once you’ve set your crop ratio.  DSLRs would typically do 2:3 and others sometimes do 3:4.

Maybe you are looking for