How to determine whether one depth pixel belong to one user?

Like PlayerIndex for 0 to 7 in SDKv1,while in SDKv2 how to judge one pixel belong to users or background?
Thanks!

Now you have BodyIndex frame source.
Have a look at the Body Index Basics sample in the SDK browser to learn how it works.

Similar Messages

  • How to determine whether a recordset is Empty or not ?

    Please see my snippet code below :
    <%     
         String sql="";
         String username="CDS";
         try
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                Connection con = DriverManager.getConnection("jdbc:odbc:Employees","","");
                Statement stmt = con.createStatement();
                ResultSet rs=null;
                   sql = "Select * from Employee where code='" + username + "'";
                   rs = stmt.executeQuery(sql);
                   rs.next();
                   if (rs==null)
                   %>
                        <jsp:forward page="Login.jsp?msg=Username not recognized"></jsp:forward>     
                   <%     
                else
                   %>
                        <jsp:forward page="Login.jsp?msg=Halo"></jsp:forward>
                   <%
              catch(ClassNotFoundException e)
                   out.println("Driver not found");
                    catch(SQLException e2)
                            out.println(e2.getMessage());
                            out.println("<BR>");
                            out.println("Wrong SQL Statement");
                            out.println("<BR>");
                            out.println(sql);
                            out.println("<BR>");
         %>How to determine whether a recordset has no result ?
    From the above code, i use if (rs==null) and that's not worked.
    Help me, guys.

    ResultSet rs = stmt.executeQuery(sql);
    if (rs.next()) {
    %>
        <jsp:forward page="Login.jsp?msg=Halo"/>
    <%
    } else {
    %>
        <jsp:forward page="Login.jsp?msg=Username not > recognized"/>
    <%
    }

  • How to tell whether one driver(say driver A) is in the same driver stack with another driver(say driver B)?

    I'm new to WDF, so the questions below might be trial. However, I cannot find the answers in MSDN or text book(e.g. Developing Drivers with the Microsoft Windows Driver Foundation)
    The questions below only apply to KMDF on Windows Phone.
    1. Can I say that one *.sys file is one driver?
    2. How to tell whether one driver(say driver A) is in the same driver stack with another driver(say driver B)?
    3. If several *.sys files are included in one *.inf file, can I say that those drivers are in the same driver stack?

    Drivers are not in a stack, the devices created from the driver are.  Consider having two identical pieces of hardware in a single computer, each will have a device object which will come from the same driver, but each device object will be in
    its own stack.  Things can get even more complex since a filter driver can create more than one device object in a single stack. 
    Just as a single driver can create devices that are in different stacks, your question on multiple drivers in an INF has the same answer, there is nothing that says they will be in the same stack.
    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com

  • How to determine whether process Chain is active or Not

    Hello Experts,
    How to determine whether process Chain is active or Not, because i have large number of PC to activate.

    Hi,
    Please check this program in SE38---- /SSA/BWT
    This program will give you information regarding all your process chains which are active and running based on there timings.
    Hope it helps.
    Regards,
    AL

  • How to determine the number of pixels of a desired object within a digital photograph?

    Hi everyone. I want to determine the number of pixels in an object that is part of a digital photo. I use cameras to film chunks of ice breaking away from ice cliffs or tidewater glaciers. I want to know the size of the ice chunk that my digital photographs capture. I know the width and height of the ice cliff in metres already, so I was thinking that I could convert the equivalent of 1 pixel : ? metres - this is really what I want to do. That way every time I see a chunk of ice breaking off, I can pull up the photo, outline the chunk, calculate how many pixels fill the area of ice removed by the chunk breaking off and convert to metres area 2 - thus giving me my size order. If anyone has ideas on how to do this I would really appreciate it, thanks so much community. I was thinking that Photoshop or Fireworks could help me with this, Ricky

    Thanks gener7 and normfb.
    The Photoshop help measurement page is brilliant and I think I can use the info on that page to work out my iceberg sizes. Check out the attached photo - you are looking at an ice cliff - essentially the front of a tidewater glacier that flows in the ocean. I'm a research student and I look at the process of iceberg calving - this is the term we use to define the sudden breaking away or detachment of ice chunks from glaciers that end in the sea.
    I used the lasso tool to crop the area of ice lost as a single chunk of ice detached from the ice cliff. At the same time I had the histogram window open. The histogram showed me how many pixels were contained in the cropped area. What I need to do now is work out what 1 pixel is equivalent to in metres. Soon I will have a digital elevation model for the ice cliff that will offer centimetre to metre scale resolution of the surface topography - so that should really help. The photographs I have are taken every 30 seconds - which is brilliant for documenting how the geometry of the ice cliff adjusts in response to detaching ice pieces and also because the ice is moving. I am a research student in Canada, and at the time I took the photos we measured that the ice cliff was advancing at a rate of approximately 12 metres per day! That's pretty fast. The flow of the ice is a first order control on the rate of iceberg production - you are essentially pushing ice into the ocean where it breaks off. I'm having to learn everything Photoshop from scratch...so please bare with me because maybe some of the photoshop questions I ask are simple to most!
    I noticed the "integrated density" function on the help sheet you suggested. This function also provides the square number of pixels contained in the cropped area I select...I guess this is similar to the histogram right?
    Either way - i just need the scale conversion to go from 1 pixel : metres or cm equivalent. At that point I think I will have to manually select every single iceberg event from my time-lapse photos and do this the manual way!  I have about 800 events to manually digitise and calculate the area for...
    Thanks everyone, Ricky

  • How to Determine Whether Columns Exist in a Table

    Greetings,
    Because of customizations to our product, certain database table structures vary between different client installations. Hence, in the code, I need to determine whether two columns exist in a certain table, in order to apply some business logic.
    Please suggest a way for me to determine whether two named columns appear in a specific table. In other words, for example, I need to discover whether both columns SAL_GRADE and BONUS appear in the EMP table, or not. Only if both columns are defined, can I apply my business logic.
    Thanks,
    Avi.

    Avi,
    Like this ?
    SQL> declare
      2    l_count number;
      3  begin
      4    select count(*)
      5      into l_count
      6      from user_tab_columns
      7     where table_name = 'EMP'
      8       and column_name in ('SALGRADE','BONUS')
      9    ;
    10    if l_count = 2
    11    then
    12      dbms_output.put_line('Both columns exist, so apply business logic');
    13    else
    14      dbms_output.put_line('One or both columns are missing, so don''t apply business logic');
    15    end if;
    16  end;
    17  /
    One or both columns are missing, so don't apply business logic
    PL/SQL-procedure is geslaagd.Regards,
    Rob.

  • How to determine whether a file doesn't exist or doesn't have enough perms

    Hello everone,
    I am stuck in determining whether a file does not exist or does not have enough permissions so that access to this file is denied?". I am using
    java.io.File.exists() or java.io.File.canRead() methods to check this but both of them just return false in both above mentioned cases.
              In the documentation however its mentioned that these method throw SecurityException - If a security manager exists and its SecurityManager.checkRead(java.lang.String) method denies read access to the file. But then problem is to write a security manager which denies
    read access if the file does not have permissions so that exception can the thrown.
    Any suggestions or pointers will be highly appreciated.
    Thank You.
    Regards,
    Vikash Kumar

    Some platforms will let you rename or remove an open
    file.Unless those platforms support file locking, and the file has a lock on it.

  • How to know whether entered date is SAPdate format or User dateformat.

    Hi all,
    I am uploading data from SAP to internal table  ,
    here I need to do below logic ,
    If user entered SAP dateformat in excel , no  need to convert after uploading.
    elseIf user entered user default need to convert to SAP date format.
    If user entered in other foramt.
    need to give error.
    so , how to know whether entered data is in SAP format or not.
    Regards,
    vinesh

    Try this logic
    IF call fm DATE_CHECK_PLAUSIBILITY = true
       "date etered in SAP internal format
    ELSE if call fm CONVERT_DATE_TO_INTERNAL = true
       "date entered in user format
    else.
      "incorrect format
    endif.
    Regards
    Marcin

  • How to determine the size (in pixels) of the current mode

    Hello.
    I am looking for a was to determine the size (horizontal and vertical pixels) of the current mode (SAPGUI window). I have already looked through the methods provided by class CL_GUI_CFW...
    CL_GUI_CFW=>GET_METRIC_FACTORS provides the size of you display (i.e. 1600 x 1200 pixels) and some other information I am not able to interprete.
    Futhermore I have had a look at the Methods CL_GUI_CFW=>COMPUTEPIXEL, but I don´t know how to use them.
    Has anybody of you any experiences in this topic? I would be grateful ...
    MIKE

    Sorry Manoj,
    but i didn´t find out, why these programs should be able to solve my issue. They just display a picture using the CL_GUI_PICTURE control.
    I am looking fo a way to resize a given control to the very maximum, so that it fills the whole SAPGUI window!
    Thanks anyway...
    MIKE

  • SharePoint Databases - How to determine which ones are being used and which ones aren't

    I am not sure where to exactly post this question.  On the SQL Server side or on a SharePoint side.
    I am a SQL Server Database Administrator who is monitoring some SharePoint databases.  On a daily basis it seems that they are creating new databases but don't delete the databases that they are no longer using.  For example, they might be testing
    on a development server and if things aren't working properly instead of asking that the databases be deleted they just go ahead and create new databases to do what ever they need to do.  Is there a way on the SQL Server side to determine which SharePoint
    databases are being used and which ones aren't being used?  Or does one determine this information through the SharePoint Central Administration console?
    lcerni

    Hello,
    The following query gives you the databases now in use.
    SELECT
    DISTINCT d.name
    FROM
    sys.dm_tran_locks
    tl INNER
    JOIN sys.databases
    d
    ON
    tl.resource_database_id
    = d.database_id
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to determine whether a resource is online in a cluster from a script

    Hello All,
    Environment:
    Solaris 9
    SC3.1/U4 and SC3.2
    RG name:
    dw-rg
    Resources:
    dw-vip - Logical hostname RS
    dw-stor - HA storage RS
    dw-ora - HA Oracle RS
    dw-lis - HA Oracle listiner RS
    Hostnames:
    dwn1
    dwn2
    We have a situation where we are trying to backup an oracle DB's on our clusters. We are performing both hot and cold backups. During a cold backup, we take the database completely down and the other where we put the DB into hot backup mode.
    In the coldbackup case, we simply take the oracle RS offline and in the hotbackup case, the oracle RS in still online. The scripts are ran from cron on each cluster node.
    In the coldbackup case, As a consistency/error check I would like to first check the status of the oracle rs and see if it is online somewhere in the cluster.
    in the hot backup case, I need to run the script from the cluster node that RG/RS is running on.
    Since I am checking status and return codes, I don't want to use scstat and grep to get this information if I can avoid it, but, I would either write a C program or script to do this.
    Any ideas or sugguestions would be greatly appreciated
    Thanks in advance
    George

    You can use the Sun Cluster library functions, have a look at the manpage for scha_calls(3ha).
    In your specific case you could have a cronjob running on each node. The first thing it would do is to check if the resource you are interested is online on the node, like
    RS_STATUS=`/usr/cluster/bin/scha_resource_get -G dw-rg -R dw-ora -O RESOURCE_STATE`
    if [ "$RS_STATUS" != ONLINE ] ; then
            exit 0
    else
            <do what you need to do>
    fiGreets
    Thorsten

  • How do I merge one user ID with another on my mac

    I set up my Mac prior to migrating from my PC and this created one log-in for me. When I migrated info from my PC, another log in was created. How do I merge the two, so all information is in one place? Thank you!

    Open the Users folder on the internal drive and drag one account's home folder to the other's desktop.
    (92088)

  • How to determine if Opportunity was deleted manually by the user?

    An opportunity can be deleted by 2 ways.
    1) Manually by a user by clicking on the delete button
    2) Deleted by a process via web services.
    I have a workflow set up for delete and it will create an integration event whenever you delete an opportunity. But I only want this workflow to run under #1 condition above.
    Is there a way to determine that?
    Thanks

    Hi,
    please find below the channel list together with a short description. This list is also available in the online help.
    Import
    This channel string excludes updates performed through the import functionality and through Oracle Data Loader On Demand.
    Online
    This channel string excludes updates performed by user interactions through browser windows.
    Mass Update
    This channel string excludes updates performed through the Mass Update option on list pages.
    Record Merge
    This channel string excludes updates performed by record merges.
    Offline
    This channel string excludes updates from Oracle Offline On Demand.
    Web Services
    This channel string excludes updates from Web services.
    Office
    This channel string excludes updates from Oracle CRM On Demand Integration for Office.
    OEI
    This channel string excludes updates from Oracle Outlook Email Integration On Demand and Oracle Notes Email Integration On Demand.

  • How many Computers can one 'User' add the CC software on using Creative Cloud for Teams?

    Would every computer be deemed a new user and therefore cost extra?
    My reason is that I have a main desktop and we also use a laptop for going to client meetings. I know that with an individual user you can have a license for two computers, does it still work like this?
    Cheers
    Jack

    Cloud License allows 2 activations http://www.adobe.com/legal/licenses-terms.html
    -Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0
    -Windows or Mac does not matter... 2 on the same operating system, or 1 on each
    Team license links that may help
    -http://www.adobe.com/creativecloud/buy/business.html
    -manage your team account http://forums.adobe.com/thread/1460939?tstart=0
    -Team Installer http://forums.adobe.com/thread/1363686?tstart=0

  • How to Determine Text File Encoding is UNICODE

    Hi Gurus,
    How to determine whether the file is a UNICODE format or not?
    I have the file stored as a BLOB column in a table
    Thanks,
    Sombit

    That's a rather hard problem. You would, realistically, either have to make a bunch of simplifying assumptions based on the data or you would want to buy a commercial tool that does character set detection.
    There are a number of different ways to encode Unicode (UTF-8, UTF-16, UTF-32, USC-2, etc.) and a number of different versions of the Unicode standard. UTF-8 is one of the more common ways to encode Unicode. But it is popular precisely because the first 127 characters (which is the majority of what you'd find in English text) are encoded identically to 7-bit ASCII. Depending on the size and contents of the document, it may not be possible to determine whether the data is encoded in 7-bit ASCII, UTF-8, or one of the various single-byte character sets that are built off of 7-bit ASCII (ISO 8859-15, Windows-1252, ISO 8859-1, etc).
    Depending on how many different character sets you are trying to distinguish between, you'd have to look for binary values that are valid in one character set and not in another.
    Justin

Maybe you are looking for

  • Open and Save dialogue boxes are useless

    I have recently moved from Windows to Mac after being told I would never look back and I am already 'looking back' somewhat in terms of the OS. I work with photos and graphics and I'm on the move a lot so went for a Mac Book Pro Retina with SSD and I

  • BADI or user exit to enter a countable document

    hello i need a BADI or user exit to enter a countable document regards Dayana

  • 10.6.7 update error

    Cannot update my iMac from OS X 10.6.6 to 10.6.7. When I try to update I get an a message "Installation Failed". I want  to upgrade to 10.6.8, but to do so I need to first upgrade to 10.6.7

  • Oracle 10gR2 & 9iR2 on Red Hat AS 4.0

    Does anyone have any info on when 10gR2 will be released for Red Hat AS 4.0 on Itanium??? Will 9iR2 ever be released for the same platform???? I know 10gR1 is available on RH AS 4.0 but I really want to go with R2 and I know that 9iR2 is avail for RH

  • Event/Listeners help

    I have a frame titled personal profile where the user enters name(text field), address (text area), degree(radio button), and skills(check boxes). Then they click 'create profile' button. Once they do that a 2nd frame opens up and is suppose to displ