IMAQ Resample performanc​e. Any better choice for 50% downsample​? (average 2x2 - 1 pixel)

My video source is a 4 Mpixel (2k x 2k resolution) USB3 camera. This is displaying a live image OK in Labview at 45 fps using only 20% CPU.  So far, so good.
I added a "IMAQ Resample" block to downsize this to 1024 x 1024 image. That works with almost no additional processing time if I select "Zero Order" interpolation (eg. plain subsample to value of nearest pixel). However, I want to average each 2x2 block (4 pixels) in the input image into 1 output pixel. I *think* that is the effect of selecting Bi-Linear interpolation. Doing that works, but takes about 45% of CPU.  I want to do some other processing but am worried I will quickly run out of CPU time and start dropping frames.
Is there any better way to do this simple 50% downsize (2x2 average), that would take less CPU overhead, or is this the best way?

Hi jbeale1,
In NI-MAX (Measurement & Automation Explorer) select your camera. Under the  'Acquistion Attributes' tab do you see an option to change the Video Mode of your camera to a different resolution? If your camera supports it, it would be more efficient to change the resolution there.
If not , here is a little more info regarding the IMAQ Resample VI:
http://zone.ni.com/reference/en-XX/help/370281P-01​/imaqvision/imaq_resample/
You are correct, the Bi-Linear option uses a more intensive interpolation technique which is why it is more taxing on your CPU. I hope this is helpful.
Robert S.
Applications Engineer
National Instruments

Similar Messages

  • Is there any better way for updating table other than this?

    Hi all, I need to update a row in the table that require me to search for it first (the table will have more than hundred thousands of row). Now, I am using a LOV that will return the primary key of the row and put that primary key to DEFAULT_WHERE property in the block and execute query command to fetch the row that need updating. This works fine except that it require 2-query-trip per update (the lov and the execute_query). Is there any better way to doing this? This update is the main objective for my application and I need to use the most effective way to do it since we need to update many records per hour.

    Thanks Rama, I will try your method. Others, how to query row instead of primary key? I thought that querying primary key is faster due to the index?
    BTW, what people do if you need to update a table using Form? I have been using the LOV then execute query since I first developing form. But I am building a bigger database recently that I start worrying about multiple query trip to dbms.
    FYI my table will have up to million rows on it. Each row will be very active (updated) within 1-2 weeks after it creation. After that it will exist for records purposes only (select only). The active rows are probably less than 1% of all the rows.

  • Any better voices for Voice Over?

    Does anyone know if there are any other voices for the Voice Over utility? Does Apple offer any? How about free ones?

    It's an interesting question, Your Majesty!
    Apple offers no other voices at the moment, though there are some queued up for Leopard when it comes out in the spring.
    I haven't found any free voices either, though there are some Unix ones that would need to be compiled and installed—not a process for the faint-hearted.
    Voices from Cepstral are available in a number of languages, and are comparable in quality to the Apple voices. They cost $29.99 apiece, and integrate quite well with VoiceOver, although there are occasional stability problems.
    Other voices are available from Acapela as part of their Infovox iVox package. They work best when integrated with the VisioVoice package from AssistiveWare. This costs $249, but there is a special deal at $185 until 31st December 2006. The voices alone are available through AssistiveWare at $199 for US English, with again a special offer price until 31st December of $149. This gives you 5 high-quality (HQ) voices, which are a great deal better than any of the Apple or Cepstral offerings, and 2 high-definition (HD) voices, that sound less lifelike but can cope with special characters, and distinguish between upper- and lower-case letters.
    In particular, the British English voices (slightly more expensive, but can be added separately) are superb quality—the best text-to-speech on any platform anywhere. I can also confirm the quality of the French voices, but am not qualified to judge the others!
    HTH
    Archie
    PowerBook G4 17" 1.67 GHz, PowerBook G4 12" 1.5 GHz, G4 Sawtooth 400 MHz   Mac OS X (10.4.7)  

  • Any better solution for this ?

    public static void main (String args [])
         for (int row = 1; row <= 5; row++)
              for (int col1 = 4; col1 >= row; col1--)
                   System.out.print(" ");
              for (int col2 = row*2; col2 > 1; col2--)
                   System.out.print("*");
              System.out.println();
         for (int row = 1; row <= 4; row++)
              for (int col1 = 1; col1 <= row; col1++)
                   System.out.print(" ");
              for (int col2 = 4; col2 >= row; col2--)
                   System.out.print("*");
              for (int col3 = row; col3 < 4; col3++)
                   System.out.print("*");
              System.out.println();
    }I'm trying to make this:
    I think that my solution is too long. any shorter solution?
    TQ

    It IS hardwired to produce that figure and only that figure.
    What if they asked you to redo it with fewer or more rows of stars?
    You did a "bad" thing: you hardwired your loop sizes. Something like "i <= 4" is called a "magic number", because someone reading your code would have no idea where the 4 came from.
    You also have 4 appear in several places. That violates the Don't Repeat Yourself rule. If you have to change it, and forget one of the spots, your code is wrong.
    You can help both situations by defining a well-named constant and using that for the loop upper limit:
    public class DiamondsAreAGirlsBestFriend
       public static final int DIAMOND_SIZE = 4;
       public static void main(String [] args)
          for (int row = 0; row <= DIAMOND_SIZE; ++row)
          // and so on
    }Also, better to put this into a method that would take in a diamond size value and return a String. Then it's general.
    None of this is very important for this trivial problem, but they might be worth remembering when you start writing more complex programs.
    %

  • Which is a better choice for me? A Macbook Air 11" or 13"?

    Hello!  I am soon to be a college student and I am debating whether to invest in an 11" or 13" Macbook Air.  I've decided that I wanted a Macbook Air because I want a lightweight portable laptop with long battery life.  But which size?  Through some YouTube reviews I've heard a lot of things, I heard that the 11" is better than the 13" just because everything is smaller and more portable, the screen saturation makes it looks better than the 13" and just the freedom to carry it around and hold it under one hand is the ideal college laptop.  But I also heard that it's horrible for holding memory and RAM (which I am completely ignorant about.. and quite frankly not too anxious to get educated to), so the Macbook Air 11" is an excellent SECONDARY laptop. Which freaks me out because I was actually leaning towards the 11" rather than the 13"
    I don't play any games, nor do I video edit much.  I just want a laptop that can hold all of my pictures, hold documents for school purposes, and play Spotify while I do my work.  I don't really care about the Retina Display, only because I didn't spoil my self with it.  But that being said, whatever Air I'm going to buy, it will become my one and ONLY laptop and it will serve as a PRIMARY one.  Given I don't do the complicating video editing (unless it's a college assignment), or gaming with it, which laptop do you think is right for me?
    Thanks for reading everything!
    Should I still be safe and just get the 13"?
    Please put your input!

    Forget everything you think you know. The MacBook Air, 11" or 13", is a very powerful computer that can be the sole computer for anyone who doesn't require extremely powerful graphics. (This is because these computers use Intel integrated video rather than discrete video cards which Apple puts only in its top 'Pro' computers.) For most college students the Air is a perfect computer and if you configure an 11" and a 13" MBA with the same amount of memory, same size SSD, and same processor the only difference between them is the size - which, by the way, will also give the 13" a slightly better battery life because its battery is larger.
    The 11" has a 128GB drive and cannot be upgraded which for some people makes it a tight fit for some but roomy for others. I'd have difficulty making it my only computer but my wife probably could. This is one of three advantages the 13" model offers (to me). The second is the longer battery life. The third is that I found the 11" model to be too cramped. The keyboard is the same size as the 13" but somehow I felt terribly cramped and the screen was too small. That's why I walked in thinking I'd get an 11" and walked out with the 13" MBA. I'd strongly recommend 8GB whichever model you choose.

  • Any better option for email than iCloud?

    I've endured iCloud for long enough.  Apple keeps promising to get it working, rebranding MobileMe as iCloud, but still delivering a badly flawed product.
    I've never had such an unreliable email service in all the years I've used the internet, which goes back to the days of bulletin boards before the internet was available.
    I've had large numbers of emails deleted to oblivion, emails disappear then reappear, and yesterday 400+ emails retagged as "unread".
    Now people are ringing me to say emails sent to me are bouncing back.  Even the unsolicited discounts and extensions of service offered by Apple don't make up for such an unacceptably shoddy service that is just unreliable.
    Does anyone with similar experiences have suggestions for a better alternative email system?

    Paid systems offer higher reliability and retention than free. Your choice.

  • Any other choices for communication with web cam

    Hi all,
    I have wrote a JMF program that takes the images from webcam. However, it really depends on lighting. When lighting is not enough, my whole application hangs. In fact, I have installed the software provided together with my webcam, it works pretty good nomatter how dark it is. Therefore, I really hope you guys can share some experiences to me, or are there any choices, such as, C, C++, etc, that allows me to capture the images from webcam continously. I am tired about java JMF. Thx a lot.

    To communicate with web cam, you can avoid JMF using the JavaTwain package http://www.gnome.sk
    This package enables you to connect to your camera or scanner directly from a java application.
    If you just want to see how Java Twain works with your scanner or camera:
    - java (1.2 or higher for Windows, 1.3 or higher for Mac OS X) has to be installed on your computer
    - a scanner or camera has to be installed on your computer
    - download the trial package from http://www.gnome.sk
    - unzipp it
    - go to the examples directory of the unzipped package
    - in Windows: doubleclick the runExampleShow.bat
    - in MacOS:
        - open the Terminal window
        - change the working directory to the examples
        - run .sh file (type ExampleShow.sh or sh ExampleShow.sh)
    This will pop up the Twain Source Selection user interface. There, all your scanners and cameras which do have a twain driver should be listed. (About 90% of scanners and cameras on the market do have a twain driver for Windows, only a few do have a twain driver for MacOS.) Select one of them. The user interface of the selected scanner (camera) will appear. Confirm the scanning (you can set the scanning parameters first). The scanned image will be displayed in a separate window. To end the application, close that window.
    Running different examples, you can test scanning with hidden UI, saving the scanned image, using ADF, ...
    If there is any problem, do not hesitate to inquire about it at the technical support, email: [email protected] . I am the member of the staff :)
    Erika Kupkova

  • I use my ps3 online gaming, is the airport extreme or the airport express be compatible with ps3? Is it going to be a better connection compair to other router? Which one is a better choice for me, airport express or airport extreme??

    I bought linksys EA3500 router. Its still in the box and before I open it I want to learn more about the apple airport router, is the apple going to work with my online games with ps3? I have iPad, 2 iPhones, apple tv and Mac mini.  If the airport express or airport extreme is a lot better and will work for ps3 which one should I get?

    Airport will work with PS3.  From what you've stated, the Extreme is more than you need.  Buy the Express.

  • Are Bean Managed Persistance EJBs a better choice for an application with a lot of Oracle 9i JDBC activity?

     

    You don't really give enough information to answer the question. Probably the most important questions are the coarseness of the database activity, the need for remoteability, and the need for a component and security model.
    The short, rule of thumb, answer is that Entity Beans (regardless of BMP vs. CMP) almost always have a significant performance penalty. You should choose Entity Beans because you need/want the features of Entity Beans, not because of performance.
    David

  • Hello is there any better view for this code?

    thanks
    about_btn.addEventListener(MouseEvent.MOUSE_DOWN, aboutclick);
    function aboutclick(event:MouseEvent) {
    gotoAndPlay("page2");
    gallery_btn.addEventListener(MouseEvent.MOUSE_DOWN, gallery_click);
    function gallery_click(event:MouseEvent) {
    gotoAndPlay("page3");
    video_btn.addEventListener(MouseEvent.MOUSE_DOWN, video_click);
    function video_click(event:MouseEvent) {
    gotoAndPlay("page4");
    or_mc.addEventListener(MouseEvent.MOUSE_DOWN,drag);
    or_mc.addEventListener(MouseEvent.MOUSE_UP,drop);
    function drag(event:MouseEvent):void{
        or_mc.startDrag();
    function drop(event:MouseEvent):void{
        or_mc.stopDrag();
    all.pah.addEventListener(MouseEvent.MOUSE_DOWN,drag1);
    all.pah.addEventListener(MouseEvent.MOUSE_UP,drop1);
    function drag1(event:MouseEvent):void{
        all.pah.startDrag();
    function drop1(event:MouseEvent):void{
        all.pah.stopDrag();

    What do you mean?  Except for what appears to be an excess curly brace at the end, and an inconsistent use of ":void" in the function declarations and indentations too, it looks okay functionally.

  • Sony GVD-1000 a good choice for a MiniDV deck?

    We need a fairly inexpensive (~$1,000) deck to use for reading MiniDV tapes. Is anyone using the Sony GVD-1000 with FCP? Does it work well? Are there any better choices?
    Thanks for any suggestions!

    Maybe take a look at this deck...JVC SRVS-30U(there may be a newer model available now). I used it at my previous job, and was pretty satisfied with it. Should still be well under 1K.
    I'm currently working with a Sony GY-DV500 Walkman and am not happy with it at all. Several reasons, not the least of which is it only has analog inputs, no outputs. So I can't run my FW through it to a production monitor. Secondly, for it's pricepoint, I find it pretty featureless.
    I looked at the specs on your model, and didn't see that many features on it either, but your needs may be different.
    Just my opinion...others may have better ideas.
    K

  • Which of these 2 laptops would be my best choice for editing video?

    I am going to get a new laptop mainly to use for LR and PS but I also want to be able to edit video.  Which of these 2 laptops is my best option...
    ASUS ROG G751JT-CH71
    Intel Core i7-4710HQ 2.5 GHz
    16 GB DDR3
    1000 GB 7200 rpm Hard Drive
    17.3-Inch Screen, Nvidia GTX970M 3GB GDDR5
    Windows 8.1
    Or
    Acer Aspire V17 Nitro Black Edition VN7-791G-730V
    Intel Core i7-4720HQ Processor (2.6 GHz)
    16 GB DDR3 RAM
    1 TB 5400 rpm Hard Drive, 256 GB Solid-State Drive
    17.3-Inch Screen, NVIDIA GeForce GTX 860M
    Windows 8.1, 4-hour battery life
    Additionally, if you feel there is a better choice for $1500 or less, I would love to hear that advice as well.  I would really appreciate your help in making this decision.  Thanks!

    Of the 2 the Asus everyday. You won't notice the difference in the CPU's but you will more so with the GPU's as the 970 is a decent step up from the 860m. Add in extra SSD/HDD and RAM (I believe it goes up to 32GB but check), and see if they have allocated the 16GB as 2x8GB sticks or 4x4GB sticks.
    Other option I would suggest looking at a custom PC builder such as Cyberpower, Xotic or other (no affiliations, heck I don't even live in the same country). You will be able to get a much more tailored system with a better upgrade path within your budget. You will get better CPU, better GPU, RAM options up to 32GB and more flexible drive and msata combinations and most importantly some flexibility with the way the system is configured. Some are re-brands of popular gaming laptops, some are from the more custom line of chassis and some are just tweaked versions of your off the shelf names. Plus you don't have to crack the thing open to replace drives etc. that you are paying for but won't use due to slow speeds and the warranty implications that can come from doing this
    Not saying buy this as you need to shop around and find what suits you best but as an example this is from Xotic.
    Sager NP8670 (Clevo P670SA)
    - SAGER Spring Savings
    - FREE!!! – U.S. UPS GROUND SHIPPING (Use Coupon Code "FREESHIP" in Checkout) [U.S. Lower 48 ONLY / Restrictions Apply]
    - 17.3" FHD 16:9 "Matte Type" Anti-Glare Ultra Bright Screen (1920x1080)
    - Standard No Dead Pixel Policy
    - 4th Generation Intel® Haswell Core™ i7-4720HQ (2.6GHz - 3.6GHz, 6MB Intel® Smart Cache)
    - - Stock OEM Thermal Compound
    - NVIDIA® GeForce™ GTX 965M (2.0GB) GDDR5 PCI-Express DX12 (Maxwell) w/ Optimus™ Technology
    - 16GB DDR3 1600MHz [2x8GB] Dual Channel Memory (SKU - RAM04S)
    - Sager Branding
    - Standard Laptop Finish
    - No M.2 mSATA Drive
    - No M.2 mSATA Drive
    - 1TB 7200RPM [SATA II - 3GB/s] (SKU - HDDYY1)
    - 120GB Crucial BX100 Series SSD [SSD2 - SATA III] (SKU - SSD092)
    - Bluetooth Included *With select wireless cards only* (See “Wireless Network” Section Below)
    - Sager - Intel® Dual Band AC 7265 [M.2 Chip] 802.11 A/AC/B/G/N 2.4/5.0GHz + Bluetooth™ 4.0 (SKU - WIFIX1)
    - Internal 6-in-1 Card Reader
    - Built in 2.0 Megapixel Camera
    - Sound Blaster Compatible 3D Audio - Included
    - Smart Li-ion Battery (4-Cell)
    - Integrated Fingerprint Reader
    - ~Windows 8.1 - 64-Bit (64-Bit CD Included) + MS Office 2013 Trial
    - LIFETIME Ltd Labor* 1 Year Parts Warranty Lifetime 24/7 DOMESTIC Technical Support (Labor through XPC)
    Includes FREE Shipping Both Ways for Parts Warranty Repairs (SKU - WTY099)
    - * 24/7 LIFETIME U.S. based technical support
    * Extreme QA testing by dedicated technicians
    * 24-72 Hour stress testing and benchmarking to ensure top performance and stability
    - Standard Production Time
    $1,429.00
    Sub-Total: $1,429.00
    Drops to $1386.13 with 3% cash pricing.

  • Which would be the better choice?

    I am presently using a EOS T3. What would be the better choice for an upgrade?  A T4i, T5i or 60D?
    Solved!
    Go to Solution.

    Good.
    One thing you don't have is a wide aperture lens. With the savings plus just a bit more you should treat yourself to a 50mm f/1.4, or for just $100 get a 50 f/1.8. They do almost magical things wide open and close to a subject. Subject is isolated, background is blurred bokeh, background lights are big round disks. Plus they are great in low light. Too fun.
    Scott
    Canon 6D, Canon T3i, EF 70-200mm L f/2.8 IS mk2; EF 24-105 f/4 L; EF-S 17-55mm f/2.8 IS; EF 85mm f/1.8; Sigma 35mm f/1.4 "Art"; EF 1.4x extender mk. 3; 3x Phottix Mitros+ speedlites
    Why do so many people say "fer-tographer"? Do they take "fertographs"?

  • Any alternative communication for dblink a 9iR2 and a 10gR2 on same unix?

    I want to access tables of a 9iR2 with a 10gR2 sql function(ora_hash). is there any better alternative for dblink access in performance perspective?
    or is there any tricks to create the dblink for two instances on the same unix?
    thank you.

    At what point are you going to to do the validation?after complete sync of databases we were given 2 hours of downtime for validation, parallel to some configuration on application servers and some user acceptance tests Justin.
    If the hash doesn't match, what are you going to do? You can't go back to the old system without losing transactions made on the new system. And you can't easily figure out which rows don't match (and why) from a single hash value.we will be doing MINUS ALL over dblink to see the details of the difference, hashing is like a boolean flag, so we will be only interested for the ones that have a false flag with hashing.
    what is the back-out plan? we are not letting go the platform A databases until everything is validated successfully. they will be opened restricted and read-only. another important point is when there is a need of going back after some hours or days on the platform B, for this purposes we will be again capturing the changes on the target databases in order to apply them back to the source databases in any unexpected case may occur after some time we opened the customer channels.
    Do you really need a hash that combines every row? Could you not pick a reasonable and representative sample of rows to verify that the changes came across (i.e. by forcing updates to Dummy Customer A-Z records at various "interesting" points during the transition and verifying that the changes come over)?ora_hash is fast, it runs on SQL engine, we can generate count and hash values within an hour for over 10 TB of data with our hardware for now. So we didn't need sampling yet.
    Obviously, you can do the validation in the lower environments because you don't have to run 24x7 there. Is that level of validation not sufficient? If something works in dev, test, and staging, do you really need to do the full validation in production?as always dev. and test environments are not %100 representative for a production, we are doing tests but I am nearly sure that we will see new things when we go for production :)

  • How do i join a beta program for my zeen?

    Are there any beta prorams for my zeen that came on the HP C510 printer?

    Provide the name of the program you are using so a Moderator may move this message to the correct program forum
    This Cloud forum is not about help with program problems... a program would be Photoshop or Lighroom or Muse or ???

Maybe you are looking for

  • Problem with forms created in Adobe 9 not saving in reader X

    We have been using fill in forms I created in Adobe 9 pro and suddenly people were complaining they cannot save the form with their information.  I have discovered that all of those people have acrobat reader X.  I looked for solution and found that

  • IMac crashing after Mavericks

    My iMac ran immaculately piror to upgrading to Mavericks.  Immediately after the upgrade it started acting up.  First it wouldn't wake from sleep.  I'd have to manually power off then power on after long periods of no use.  Then it started crashing. 

  • Error 5 (Access is denied)

    I am getting Access denied error. Here is the error, please gice yoyr suggestions. Looking for SAP system instances installed on this host... WARNING 2006-10-08 03:42:47 Error 5 (Access is denied. ) in execution of a 'RegOpenKeyEx' function, line (67

  • I can't find my document from pages... VERY IMPORTANT!!!

    Ok, so I was working on my FINAL LAB that's due TOMORROW and I have been saving the lab multiple times, but when i went to look for the document on my computer, nothing... I literally saved it at least 4 times, and there's nothing to be found!!! I ne

  • Toolbar not linking to pages

    Hello: I made a site and the toolbar that is supposed to link to the pages works in iWeb, but once it is published it doesn't work. If I am not explaning myself well enough, go to www.twitteroutfitter.com and try clicking on and of the "links" at the