Why overlays take much longer on grayscale images single precision

Hello

I came across a rather curious problem. In a Visual inspection machine, we create 8-bit 16MPixel images. These are then calculated in single precision images. After processing the image display us certain types of images of result to the user. Here, the user can use the mouse on the image display and gets a reading of the current image of the sector where the mouse is currently positioned. If the image is RGB or U8, fine.

However, if the display holds one of the 32-bit grayscale images things become quite slow, by a factor of 5 to 10 about. Now I can see that 32-bit is quite a bit more than 8 bits, so I guess an increase in lap by a maximum factor of 4 times.

Since the images are large enough, an update takes about 90-100 ms with the 32-bit image, while the same action requires little more than 10 to 20 ms with U8 and same RGB. Because the movement of the mouse is caught by a structure of the event, all movements are processed and finally the tail to cause a blockage of the software that all these events are processed. This leads to ridiculously long 'freeze' time in the software, sometimes as long as 20 sec, as I saw through a log of the events has been implemented for this purpose.

Attached is an example of code that shows the unusually long processing time for overlays on SGL-images. If there is any suggestion, I would be happy to read them. Thanks in advance.

Falk

After in-depth discussions with German support NOR we have understood that it is not primarily the recovery action that consumes time, but rather my screen image update after each action of the event. As my goal was to provide the user with the most recent image information available as close to the position of the mouse as possible there is no another way to do it without compromising the goal that I have explained.

Several alternative ideas, we had (some don't work well) are briefly explained below:

  1. Use the property of the band of the art instead of creating an overlay

    • PRO: ultra fast response because no update of the display image is needed, easy to implement
    • Cons: Stationary, takes advanced band rest a while to appear, requires the user to stay in the same place on the screen for a while, the band faded unpredictable (in my test) and reappears only after leaving and returning to the display picture more keep the mouse pointer for a few seconds
  2. Use an extra (classic style) indicator string to display the desired text in the desired position
    • PRO: also very fast
    • CON: kind of hassle to the code, because it implies the correct calculation of the desired position of the channel indicator using the position of the window of the façade, the image appears indicator and the position of the mouse. Actually not hard I know, but nothing that see you with your mind on your dinner... You'll need a bunch of different reference types here to acquire the position necessary to window VI, indicator to display Image and mouse properties
  3. As 2 but without moving the indicator
    • PRO: fast and easy to implement
    • CON: not as easy to use since the indicator is stationary somewhere around the display of images and not at the mouse position.
  4. copy/typecast image SGL U8 image and move forward with overlays
    • PRO: the response is improved to the level that I used
    • CON: 'problem' with the update of the display image remains and therefore increases the response time the picture gets
  5. Use the property of the information string Image instead of creating an overlay
    • PRO: would be faster than 1., since no required update picture
    • k.o. - CON: property seems to be Read-Only, so no changes defined by the user of the text is possible

I guess my choice will be 2.

If anyone has other ideas on this subject, I will be always happy to hear about them.

Tags: NI Software

Similar Questions

  • Why does take so long to insert image?

    Hello

    I created a document that contains about 80 pages with any PDFs (drawings). There is not a problem when I am importing tham small pdf 1 MB. But some of them are larger (4-5Mb) and I am not able to change it. So to import the 'big' pdf takes more than 1 hour.

    Are there some limitations as any file is concerned?

    You have to be able to advice?

    Michelle

    Something is not. The PDF is stored on your hard drive or a network? If on a network, try to copy on the hard disk. Also try to resave the PDF file in Acrobat.

  • Why does take so long to open a document in microsoft office, imaging files

    Why does take so long to open a document in microsoft office, imaging files. All my scans appear in a .tiff file. I open the .tiff file and it takes about 30 seconds, at the same time, everything freezes and I have to remove the mouse from the usb port wireless. I'm currently running vista

    Hello

    I hope that by "striking" means you actually "Uninstall", as simply delete the files/folders of programs can cause all sorts of issues. Maybe, there is something in the software which has been deleted these files supported? Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • Why does take so long to download adobe reader when flash downloads in a Flash?

    Why does take so long to download adobe reader when flash loads a lot faster?

    It's much bigger.

  • Why it takes so long to get my serial number

    I waited 10 days to receive a serial number for the standard student edition design CS6. I sent all the info including my evidence with the image name and the date, but it seems that my case has been forgotten. Fair enough my student card is in Japanese, but so is the product I bought, including the reception. I am also enrolled in an account of the ICCA, so I think everything is in order. I don't see why it takes so long.

    Hi su - structural adjustment programmes

    Please contact our customer service directly for the State. You can even chat online with the Adobe Tech Rep.

    Customer service: http://helpx.adobe.com/contact.html

    For the customer in the Japan support, you can call: 03-5350-0407

    REF. http://www.adobe.com/uk/elicensing/licensemanagement/alm/contact.html

    Chat support: http://adobe.ly/yxj0t6

  • My computer takes much longer for the initial start as before?

    Original title: startup

    my computer takes much longer for the initial start as before?

    I suggest to do the following:

    (1) Windows Update and install all updates

    (2) run disk clean up and defragnment

    Check disk run 3)

    Check 4) Add/Remove programs and uninstall programs you want

    (5) run full system scan, with:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    You can also take a look at:

    http://www.Microsoft.com/atwork/maintenance/speed.aspx

  • Why does take so long access and loading of websites?

    It takes much longer time to access and loading websites, like from IE and navigation, since I changed my router wireless to a Linksys 54 g of Asus RT56U and added a D-Link DWA 131 wireless adapter to my Dell laptop running under Windwos XP.  My controls show a sound intense and pretty good speed of the router.  Speed average about 45 Mbps, but varies dramatically from 30 to 150 MB/s.  Are there settings in IE, or my computer or router that will improve performance?

    Hi RichardKenny,

    You can install the latest driver for D-Link DWA 131 wireless network card and see if it helps.

    You can try to update the drivers automatically or contact D link to get the latest drivers:

    D-Link support

    How to manage devices in Windows XP

    You can also consult the following article:

    10 tips to improve your wireless network

    Hope this information is useful.

  • Why does take so long to load from the time wherever I power up until it takes to get to the login screen? help taking too long

    Why does take so long to load from the time wherever I power up until it takes to get to the login screen? help taking too long

    You should take a look at your startup programs and decide what is really necessary and what is nothing more than useless clutter. There is nothing wrong with the startup programs, some may be really useful or even necessary for your personal needs. But keep in mind that many programs build to start when you start the computer and that most of them must not start when the computer starts, all they do is slow down your boot time and clutter of things when you're trying to solve problems, and some are downright harmful!

    I mean, have you really need things like real Planner and Gadwin Print Screen running all the time? These programs will run very well, even if they are not started automatically every time that you start the computer. Go to these programs and change/disable their boot option. Some may be difficult to kill for public assistance services can be useful when you try to control startup programs. Try CodeStuff Starter, it's safe and easy to use, I think you'll like it, download it here:

    http://CodeStuff.tripod.com/products_starter.html>

    Use AutoRuns to check axis start, Richard:

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx>

    Use Cclenar-> tools-> start

    http://www.CCleaner.com/download/builds.aspx>

    I can't tell you what to keep, startup items it is a personal preference, but pretty well all the startup items indicated by CodeStuff Starter are safe to disable, and changes are easy to reverse if you change your mind. Searches for items it shows you and decide whether or not these things are really useful or necessary. Some programs will be started at startup without your knowledge and over time, that list can expand to include useless parasites, part of good computer maintenance includes regular control of these startup items and the removal of the unnecessary.

    Suggest that you first spread malware as the cause of the problem by following these steps:

    I. - delete your temporary files

    Clean the system (compensation to all temp/tmp folders and included all the content offline, the tif browser, delete the cookies of compensation.)

    Do a disk cleanup. Click the Start button. in the search box, type disk cleanupand then in the list of results, click Disk Cleanup. Better and easier to use - ccleaner.

    Download the basic version (slim) via

    http://www.Piriform.com/CCleaner/builds>

    The basic version (slim) does not contain the toolbar disgusted

    DO NOT USE ANY cleaning of the advanced options. DO NOT TOUCH THE REGISTRY OR TOOLS. At least not for now.

    Reset

    II. - have your system scanned as a result of security/antivirus installed.

    III. - download, install, update and run both of these tools to a-squared free scans:

    MalwareBytes anti-malware (MBAM)

    http://www.Malwarebytes.org/products/malwarebytes_free>

    SUPERAntiSpyware (SAS)

    http://SUPERAntiSpyware.com/superantispywarefreevspro.html>

    UTC/GMT is 18:16 on Wednesday, January 18, 2012

  • Why it takes so long for the BlackBerry vendor to deal with accounts?

    Why it takes so long for the BlackBerry vendor to deal with accounts?

    I put in my request 3 days ago, and it has not yet been verified.

    Hello

    Could you please PM me your name of the seller? Do you get the email that asks you to send the document ID/commercial? If this isn't the case, please try to chcek your spam folder.

    Kind regards

    Satya

  • Why does take so long to put up a picture of Lr into PS?

    Why does take so long to put up a picture of Lr to PS for editing?  I use the command E.  iMac i7, 32 GB memory, fast graphics card (my Mac is loaded!), 3 TB of storage, etc. etc. Is there a setting I can change to speed things up?

    TomMix salvation,

    Please try and turn off the graphics processor in the Lightroom preferences

    Open Lightroom

    Go to Lightroom preferences in the Edit menu

    Click the performance tab

    Deselect the graphics processor

    Restart Lightroom and try to use it.

    Let us know if that helps.

    Kind regards

    Mohit

  • why it takes so long to download acrobat xi

    why it takes so long to download acrobat xi?

    Hi Tiachia,

    The download is dependent on the speed of network connectivity.

    Please consult the table of time vs mentioned in the kb download speed: http://helpx.adobe.com/x-productkb/policy-pricing/store-download-faq.html

    Kind regards

    Rave

  • Why does take so long to connect to the new update?

    I tried to fix this overnight, it takes so long to log, and this was not the case before I updated my Mac Book Air. I tried to reinstall but it doesn't work and I've had this problem since the upgrade.

    It is a space to discuss the Windows version of Apple software update. I asked your thread to be moved.

    TT2

  • Why it takes too long to open attachments of the e-mail account?

    It takes forever to download attachments from my mail account. I tried to do the following tasks explained on the vista forum: http://windowshelp.microsoft.com/Windows/en-US/help/6b046ae9-1434-4423-9303-400ff6fe686b1033.mspx#ESD, but none of the fixed work possible.

    After clicking on open on the box pop up asking if I want to open or save the attachment, it takes too long to download. The transfer window remains open to showing that he is ready to download, but rest in this window of bhox. I press cancel and try to open once again, if the chance that it opens this file, otherwise it takes forever forceing me to cancel. Very small files most of the time, usually between 50 KB should take seconds.

    I even tried to save the files, but once again the same process. The transfer case remains open but does not download.

    One of the ideas.

    Thanks in advance.

    Hello

    It is not easy to tell exactly what is happening, but it must be something with the e-mail account provider and their page. For me, this case is not a typical problem of Vista, but you can try to find the solution on Vista from Microsoft IT Pro forum.

    By the way: you have an alternative email by another provider address? Is it the same situation?

  • Why it takes so long to open a connection to a shared variable, the first time?

    Hello

    I have an application to large scale developed with LabVIEW DSC, which covers multiple computers on a LAN.  In one of the VI I open variable connection shared by using the "open Datasocket' VI.  I notice that after restarting my computer and execution of this VI into the source code (I have not tried with an executable file yet) it takes about 20 seconds to get a successful connection to a variable share located on another computer.  The later 'Datasocket Open' claims the same computer to the same shared variable takes much less time, about 100 ms.  I reproduce this with 3 different computer, so the behavior seems to be reproducible, but it's not to do it every time but very often.  This scenario may occur also when I did not open a connection to another computer for awhile.

    Anyone have this experience? Is there something I can do all this to avoid this 20 seconds delay problem? Anyone have an explanation?

    All of my computers running Windows 8.1.  I'm using LabVIEW 2012.  All my firewalls are 'off '.

    Thank you

    Michel

    Here is a picture of my open VI.

    Recently, I did this for another client. You can emulate a timeout (and actually connect faster) by using the function "open in background" and then checking the variable.connected? property.

  • Why doesit take so long for my acer laptop to do the windows updates? I cleaned the disk and defragmented, but it takes hours to make updates

    Help, why does take hours for my acer make 3 windows updates, when my static pc does in a few minutes.

    Thanks for any help.

    Help, why does take hours for my acer make 3 windows updates, when my static pc does in a few minutes.

    Thanks for any help.

    Without real specifications-, I venture to say that the machine is old and slow, maybe not the latest hardware device drivers installed, could have some system problems that must be resolved, etc.

Maybe you are looking for

  • Apple Dock of lightning - line level output?

    I have a question that maybe with that you audiophiles out there can help.  Descriptions and comments from the dock connector 30 pins for the pre at first touch screen iPod claimed (correctly I think) that the mini stereo 3.5 mm output port of these

  • Cache L2 on Satellite M40-295 problem

    I have problem with Cache L2. My processor is: Mobile Celeron M 380. Have 1 MB L2 cache. I check with several program CPUZ, PC Wizard 2006 and other aplications of Intel. Programs showed me what Cache L2-> none or 0 KB.I have effective bad on my lapt

  • Rebel EOS 300 d: NEED a DRIVER

    My husband bought an EOS Rebel years 300 d.  I installed the software on my laptop, with Windows 7, but I can't find a driver.  Where I find a driver?

  • Convert char to date format in obiee 11g?

    HelloI want to convert char to date format in obiee 11g.I have this date' 07/31 /' | CAST (YEAR (CURRENT_DATE) AS CHAR)I want to change the tank to the date format.Please help me,Thanks in advance,A.Kavya.

  • RPAD space in an element of the display does not work?

    4.2.1THM 2Hello worldI tried to add space on a point of display value using something like thisIt's the source of the displayed itemSelect rpad (table_column, 10, ' ') table.It shows the values less spaces rpad (works fine on sqlplus)But if I put som