Several pixel value in one iteration

Hi,
I am still very new to labview and I have a timing problem with a while loop.
I am attaching the VI so that it is easier to understand.
Basically, I read X and Y voltages (with a PCI card) that correspond to a position in an image (that I load). I then convert those positions into a pixel positions and extract the pixel values in the image .
I then use those pixel values to write on an analogue output.
My Problem is the following:
The "Get Pixel Value .vi"  only works Pixel by Pixel meaning that I can only write 1 value every while loop iteration. This is to slow considering that I need to write at least one sample every one/two microseconds and that the while loop is slower than that (at least I think?...)
How can I transform this vi so that the while loop converts at least 100 position into 100 pixel values so that I can write at least 100 values in one while loop iteration?
Thank you very much for your help,
Best ,
Renaud

Thanks a lot for those quick replies !
Image to array is a good solution but I found a work around with a while loop.
I understand that I won't have microsecond loops without a FPGA but I should be able to read/write around 1000 samples every loop iteration, correct? Otherwise what is the purpose of a DAQ bord type PXI or PCI to have a sampling frequency of 1 to 2 or even 5 MHz??
In the attached code however I can't seem to read more then 10 sample every 1 milisecond meaning a sampling rate of 1 sample every 100 microsecond... How can I improve the code? 
Many thanks,
Best,
Renaud
 

Similar Messages

  • Displaying a picture from an array of pixel values

    I have a picture I want to display in an AWT frame. The picture is stored as several arrays of pixel values which represent rectangles.
    Each rectangle has a start co-ordinate and a height and width.
    There is a ColorModel associated with the pixel values, so that's not a problem.
    What's the best way to display these rectangles as pixels, and patch them all together to make the full picture? I'm currently trying to use a MemoryImageSource, but I'm having trouble displaying more than one rectangle at once, and the picture flickers like mad, suggesting MemoryImageSource intended for animation, whereas I just want to display the picture once.
    Any suggestions?

    OK, that looks good. I'm investigating it.
    However, It's not clear how to get the pixel values from an array into it. It requires a WriteableRaster of the pixel data, and to create a WriteableRaster, you need a DataBuffer... which is Abstract!
    Do you know how to make a DataBuffer from an array?

  • Retrieving multiple values from one column in SELECT statement

    Hi,
    I have a slight dilemma in that I'm trying to pull down all the values from a column from a select statement that includes some JOINS in it.
    If I run the query at the SQL Plus prompt, it pulls back all the values/rows.
    When I run the select (and prepared ) statement in my JSP, it only pulls back one of the 4 values I'm trying to retrieve.
    e.g.
    at the DB level :
    SELECT role_name, CC_ID FROM votetbl a
    INNER JOIN APPROVERS b ON
    a.BUSVP = b.BUSVP AND
    a.BRANCH = b.BRANCH
    WHERE CC_ID = 1688this will return:
    ROLE_NAME CC_ID
    ops 1688
    ops 1688
    comply 1688
    legal 1688
    comply 1688
    When run in my JSP, like so:
    String primID3a = request.getParameter("primID");
    Statement stmtovoter = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    String prepvotSQL = "SELECT role_name, CC_ID FROM votetbl a INNER JOIN APPROVERS b ON a.BUSVP = b.BUSVP AND " +
                         "a.BRANCH = b.BRANCH WHERE CC_ID = ?";
    PreparedStatement prepvotstmt = connection.prepareStatement(prepvotSQL);
    prepvotstmt.setString(1, primID3a);
    ResultSet rest3 = prepvotstmt.executeQuery();
    rest3.next();
    String votecat = rest3.getString(1);
    out.println("Vote category: "+votecat);I only get ops returned.
    Do I need to run an enumerator? Or reqest.getParameterValues or use a while statement around the results set?
    Any feedback and direction here is welcomed!
    Thanks!

    Actually, I tried looping and still only get 1, but returned several times.
    i.e.
    PreparedStatement prepvotstmt = connection.prepareStatement(prepvotSQL);
    prepvotstmt.setString(1, primID3a);
    ResultSet rest3 = prepvotstmt.executeQuery();
    rest3.next();
    String votecat = rest3.getString(1);
    while (rest3.next()) {
    out.print("category roles "+votecat);
    }then I get returned the following:
    admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admincategory roles admin
    like so.
    Where as at the DB level I get
    ROLE_NAME CC_ID
    admin 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    ops 1688
    risk 1688
    comply 1688
    legal 1688
    legal 1688
    ops 1688
    comply 1688
    Maybe the while should go around the getString(1) designation? But I was thinking I'd tried that and gotten invalid cursor error
    Something is definitely amiss, between the prepared statement in the servlet and the SELECT statement at the DB level.
    I can totally hardcode the statement in the servlet or JSP and it will return one value potentially several times, but only one.
    Other times, it will not return a value at all, even though one resides in the db.
    Yet go to the DB/SQL Plus prompt and it returns perfectly. I can simply copy and paste the SELECT statement from the out.print line I made and it works like a champ in SQL Plus. Any ideas why the same exact thing cannot return the proper values within the servlet/JSP?
    Yeeeeeeesh!!! : (
    Message was edited by:
    bpropes20

  • How to use bind variable value of one VO as initial value for other VO row?

    JDeveloper 10.1.3.3, ADF Faces, ADF BC
    Hi,
    I have two View Objects: one read only with several bound variables and another editable entity based. Correspondingly there are two ADF Faces pages: first contains search form based on the read-only VO and second create form based on the editable VO. The search form has several hidden fields for some of bound variables because they aren't edited directly by user. These fields are updated with PPR when user selects other search criteria from LOV.
    There is a command button in the first page that navigates to the second form. Is there any way to transfer values of bound variables from the first VO to the second VO as initial values of the new row?
    I tried to set custom controller for the second page and retrieve search criteria values from request parameter map but values from hidden fields are missing. I think because that these fields are updated by PPR. Of course I can add custom action method to the navigation button and in the method put these values to request parameter map but I hope there is better solution.
    Thanks,
    Marius

    To summarize, given a bind variable value for one VO, on creating a row in a second VO, for 1 of the attributes of the second VO, you want to use the first VO's bind variable value. Correct?
    A potential solution ADF BC driven:
    1) Ensure you have an AppModuleImpl for your AM
    2) Ensure you have a ViewImpl for your 1st VO (where the bind variable will exist) - lets refer to that VO as "Alpha"
    3) Ensure you have a ViewRowImpl for your 2nd VO (the one you want to default the value in) - lets refer to that VO as "Beta"
    4) For your first VO "Alpha" create the bind variable (say pValue)
    5) In your second VO "Beta" ViewRomImpl add following code:
    @Override
    protected void create(AttributeList attributeList) {
      super.create(attributeList);
      AppModuleImpl am = (AppModuleImpl)this.getApplicationModule();
      String someValue = am.getAlphaView1().getpValue();
      setSecondVOAttr(someValue); // change this code to whatever your setter is for the field you want to initialize.
    }Hope this helps. Let us know how you go.
    Regards,
    CM.

  • Resizing PNG with Pixel values; Save as artboard name and pixel value

    Hello,
    first off, I have never written a Javascript before and I am attempting to.  I have been reading like mad to wrap my head around the Extendscript Toolkit (ESTK) in CS6.  I see the awesome potential but I am concerned my idea may not be completely possible.  That's why I thought I would ask the experts here.
    I have a client who needs cursors and icons for apps that are saved out in multiple, transparent PNG sizes and the output filename needs to reflect that name. So for example, I have 2 square artboards, one contains a red car, the other contains the same car but in green, and I want to save both of those as 96x96 pixels, 72 x72 pixels, 48x48, 36x36, and 24x24 (5 different sizes).  I would like the naming scheme to be taken from the artboard name (car_red, car_green) and the pixel value of each size, so the final name would be "car_red_0096x96.png", "car_red_0072x72.png", etc., etc.
    The first thing I noticed is that there seems to be no SaveforWeb object in the ESTK.  I discovered ExportOptionsPNG24 which is nice, but it seems to only give a sizing property based on percent (horizontalScale, or verticalScale).  I would like to use the script to make any size artboard the exact pixel dimensions I need, and the percentage scaling property will not allow this, so is there a way to enter in pixel values and not percentage scale values?
    This of course leads me to my next question: I was hoping to get the script to, at the press of a button, export the selected artboard to all 5 sizes, with a naming scheme that uses the artbaord name as a prefix and the pixel size as the suffix.  I was hoping to use the pixel value in the code to apply to the suffix
    Is any of this possible?
    Gratefully,
    Dave

    I ran a basic test and this should be close enough for you to tweek… Square artboards are assumed by this snippet… A few comments Inc. to help you…
    #target illustrator
    artboardsToPNGs();
    function artboardsToPNGs() {
              if ( parseFloat( app.version ) < 15 ) { return; } // Its CS4 or above ( has artboards )
              if ( app.documents.length == 0 ) { return; } // No docs so end script
              app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
              var i, j, sizes, png24Opts, doc, dF, artBds, abName, scale, pngFile; // Script variables
              sizes = Array( 96, 72, 48, 36, 24 );
              png24Opts = new ExportOptionsPNG24(); // Options object
              png24Opts.matte = false; // Set the properties
              png24Opts.transparency = true;
              png24Opts.antiAliasing = true;
              png24Opts.artBoardClipping = true;
              png24Opts.saveAsHTML = false;
              doc = app.activeDocument;
              dF = Folder( Folder.desktop + "/AI Artboard PNG's" ); // A folder to save in
              if ( !dF.exists ) dF.create(); // Make folder to save in
              artBds = doc.artboards;
              for ( i = 0; i < artBds.length; i++ ) { // Loop the artboards collection
                        doc.artboards.setActiveArtboardIndex( i ); // Make artboard active one
                        abName = artBds[i].name; // Get name
                        for ( j = 0; j < sizes.length; j++ ) { // Loop the sizes Array
                                  scale = ( sizes[j] / ( artBds[i].artboardRect[2] - artBds[i].artboardRect[0] ) ) * 100; // Use width assumed square
                                  pngFile = File( dF.fsName + '/' + abName + '_00' + sizes[j] + 'x' + sizes[j] + '.png' ); // Concat a name string
                                  png24Opts.horizontalScale = png24Opts.verticalScale = scale; // Set the scales
                                  doc.exportFile( pngFile, ExportType.PNG24 ,png24Opts );
              app.userInteractionLevel = UserInteractionLevel.DISPLAYALERTS;
              alert( 'All done…' );

  • Develop Module RGB Pixel values: 0-100% or 0-255.  Let the user choose.

    I know that folks differ on whether they prefer to see RGB pixel values represented as integers in the range of 0-255 or floating point numbers between 0 and 100%.  Is there a way that the user can choose which one he/she wants (perhaps in the preferences)?  0-255 makes no sense for images which are >24 bit depth or in other color spaces.  It would be nice to have the "luddite option" (0-255) and the "future proof" option (0-100% or whatever range makes sense given the color space).  :-)

    rI load a raw image of Macbeth colorchecker. I look at the RGB percentages for one of the patches. What are they percentages of? I cycle though the colorsapces with Edit/Preferences/External Editing and nothing changes. The RGB precentages remain the same. They are not dependent on the "external editing" colorspace.
    As you discovered, the "external editing" preference is not used inside Lightroom. It sets the color space of the file that gets generated when you do an "edit in Photoshop". Lightroom uses a unique colorspace that has prophotoRGB primaries. Internally all math is done in a linear gamma version of prophotoRGB called MelissaRGB inside Adobe. The values reported under the histogram are based on melissaRGB but modified by the sRGB tone curve. There is nothing equivalent to it in any other piece of software, so you simply cannot compare Lightroom values to values in any other peice of software, regardless of the color space. Andrew wrote a nice overview on this many years ago: http://www.ppmag.com/reviews/200701_rodneycm.pdf 
    I go to Soft Proofing and the RGB values change to numeric. I cycle through some output profiles and the RGB values change, as I would expect. But when I turn soft proofing off, the RGB precentage values return and are the same. They do not depend on the Soft Proof profile. And in soft proof I only see 1 set of values, not a pair of values like Photohobby said. What am I missing?
    If you turn off soft proofing, the values simply return to the actual values according to the internal representation of the image, not the soft proofed ones. What did you expect would happen? I've never seen pairs of values so I am not sure what that is about.
    So, it looks like the Lightroom 4 RGB percentages are based on the Adobe98 colorspace, and are not dependent on any other settings?
    As said above, the values are not comparable. the colorspace is prophotoRGB with an sRGB tone curve. If you're looking for colorchecker values in the Lightroom system: check here.
    When I search the web for "skin tone by the numbers" I get hundreds of CMYK answers. I've never seen an RGB method. Please write one for us.
    You really do not want to do this weird by numbers thing. This is largely a thing of the past. With modern color management and display calibration all you need to do is make the skin tone look good on your display and your output will be good. The simplest and quickest thing to do is to use a reference image with known good skin tones and put it up next to your image. Then adjust white balance until your own image looks good visually. Even better is simply to start with a known neutral by shooting a grey card or color checker neutral patch in the same lighting condition. This ensures good skin tone rendering if your development is not too extreme.

  • Multiple Phase values at one frequency

    Hi,
    I have done the frequency response analysis for a device using the frequency response example from sound and vibration toolkit and i get multiple
    phase values at one frequency how can i reduce it to one value without any error i am posting the result from the experiment please check 
    and give me suggestions are the stimulus and response phase values supposed to be like that???? 
    Attachments:
    DAQ freq resp_trial 2.vi ‏171 KB
    Freq resp results.JPG ‏260 KB
    file.vi ‏17 KB

    SK,
    You have serious problems in your File.VI.  Why are your writing to your file and then reading it right back?  Worse, there is no guarantee that the File write will actually occur before the File Read.  You have a race condition set up there between those two Spreadsheet File VI's.
    If you want to maintain a history of whatever has already been written to the file, you should be building it into an array and storing in a shift register.  Even if your File.vi would by chance work the way you want it to, storing data in the file system is much slower than maintaining your data in memory.
    As for your while loop, it is going to run as fast as it can with respect to all the functions occurring inside of it.  Is it possible you are getting 14 iterations of that while loop for each frequency step that is occurring?
    Message Edited by Ravens Fan on 07-25-2009 01:35 AM

  • Loader changes the pixel value after loading as bitmap

    Hi all,
    My aim is to load two images and compare its color information pixel by pixel. For this purpose i used "flash.display.Loader" class to load the images, and once load completes i'll typecast the loaded content to bitmap object (loaderObj.content as Bitmap). Finally i'll get the bitmapdata from the bitmap of both the images and compare the pixels.
    Now the problem is the color information of the original image and the loaded bitmap is slightly different. For example the color value of pixels of the attached image image1.jpg is 0xDDDDDD for complete 1366x768. And for the same image when it is loaded as bitmap the color value of pixels are different from the original value (For some pixels only, not all pixels are different).
    I’ve given the source code and sample images.
    Please can anyone help me out how to resolve this issue?
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                         xmlns:s="library://ns.adobe.com/flex/spark"
                                                         xmlns:mx="library://ns.adobe.com/flex/mx"
                                                         width="1376" height="800"
                                                         showStatusBar="false">
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <fx:Script>
                        <![CDATA[
                                  private function loadBtn_ClickHandler():void{
                                            var file:File = new File(File.desktopDirectory.nativePath);
                                            file.addEventListener(Event.SELECT, onFileSelectionHandler);
                                            file.browseForOpen("Open an image",[new FileFilter("Images", "*.jpg;*.gif;*.png;*.jpeg")]);
                                  private function onFileSelectionHandler(ev:Event):void{
                                            var loadedFilePath:String = (ev.target as File).nativePath;
                                            loadImageAsBitmap(loadedFilePath);
                                  /* Load image as bitmap using Loader */
                                  private function loadImageAsBitmap(url:String):void{
                                            var loader:Loader = new Loader();
                                            // load content as bitmap
                                            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onContentLoadComplete);
                                            loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onContentLoadFail);
                                            loader.load(new URLRequest(url));
                                  private function onContentLoadComplete(ev:Event):void{
                                            var loaderInfo:LoaderInfo = ev.target as LoaderInfo;
                                            var bitmap:Bitmap = loaderInfo.content as Bitmap;
                                            printPixelValue(bitmap.bitmapData);
                                            container_ID.addChild(bitmap);
                                  private function onContentLoadFail(ioe:IOErrorEvent):void{
                                            trace("Image Load Failed");
                                  private function printPixelValue(bmData:BitmapData):void{
                                            var initPixelValue:Number = -1;
                                            //for (var countI:int = 0; countI < bmData.height; countI++) {
                                            var countI:int = 1;
                                            for (var countJ:int = 0; countJ < bmData.width; countJ++) {
                                                      var pixelValue:Number = bmData.getPixel32(countJ, countI);
                                                      if(pixelValue != initPixelValue){
                                                                initPixelValue = pixelValue;
                                                                // Print the pixel value only for one row
                                                                trace("Pixel Value at " + countI + "x" + countJ + " is: " + pixelValue);
                                            trace("Pixel Value at " + countI + "x" + countJ + " is: " + pixelValue);
                        ]]>
              </fx:Script>
              <s:Button id="loadBtn_ID" label="Load!" click="loadBtn_ClickHandler()"
                                    x="5" y="5" height="20"/>
              <mx:UIComponent id="container_ID" x="5" y="30" width="1366" height="768"/>
    </s:WindowedApplication>
    Sample Image:

    Thanks all,
    Updating the sdk to 4.6.0 fixed the issue

  • How to compare pixel values of two different grayscale images...

    I have two different grayscale images both of much different sizes. One is 46x20 pixels and the other is 2592x1944 pixels. I'm having trouble finding a way to "scan" the smaller image through the larger one so that comparisons between the pixel values can be made. Basically I'm trying to see if anything matches the smaller image in the big image semi-closely. I can access the pixel values of each image but I can't figure out an algorithm to perform the scan. Any help at all would be very much appreciated! Thanks.

    Hi
    recipe:
    1.
    Find all the values for all the pixels in the small image. Some might be similar. Put all those values that are useful into a List called comparisonList.
    2.
    For each scanline in the large image
    For each pixel in the scanline
    is this pixel the same value as a pixel in the comparisonList?
    if so do something
    is the scanline finished?
    if not next pixel
    loop to next scanline
    where scanline is a horizontal line in the big picture.
    my 2c
    hope helps

  • Getting pixel values for an image

    Hi,
    I am trying to compare images to detect where the differences between them occur. I am encountering a few problems
    1) when i print out the pixel values for the image,all values are the same - clearly wrong, code i use:
    ImageIcon icon = new ImageIcon("x.jpg");
    Image image = icon.getImage();
    int width = image.getWidth(null);
    int height = image.getHeight(null);
    BufferedImage buffImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    int[] rgbs = new int[width*height];
    buffImage.getRGB(0, 0, width, height, rgbs, 0, width);
    for(int i = 0; i<width;i++){
    for(int j = 0; j<height; j++){
    int rgb = buffImage.getRGB(i, j);
    System.out.println("pixel @(" + i + "," + j + ") " + rgb );
    and 2)when i compare 2 completely different images my code tells me they are the same...
    for(int i = 0; i<width;i++){
    for(int j = 0; j<height; j++){
    int rgb1 = buffImage.getRGB(i, j);
    int rgb2 = buffImage2.getRGB(i, j);
    if(rgb1 == rgb2)
    matches++;
    weHaveAMatch = ((int)((float)matches/(float)pixelCount*100) >= tolerance);
    Can any1 please tell me what I am doing wrong or show me how to detect differences between images correctly. Any help is much appreciated

    so my for loops were just in the wrong order?No, I don't think you were looping over the image you loaded. It appears that you load one image, but loop over another newly created (hence, blank) image.
    I'm having trouble using BufferedImage im = ImageIO.read.. the compiler is telling
    me that the method read is not recognised even though i have imported
    import javax.imageio.*;you must learn to read the APIs and pay attention to the compiler error messages. ImageIO.read takes either a
    -File
    -InputStream
    -URL
    -ImageInputStream
    In my example, I pass in a File, so it works. You must still be passing a String.
    When i create a bufferedImage the way i originally did,the values printed out are still all -16777216.Yes, because you created a new, blank image, so the value reflects this.
    Sorry i'm a complete beginner, can u give me some guidence!Thats ok, everyone is at some time. Guidance : read and understand.

  • How to retrieve value of one column to other in Apex using Javascript

    Hi all,
    Can any one help me in solving this problem.
    How to send a value from one column to another column using javascript in Apex. I heard that we can use onChange().
    My requirement is,
    I have a column(Varchar2) in form where i need to enter a value and the data need to be sent to another column(Number) when i press apply changes.
    ex: if i enter a value say 1/3 or 1/4 or 1/3*1/6
    the result should be entered in the other column.
    Message was edited by:
    Raman

    Try something like
    html_GetElement('P1_ITEM2').value = eval(html_GetElement('P1_ITEM1').value);

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How to get a value from one item into another

    How can i get value from one item into another item.
    Ex: I have a report, in there i have check boxes, and when i have checked some rows, and press submitt, a prosses computates it into a item on another page, and a branche redirects to page 3. Then i'm going to use the value in the item into a PL/SQL script in an report to show the submittet items.
    How can i do this?
    Computation script, pages and all that is fixed. But i dont know which PL/SQL statement to use to get th value from the item.

    Hi Fredr1k,
    Use the V() function from pl/sql.
    e.g. V('P3_MY_ITEM')
    will return the value of that page item.
    As long as the pl/sql is called from within the Apex environment.
    Regards
    Michael

  • How we can get the values  from one screen to another screen?

    hi guru's.
         how we can get the values  from one screen to another screen?
              we get values where cusor is placed but in my requirement i want to get to field values from one screen to another screen.
    regards.
      satheesh.

    Just think of dynpros as windows into the global memory of your program... so if you want the value of a field on dynpro 1234 to appear on dynpro 2345, then just pop the value into a global variable (i.e. one defined in your top include), and you will be able to see it in your second dynpro (assuming you make the field formats etc the same on both screens!).

  • Copying value from one cursor to another

    Hi,
    I have a problem while copying values from one cursor to another cursor.
    The code looks like below.
    PROCEDURE XYZ
                TransactionResultSet OUT NOCOPY types.ref_cursor,
    IS
                temp_cursor types.ref_cursor;
                wip_rec types.ref_cursor;
    BEGIN
    DECLARE
                    CURSOR temp_cursor IS
                SELECT ...........
    END;
    BEGIN     
        FOR wip_rec IN temp_cursor
        LOOP
        update tinsagr set something
        where {the condition}
            IF SQL%ROWCOUNT = 0 THEN
      dbms_output.put_line('this is test ');
            Fetch wip_rec into TransactionResultSet;
         END IF;
       END LOOP;so basically i want to iterate the "temp_cursor" and depending on the values i get it from here i shall update a table. Actually i want to exclude few records from "temp_cursor" and add it/copy rest of the records to "TransactionResultSet"
    That means say initially " temp_cursor" has 100 records and i updated 5 records in a table and same number of records should be excluded and rest should be added to the output cursor TransactionResultSet.
    How do i achieve it?
    while saving i am getting
    (1): PLS-00456: item 'WIP_REC' is not a cursor.
    Do any one has any idea what to do in such scenario?

    There are options like....
    SQL> CREATE OR REPLACE TYPE emp_obj AS OBJECT (ename VARCHAR2(50), dept NUMBER);
      2  /
    Type created.
    SQL> CREATE OR REPLACE TYPE emp_tbl IS TABLE OF emp_obj;
      2  /
    Type created.
    SQL> set serverou on
    SP2-0158: unknown SET option "serverou"
    SQL> set serverout on
    SQL> DECLARE
      2    rc      sys_refcursor;
      3    v_ename emp.ename%TYPE;
      4    v_dept  emp.deptno%TYPE;
      5    ---End Of Local Varriable Declaration
      6    --Procedire declaration !
      7    PROCEDURE TEST_CUR(pi_out_ref_cur IN OUT sys_refcursor) IS
      8      emp_rec emp_tbl;
      9    BEGIN
    10      /* This BULK COLLECT can be done with explicit cursor,Ref Cursor
    11      with some simple modification, Here I have used implicit cursor! */
    12      SELECT emp_obj(ename, deptno) --Casting as the object
    13      BULK COLLECT
    14        INTO emp_rec
    15        FROM emp
    16       WHERE deptno = 10;
    17   
    18      dbms_output.put_line('Records selected are:');
    19      FOR i in 1 .. emp_rec.COUNT LOOP
    20        dbms_output.put_line(emp_rec(i).ename || '--' || emp_rec(i).dept);
    21      END LOOP;
    22      --Now we are filtering the record and may be doing some operation with each record.
    23      FOR i in 1 .. emp_rec.COUNT LOOP
    24        IF emp_rec(i).ename = 'KING' THEN
    25          --You can change this IF according to your need.
    26          emp_rec.DELETE(i);
    27        END IF;
    28      END LOOP;
    29      OPEN pi_out_ref_cur FOR
    30        SELECT * FROM TABLE(emp_rec); --Using the TYPE AS table.
    31    END TEST_CUR;
    32    /* Main execution or procedure calling section*/
    33  BEGIN
    34    --Actual calling
    35    TEST_CUR(rc);
    36    dbms_output.new_line;
    37    dbms_output.put_line('Now in Ref Cursor');
    38    dbms_output.put_line('****************');
    39    LOOP
    40      FETCH rc
    41        INTO v_ename, v_dept;
    42      dbms_output.put_line(v_ename || '--' || v_dept);
    43      EXIT WHEN rc%NOTFOUND;
    44    END LOOP;
    45 
    46  END;
    47  /
    Records selected are:
    CLARK--10
    KING--10
    MILLER--10
    Now in Ref Cursor
    CLARK--10
    MILLER--10
    MILLER--10
    PL/SQL procedure successfully completed.
    SQL>

Maybe you are looking for