Counting occurence in image

I don't know nothing about NI image DAQ, I'm new to this, I'm a Labwindows/CVI programmer and recently a client asked me if its possible to count cells occurences in an image. Before investing money in such system (seems to be very expensive) I would like to know if NI VISION functions are powerfull enough to count occurences of a human cell in an image ?
Thank you,

The short answer to your question is yes and there are similar examples on the IMAQ Vision demonstration CD. I would suggest you try and organize a demo from your local NI office.
Application Note 107 gives a good tutorial on this topic and you can get access to it at the following link:
http://zone.ni.com/devzone/conceptd.nsf/webmain/1D977AE5ED42CB0C86256869007215CC?opendocument&node=DZ52495_US
As far as support for LabWindows/CVI is concerned, you may see a lot more "traffic" regarding LabVIEW on Developer Zone, but rest assured the capability of the CVI version of IMAQ Vision is virtually identical and there should be enough help either direct from NI or through Developer Zone to help with your application.
With regards to questions about cost, t
he cost of the application will have to be considered versus the benefits of introducing an autonomous inspection system. Your customer may find that the increases in throughput i.e. number of samples/images per hour that can be inspected or the reliability of the results produced (most people will strive towards a 100% inspection imaging application) will offset the initial development costs. This is particularly true if your customer is currently manually inspecting the samples (for example under a microscope).
Jeremy

Similar Messages

  • Counting occurences

    Hello Experts,
    I have the following query related to counting occurences of a particular characteristic related to the Calendar month
    1) When I choose the option "Average of all values" within exception aggregation for the calculated keyfigure that I am using for the count, it counts all the values including duplicates .i.e. if the charcteristic has repeated occurences for a given month, then it is counted distinct occurence. However, in this case it is not showing me "0" for no occurence but just displaying a blank
    2) But when I choose the option "Counting all values" within exception aggregation for the calculated keyfigure that I am using for the count, it does provides me "0" for no occurences but it counts the repeated value as single occurence
    How can I get around this? I mean to get repeated values to be counted as separate occurences and also being able to show "0" for no occurence.
    Any help will be appreciated
    Thanks,
    Rishi

    Hi ,
    Please use exception aggregation as you already did  with count all values.
    But you need to select a specific reference chars to select the unique count.Plant or the Month can be a option.
    In BI7.0 U have concept of nested aggregation:
    Create a CKF1 with reference to one Char. and craete another CKF2 using the earlier CKF1 and put again a reference on some other char.
    that will solve the problem.
    Please take care of the selection of Char while doing reference char.

  • Can we limit the search count in Webcenter Imaging on the basis of user/grp

    Hi All
    I have a scenario wherein i want to limit the search count in Webcenter Imaging 11g on the basis of user and group.
    For e.g if administrator searches for documents it should return all the search result, whereas when a noraml business user searches for the document only 1000 documents should be returned as search results(if exact search criteria is not met).
    I am aware of the General setting in Enterprise Manager, but i want to restrict it on the basis of user.
    Can somebody help me, it's really very urgent.
    Thanks
    ACM

    Hi
    This is very important and i am not able to figure a way out of this.
    Is this a Product Feature and can not be altered?
    Please help
    Regards
    ACM

  • Counting occurences of a string (in a cell)

    This is a little like the topic "Counting occurences of a word," except I want to be able to count how many times a specified search string occurs in a cell, not count how many cells contain the string. I would also like a formula that gave the offset of the starting character of the search string into the cell, such that a zero signified that the search string did not occur.
    Basically, I want a general set of tools to parse a cell's string data, enabling me to determine where in the cell's string data each occurrence of another string is located & to extract parts of the string data relative to where the search string occurs.
    For example, if the cell contains the string, "1ab2cd2e" I want to be able to extract "cd" & "e" based on the characteristic that they follow "2."

    Here it is:
    --(SCRIPT decoupeur.app]
    Save the script as a Script, an Application or an Application Bundle named decoupeur
    Put the file in the folder
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    To use it,
    Select the group of cells to convert
    Copy to the clipboard
    Select the destination cell
    Goto Scripts > Numbers > decoupeur
    You will be asked to define the separator to use.
    Given the separator "2", the strings of the kind "1zer6sd2az2rt8aa2er7kkk5uu2a"
    would be parsed and return az TAB rt TAB er TAB a
    The converted values will be pasted at the cursor.
    Yvan KOENIG 30juin 2008
    property theApp : "Numbers"
    property menuFenetre : 10
    property premierNom : 6
    property nomDuDocActif : ""
    property theDelim : ""
    property listeLignes : {}
    property listeTemp : {}
    property msg90 : ""
    property msg91 : ""
    property msg92 : ""
    --=============
    on run
    tell application "System Events" to if not (UI elements enabled) then set (UI elements enabled) to true (*
    Active le GUI scripting
    • Enable GUI scripting *)
    my nettoie()
    my controleVersion()
    set nomDuDocActif to my getFrontDoc()
    if nomDuDocActif = "" then return
    my prepareMessages()
    try
    set txtDatas to the clipboard as Unicode text
    on error (*
    The clipboard was empty *)
    return
    end try
    set my listeLignes to every paragraph of txtDatas
    set srcNbRows to count of my listeLignes
    if txtDatas contains tab then (*
    several columns *)
    error "Can't treat several columns" number 8001
    else (*
    single column *)
    tell application theApp
    set choix to choose from list {"1", "2", "3", "4", "5", "6", "7", "8", "9", "0"} with prompt msg90 default items {"2"} OK button name msg91 cancel button name msg92
    end tell
    if choix is false then error -128
    set theDelim to item 1 of choix
    repeat with i from 1 to srcNbRows
    if item i of my listeLignes is not "" then set item i of my listeLignes to my decipher(item i of my listeLignes)
    end repeat
    end if
    set the clipboard to my recolle(listeLignes, return)
    my pasteIt()
    my nettoie()
    end run
    --=============
    on pasteIt()
    tell application theApp to activate
    tell application "System Events" to tell (first process whose title is theApp)
    click menu item nomDuDocActif of menu 1 of menu bar item menuFenetre of menu bar 1
    keystroke "v" using {command down}
    end tell
    end pasteIt
    --=============
    on decoupeur(n)
    local d, ms, m
    set d to n div 1
    set ms to (n - d) * 60
    set m to round (ms)
    return (d as text) & "°" & m & "’" & (round ((ms - m) * 60)) & "”"
    end decoupeur
    --=============
    on decipher(source)
    local i, itm, shortimem, j
    set my listeTemp to my decoupe(source, theDelim)
    set my listeTemp to items 2 thru -1 of my listeTemp
    repeat with i from 1 to count of my listeTemp
    set itm to item i of my listeTemp
    set shortItem to ""
    repeat with j from 1 to length of itm
    if character j of itm is not in "1234567890" then
    set shortItem to shortItem & character j of itm
    else
    exit repeat
    end if
    end repeat
    set item i of my listeTemp to shortItem
    end repeat
    return my recolle(my listeTemp, tab)
    end decipher
    --=============
    on getMinutesSeconds(t, d)
    local ll
    set ll to my decoupe(t, d)
    return {(item 1 of ll) as integer, (item 2 of ll) as text}
    end getMinutesSeconds
    --=============
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=============
    on recolle(l, d)
    local t
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to ""
    return t
    end recolle
    --=============
    on nettoie()
    set AppleScript's text item delimiters to ""
    set my listeLignes to {}
    set my listeTemp to {}
    set nomDuDocActif to ""
    end nettoie
    --=============
    Get the name of the active document
    on getFrontDoc()
    local nw, mm
    tell application theApp to activate
    tell application "System Events" to tell (first process whose title is theApp)
    set nw to name of every menu item of menu 1 of menu bar item menuFenetre of menu bar 1
    if (count of nw) < premierNom then
    set mm to ""
    else
    repeat with i from premierNom to count of nw
    set mm to item i of nw
    if (value of attribute "AXMenuItemMarkChar" of menu item mm of menu 1 of menu bar item menuFenetre of menu bar 1) is not in {"", "•"} then exit repeat
    end repeat
    end if -- (count of nw)…
    end tell
    return mm
    end getFrontDoc
    --=============
    on controleVersion()
    local v
    try
    set v to version of application theApp
    set menuFenetre to 10 (* index of the Windows menu *)
    set premierNom to 6 (* index of the first docName in the list of menu names
    The list contains one more item than the displayed menu *)
    on error (*
    • We are here if Numbers ignores the instruction get version *)
    tell application "System Events" to set v to get version of (get (application file of (get first process whose title is theApp)))
    if v starts with "1" then
    set menuFenetre to 10
    set premierNom to 6
    else (* ready for a Numbers v2 ignoring AppleScript *)
    set menuFenetre to 10
    set premierNom to 6
    end if
    end try
    end controleVersion
    --=============
    on parleAnglais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z = "Cancel")
    end parleAnglais
    --=============
    on prepareMessages()
    if my parleAnglais() is false then
    set msg90 to "Choisir le séparateur"
    set msg91 to " OK "
    set msg92 to "Annuler"
    else
    set msg90 to "Choose a separator"
    set msg91 to " OK "
    set msg92 to "Cancel"
    end if
    end prepareMessages
    --=============
    --[/SCRIPT]
    Yvan KOENIG (from FRANCE lundi 30 juin 2008 11:16:52)

  • Analytics - not counting hits for Images on Portlets

    Hello,
    We have several portlet with images on them. We also use Analytics 10.3.0. Analytics picks up an image load as a 'hit'. So our top 5 portlets are wrongly showing up as the ones with images because they load with every page refresh - not a user click.
    I read it is counting as a click because it is gatewayed - do not publish the images in the same areas as the published content.
    So I created a new virtual directory outside our published content site but in the same website as the portal, and changed the publishing target to 'Publish images to a separate location'. Our published content is in a folder called publishedcontent and the images are to be published to ptscimages (separate) folders.
    If I republish all the content - will image loads no long register as hits in Analytics?
    Anyone else get around this issue?

    You need to remove gatewayed links to things like images to prevent additional counts. I believe you're doing it correctly by offloading images to a separate location. As long as those images aren't gatewayed, you won't get additional counts for them. The other bonus is you don't bog your publisher server/redirector down as much for those requests.

  • String Count Occurence

    i just want to count the number of occurence of character in string..
    so i did this.. dont know whats wrong.. so someone help me
    mport java.util.*;
    public class CountChar {
    public static void main(String[] args ) {
    String input = args[0];
    LinkedHashMap<Character, Integer> lhm = new LinkedHashMap<Character, Integer>();
    for (int i =0; i<input.length(); i++) {
    char currentChar = input.charAt(i);
    if(lhm.containsKey(currentChar)) {
    lhm.put(currentChar, lhm.get(currentChar) + 1);
    } else {
    lhm.put(currentChar, 1);
    System.out.println(lhm.toString());
    }

    raji10 wrote:
    yes i did itWell, as I wrote already: it works fine for me, there must be something else you're doing wrong. What exactly doesn't work?
    kind regards,
    Jos

  • How to count occurences of a certain string in incoming real-time data? Also displaying RTC data. Current VI included

    I use LabView student Express 7 on a Windows XP system.
    Time-frame: we are doing final integrations for our balloon experiment today. We just got told that the press wants to view real-time data, which we haven't programmed for. I need help to get a working VI at the latest by 25.02.2004 before 0800(morning) (GMT+1).
    Note on license
    It is a student balloon flight, and the data will not be used in scientific work, so the I am not breaking any license agreements (I hope).
    Problem synopsis:
    The balloon continually transmits data at 9600baud. The data is a semi-repeating header followed by a constant lenght data-package arranged like this:
    BEXUS[h][m][s]BEXUS[h][m][s]
    [Raw binary data, 7channels*8sub-channels*8bits]
    What the groundstation is doing right now:
    Take all incomming data and save (append) the data to a file without any data-handling. (We figured we would go post-processing).
    What I need to change in less than 24 hours:
    - Add a "package" counter
    - Add a display of the clock data (RTC)
    How I planned to implement the changes:
    -RTC display:
    The RTC data is in BCD format, since that means that if you look at the data as hex numbers, you get the hours and minutes and seconds out in "clear text". That is 12 hours is 0x12hex. I figured that I can do a match pattern BEXUS and pass the "after substring" to another match pattern BEXUS from which I feed the "before substring" to a type-cast VI (casting string to u8) and displaying that, which should give me a display of "123000" for the time 12:30:00... I couldn't get it to work at all when I tried out the supplied "beta" vi.
    - Package counter:
    Counting how many BEXUS that gets detected and dividing by 2. I don't know how to do this. I've looked on the forum (a good thread on the problem: "how do I count the number of *'s in a string") but these use either loops or arrays... and I'm not sure how this works when I'm getting the data in at realtime. I cant make an array and then count it, since then the array would grow fast and possibly interfere with saving of the data??? Saving the data is critical.. without that file we cant do post-processing.
    Since my time is so limited (I'm not even supposed to do the groundstation software but they called on me in the last minute because no-one else had time/wanted too/could do it) I hope that you could make an exception and provide me with working VI's (based on the one I have attached) so that I can show something to the press! (Free comercial for NI!! Since the student version shows the National Instruments water-mark on all VI's!!! Possible TV time!!)
    Thanks!
    PS: even if you are to late (after 25) post anyway!
    Why:
    -I can learn from it
    -the launch might be delayed due to weather conditions
    -others might find it amusing!
    Thanks again!
    Attachments:
    BexusII_groundstation.vi ‏46 KB

    I have a valid example data file attached to this thread.
    If you open BEXTEST.bin in a hex-editor of your choice, you'll see the BEXUS as 42 45 58 55 53 and then the time as 00 28 09 etc.
    I couldn't get Joe Guo's VI to work. It doesn't count packages correctly, and the time is not displayed correctly either.
    The file was saved using a straight save to file VI.
    The data is from actual launching area tests performed a few mintues ago. The time displayed is "On time" e.g. how long the gondola has been powered up.
    I have a spare T-junction, so I can hook into the balloon real-time data as we fly, in case anyone care to see if they can figure out why the latest version of Joe Guo's program is not displaying correctly.
    I will monitor this
    thread during and after flight to see if anyone can make it in time!
    Thanks for the great effort!!
    Attachments:
    bextest.bin ‏53 KB

  • Read Text file and count occurences of certain string

    Hello,
    I have a text file with lines of data in it. I would like to read this text file and count how many lines match a certain string of text. 
    For example my text file has this data in it.
    dog,blue,big
    dog,red,small
    dog,blue,big
    cat,blue,big
    If the certain string of text is "dog,blue,big" then the count would return "2".
    Thanks for your help

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
    In addition, if you are working with Windows Forms app. please consult on Windows Forms Forum:http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    If you are working with WPF app, please consult on WPF forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
    If you are working with ASP.NET Web Application, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Visual Studio Language Forums:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=vslanguages
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Count occurences of subsring in string

    I am using cfhttp to return an hmtl table. I would like to
    "count' the number of "<tr>" tags in the cfhttp.filecontent
    variable I do not nessarily want to loop over it... is there a way
    to do this?

    If your <tr> has white space on each side, you could
    use the ListValueCountNoCase( ) function (
    http://livedocs.macromedia.com/coldfusion/5.0/CFML_Reference/Functions155.htm#1108281)
    Use a space as the list delimiter.

  • Arrays - counting occurence

    Hello everyone :)
    A practical at college is requiring me to create a program that simulates throwing 3 dice a total of 5000 times and for it to tally the number of times that all possible answers have occurred. For example, with 3 dice the lowest you can get is 3 (three 1's) and highest, 18 (three 6's). Roll the three dice, see which of the 16 different outcomes (3-18) you have, and add 1 to the total number of occurrences that outcome has produced. After 5000 throws, I will need to see which outcome happened most often. I've been told I must use an array for counting the occurrences and it's the array part which is confusing me.
    Implementing the 3 dice and a method that simulates them being thrown was easy but I just do not have a clue how to:
    1) get it to be done 5000 times and
    2) the outcomes be tallied
    Heres the code I have so far..
    import java.lang.Math;
    public class ThreeDice
        public static int throwDie()
                double x = Math.random();
                double x2 = Math.random();
                double x3 = Math.random();
                x = (x * 6.0) + 1.0;
                x2 = (x2 * 6.0) +1.0;
                x3 = (x3 * 6.0) +1.0;
                int dice1 = (int)Math.floor(x);
                int dice2 = (int)Math.floor(x2);
                int dice3 = (int)Math.floor(x3);
                return dice1 + dice2 + dice3;
        public static void main(String args[])
        }the throwDie method has to be used in main method but I'm stuck as for what to do next I'm afraid.

    Hello Looce and thank you for the welcome,
    Using my (very limited) knowledge I've managed to get the first part done (roll the 3 dice 5000 times) and for now I've just set it to print all 5000 results and alas it indeed prints 5000 results.
    The second part though I'm still stuck on, I was hoping google would be my savior but sadly not this time.
    I should have probably said in my first post that I'm a complete beginner for Java but with it being used both this year and next year for college, I hope to be fairly skilled in the use of it one day :)
    An update of the code:
    import java.lang.Math;
    public class ThreeDice
        public static int throwDie()
                double x = Math.random();
                double x2 = Math.random();
                double x3 = Math.random();
                x = (x * 6.0) + 1.0;
                x2 = (x2 * 6.0) +1.0;
                x3 = (x3 * 6.0) +1.0;
                int dice1 = (int)Math.floor(x);
                int dice2 = (int)Math.floor(x2);
                int dice3 = (int)Math.floor(x3);
                return dice1 + dice2 + dice3;
        public static void main(String args[])
                for(int i=0; i<5000; i++){
                    System.out.println(throwDie());
        }

  • Count Occurences within in an Array

    Hi,
    I have an array with numbers, I want to count how often the number 5 is stored in it, does anyone know the syntax?
    thanks,
    Rich

    Hi Jason,
    Sorry, I think I am mising something really basic here,
    I have an Array created in a subreport declared:
    shared numbervar array RespondentArray1;
    there is then various code which poulates it depending on which IF conditions are met as it cycles through the records.
    In my main report I want to count the occurneces of say the number 5.  But I was expecting to drop the array name only (RespondentArray1) into where you have {@Array}.  But I get an error if I do that. The formula where the array is declared and populates is in a subreport.
    Can you please advise of what I should be replacing in your code?
    My looping would work, but I dont think it is very efficient especially as I have lots of counts to do on various numbers,
    thanks,
    Richard.

  • Counting Occurences over multiple columns

    I have searched the forums and found how to calculate the number of occurrences of a word in a single column.
    I am working on a sales project and I need to calculate the number of occurrences for a specific sales agent in multiple columns. Then a total of the sales next to the occurrences
    Column 1 will be the sales agent for a home buyer.
    Column 2 will be the sales agent for a home seller.
    I need to find out how many times a specific agent represents both buyers and sellers.
    Then I need a total of all the sales for each of the agents.
    I have very large tables with multiple categories for each sale.
    Yvan you seem to be the guru.
    Please help.
    All the best,
    Will

    Will,
    Jerry has given you a good solution in general terms but there are some ambiguities in your question.
    For example, your question suggests there is transaction amount column, as one might expect, but did not specify if these amounts are listed in separate buyer/seller columns. The solution below assumes they are in a single column.
    An auxiliary column (hidden) was added to the Data Table to determine whether or not an agent represented both buyer and seller. The agent's name appears in this column if he/she did, and the formula is:
    =IF(OR(Sell Agt="",Buy Agt=""),"",Sell Agt)
    The Summary table raises the question of whether the agent's amount is doubled when he/she represents both buyer and seller. Here again, an assumption was made, namely, that it does not. If this is incorrect, the last segment (after the "-" sign) of the formula below can be dropped:
    =IF(A="","",SUMIF(Sales Data :: Sell Agt, A, Sales Data :: Trans Amt)+SUMIF(Sales Data :: Buy Agt, A, Sales Data :: Trans Amt)-SUMIF(Sales Data :: 'Buyer & Seller Rep', A, Sales Data :: Trans Amt))
    And finally, the number of times an agent represented both buyer and seller:
    =IF(COUNTIF(Sales Data :: 'Buyer & Seller Rep', A)=0,"",COUNTIF(Sales Data :: 'Buyer & Seller Rep', A))
    I hope this represents your situation and that it answers your questions.
    pw

  • Count occurence of words in string

    hi guys. i need some help.
    my problem is. i have a string, and want to know how many times each word appears in it, and print out only the word that appear more than 2 times.
    has any one an idea of how this is possible?

    There are many solutions, but here is the outline of one possible method.
    1) Split your string in words with the StringTokenizer class
    2) Create a HashMap
    3) look up your word in the hash map
    4a) If the word is not in the hashmap, create a new entry in the HashMap, where the key is your word from the original string, and the Value is (new Integer(1))
    4b) if the word is already in the hashmap, get the value from the hashmap, add one to it, then put the new Integer value in the hashmap
    5) for each value in the hashmap, print out the key , if the value is an Integer > 1
    With any luck, that will help you

  • I receive error when I try to insert Image to Oracle Database v.9i

    My Error is :
    java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], []
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
    at oracle.jdbc.ttc7TTC7Protocol.fetch(TTC7Protocol.java:797)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1608)
    at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement..java:1758)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1805)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:410)
    and my code is:
    URL url = null;
         InputStream in = null;
         Statement stmt = null;
         OutputStream out = null;
         try {
         url = new URL("file://D:/MyJava~1/classes/javalogo.gif");
              in = url.openStream();
              stmt = con.createStatement();
              // Create the table
              stmt.execute ("create table ImageTable (count varchar2(20), image BLOB)");
              System.out.println("Table created ...");
              // create a blob entry in the table
              stmt.execute("insert into ImageTable values ('two', empty_blob())");
              stmt.execute("commit");
              String cmd = "select image from ImageTable for update";
    /* error this command/*
              ResultSet rset = stmt.executeQuery(cmd);
              System.out.println("Success execute command.");
              while (rset.next()) {
                   //get the Blob locator
                   blob = ((OracleResultSet)rset).getBLOB(1);
                   System.out.println("Get the BLOB locator");
              //get ready to accept binary file
              out = blob.getBinaryOutputStream();
              int chunk = blob.getChunkSize();
              System.out.print("The chunk size is " + chunk);
              byte buffer[]= new byte[chunk];
              int length;
              while ((length = in.read(buffer)) != -1) {
                   out.write(buffer, 0, length); //image file saved.
              con.close();
              out.close();
              stmt.close();
    thank you for your kind
         

    You should try using PreparedStatement instead of Statement while inserting the image - one of the methods like setBytes(. .), setBlob() or setBinaryStatement() of the PreparedStatement should do the trick..
    The setBytes( ) is inefficient in terms of memory -esp for large images -better is to use setBinaryStream( ).
    Shantanu

  • Using Javascript to rotate images with the style.backgroundImage property & I leave the onload pg & return, the images have trouble loading.

    I'm using Javascript to rotate background images -->
    function rotateImages() {
    setInterval("startRotator()", 7000);
    var counter = 0;
    function startRotator() {
    var images = ["images/finance1.jpg","images/finance2.jpg","images/finance3.jpg","images/finance4.jpg","images/finance5.jpg","images/finance6.jpg"];
    if( counter >= images.length ) {
    counter = 0;
    var image = "url('" + images[counter] + "')";
    counter++;
    document.body.style.backgroundImage=image;
    The script is triggered by the load event when the homepage loads and the script only runs on the homepage. Everything works fine upon opening the homepage.
    If I leave the home page and return, the images will have trouble loading for about 3 to 5 cycles and I'll get white backgrounds for part of the time. The same thing happens if I enter the site from a page other than the homepage and then go to the homepage.
    I discovered, however, that if I enter the site at the homepage and then leave the homepage and return using the back button, everything runs fine. Apparently it then accesses a cached version of the homepage? Seems having two cached versions creates a conflict?
    This problem only happens with Firefox (I have ver 29.0.1). It does not happen on IE ver 11, Chrome ver 34, or Safari ver 5.1.7.
    I get the same problem with XP, Win7, and Win8 but, only on Firefox.
    Can you please fix this?

    Hey, I am trying to reproduce this here: [http://jsfiddle.net/u3TLb/]
    Mozillazine forums and the [http://webcompat.com] are more specialized in Web Compatibility, please ask there as well.

Maybe you are looking for

  • How to print title in WAD report

    Hi, I need to be able to print the title of a WAD report. I need this to be exported with specific font and color. I tried using the text box but, in text, I cannot give any font or size to the text. I am using the "Header" and giving the text of the

  • How do I restore just Apple Mail (and all its folders & settings) with TM?

    Hi folks, I was trying to set up an e-mail client on a PC, clicked and unclicked my gmail pop & imap on and off, and when I got home to my Apple MacBook, I had inadvertently reloaded (twice!) every e-mail that I've ever gotten in g-mail to Apple Mail

  • Object Links for HR Person PA10

    Hi DMS Experts I want to link DMS Document to a Person in HR via PA10 where we can see data of Person in HR. Also I need help in linking new object to DMS.If these object are not in standard Object link configuration in Define Docuemnt Types. I have

  • BAPI function modules for F-30(Post with clearing)

    Hello, Is there any BAPI FM that can be used for F-30? I am trying to program a BDC for this transaction.  But it turns out very difficult since there are a few radio buttons and also it's hard to determine the line number of an open invoice. Thanks,

  • How to authorize computer and kobe ereader

    How do i authorize my computer and kobe ereader?