Filter using 2 input images (Flash). How to implement?

Hi. I know how to implement filters that process single image as it was described in Pixel Benders Developer's Guide, but how can I apply filter using 2 input images one of which is computed? I wrote a filter that coppies alpha channel of one picture and applies it to another, but flash implementation is quite a puzzle for me... Any help appreciated

In our tutorial from last year's MAX, I showed how to use a two-input pixel bender kernel as a blend filter for two images on the stage. that is posted here:http://blogs.adobe.com/kevin.goldsmith/2008/12/materials_from_1.html
In one of my recent blog postings, I showed how to use a ShaderJob with multiple inputs. I was doing it for audio processing, but it works almost identically for images: http://blogs.adobe.com/kevin.goldsmith/2009/08/pixel_bender_au.html
Hopefully one of these should help, but if you have specific questions, don't hesitate to ask...

Similar Messages

  • DCTDecode filter used for image with Indexed color space?

    I've seen examples of images in PDF that have BitsPerComponent=8, with an Indexed Color Space, but the filter is DCTDecode.  This doesn't seem intuitive to me, as JPG supports 24-bit RGB and 8-bit gray.  I haven't heard of 8-bit color JPG so I'm just wondering how this is done?
    I'm just trying to understand how this works if someone could please indulge me with a technical explanation it would be most appreciated.  I understand how the image is represented using the colorspace, I just don't understand how this filter is applicable to 8-bit data.
    Please note, I understand that it's not an actual JPG file, that the data is only using the compression scheme.

    DCTDecode is entirely legal for 1-component (greyscale) samples as you've noted. There is no problem there.
    Remember, that applying a filter (and later decoding it) is entirely separate from the meaning of the data. So it's possible to use filters that just don't map correctly to the data. For example, greyscale DCTDecode could be used to encode samples which were, on decoding, to be treated as RGB. It wouldn't compress well, but the meaning isn't affected.
    But DCTDecode for an Indexed colour space is very unusual. Don't look for special treatment, it would be enconding the image data, which would be offsets into the colour table. And of course DCTDecode is lossy, so decompressed data should be close, but is not always equal, to the original.
    In most cases of Indexed colour, this would lead to random and useless changes to colours. But it is entirely possible to have colours which map into a linear and smooth set of shades of the same colour - such as 256 shades of pink. An image using such an Indexed colour space is a candidate for using DCTDecode.
    In using filters, it is best to forget what you think you know about the data, and just follow the precise rules of the filter.

  • How to implement the pessimistic locking using toplink with sybase

    we want to allocate the unique primary key to each row when many user try to insert the records concurrently..So what we are trying to do is we calculate the maximum of Primary Key and incremented it by 1. Now we want to Apply the locking concept on the so that unique key will be allocated to each newly inserted row
    Can you please tell me
    1. how we can genrate unique primary key in toplink using sybase?
    2.how to implement the pessimistic or optimistic locking ?which one will be preferable?

    Hi brother
    I think that this link can help you
    http://download-east.oracle.com/docs/cd/A97688_16/toplink.903/b10064/database.htm#1007986
    Good luck

  • What is the maximum number of input images when using PB in Flash?

    Hi!
    I am experimenting with animation baking using Pixel Bender in Flash. It works fine up to around 12 input images. When I use more than that the output gets distorted or is empty. So I am wondering if there is a fixed limit or if there is a problem with my code.

    I don't think there is a fixed limit. If there was you'd get a runtime error. This may be a player bug.

  • I have an iPad 2 and a Nikon DSLR. How can I transfer RAW/Tiff images using a compact flash card

    I have an iPad 2 and a Nikon DSLR. How can I transfer RAW/Tiff images using a compact flash card? Plugging in the camera at the ipad connector doesn't seem to work, possibly due to lack of power.

    This may apply.
    Fix (for Nikon D800)
    http://www.georgewheelhouse.com/blog/2012/10/ipad-ios-6-update---camera-connecti on-kit-fix
    Are you using an SD, SDHC, or SDXC card? And what capacity?
     Vheers, Tom

  • How to implement SEARCH HELP for input field in WDA

    Hi All,
    I am doing a tool for my team. in this tool there are 4 input fields to show different processes. I implemented the 4 input fields and also bind the respective tables to these fields successfully. Actually I want to filter the data between 2 fields . Means the data in the 2nd input field should be based on the 1st input field. Means when I'll select for example 'CHI' (code for CHINA) in the 1st input field the 2nd field meant for country name should show all country name with value 'CHINA'. But the problem is that all values related to each field are in different table with no foreign key relationship and also some combinations are in single table..
    I have tried the import and export parameter method for search help but no luck till now.
    Can anyone please suggest me how to implement this scenario..
    Thanks in advance...
    sekhar

    Hi sekhar,
    Your Requirement can be implemented by OVS(Object Value selector) This is the custom search help .So that you can define on what basis the value has to be fetched.
    Look at the below link
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
    You need to use the component WDR_OVS.
    It has 3 phases
    In phase 1
         You will fetch the value from input field to F4 help dialog box.
    In phase 2
         You will generate the search results , in this phase look for the input value given in field 2 and accordingly generate search result for the field 3.
    In phase 3
         The selected value will be returned to the original screen.
    Regards
    Karthiheyan M

  • How to implement row level security using external tables

    Hi All Gurus/ Masters,
    I want to implement row level security using external tables, as I'm not sure how to implement that. and I'm aware of using it by RPD level authentication.
    I can use a filter condition in my user level so that he can access his data only.
    But when i have 4 tables in external tables
    users
    groups
    usergroups
    webgrups
    Then in which table I need to give the filter conditions..
    Pl let me know this ...

    You pull the Group into a repository variable using a session variable init block, then reference that variable in the data filters either in the LTS directly or in the security management as Filters. You reference it with the syntax VALUEOF("NQ_SESSION.Variable Name")
    Hope this helps

  • How to use input box LOV in query panel (search region)

    Hi,
    We are having JDeveloper version 11.1.2.4.0
    In one of the JSF page, we are showing some data (absences).
    Requirement is to add search region at the top so that user can filter the data, based on search parameters like Business Group, Job etc.
    The search parameters are inter-dependent e.g. Job is dependent on Business Group. So when user selects some particular Business Group, Job search field should show jobs for that Business Group only.
    This works fine we use Choice List for both Business Group and Job.
    However since there are huge number of jobs, Job choice list makes page rendering very slow.
    So we tried to use Input box with LOV for Job.
    But now when job is selected in the LOV popup and returned to main page, job search field shows job id instead of job name.
    Please note that our base VO (AbsencesVO) contains JobId attribute. We have added List of Values on JobId, which fetches Job Name through JobVO1 view accessor.
    How to make Job LOV field show selected Job Name instead of ID? Kindly advise.
    Thanks,
    Vivek

    Thanks Timo/Bangaram, for prompt replies
    Timo, the link mentioned by you talks about showing IDs (DepartmentId, ManagerId etc.) in the search region. I need to show names in the form of Input box LOV.
    Bangaram, as per your suggestion I tried using transient JobName attribute. However now when I select any value in the Job LOV popup and return to main page, it shows first Job Name in the Job Name search field.
    Also when I click 'Search' button in Search panel, it shows error - Attempt to set a parameter name that does not occur in the SQL: BindJobName
    Please note that I have added both JobName and JobId in the List configuration as you suggested.
    In View criteria, I have removed previous item (condition) on JobId and added condition on JobName.(This is required because JobId condition shows JobId search field)
    I also tried making JobName dependent on JobId..still same behaviour.
    Kindly advise.
    Thanks,
    Vivek

  • How to Use an Image to Customize the Static Button Widget

    Can I just get someone to help me figure out how to use an image to customize the static button widget, please?
    I have tried using several different types of images, but none of them seem to actually change the appearance of the button.
    Thanks!
    Laura
    Captivate 5.5

    I tried to use the tools within the widget itself - it offers you the opportunity to use an image (see screenshot below).
    I also opened it in Flash and tried to replace the images for one of the button styles there w/ my own, but in re-publishing the SWF from there I broke the widget.  When I attempted to use the edited widget, there were no customization controls available after I inserted it (see screenshot two below).

  • How to Implement Sort, Filter funtinality in Normal web dynpro ABAP Table

    Hello,
    How to Implement Sort, Filter funtinality in Normal web dynpro ABAP Table ?
    Thanks

    hi,
    Check out this link for sorting in Table.
    Sorting option in WebDynPro ABAP UI Table
    steps to follow :
    ->Have the data in internal table (itab).
    ->Now use sort command for the particular column which ever you want to sort.
      e.g sort itab descending by <Column>.
    ->Now you can bind the internal table with the Context Node which is binded to Table.
    I hope it helps.
    Thanx.

  • How to implement a opaque label, not use swing

    since i need to implement a opaque label in applet, so i can just use awt, not swing, how should i do?
    thx

    Hi,
    Create your own class that extends java.awt.Label and
    override the "public void paint(Graphics g)" method.
    the body of this method could be something like:
    g.setColor(<your background color of choice>);
    g.fillRect(0,0, getWidth(), getHeight());
    super.paint(g);
    I didn't test this code, it's from the top of my head,
    I leave the testing to you.
    And if you want a reusable component you could add an
    opaque property and only fill the background when the
    component is opaque.
    Best of luck,
    Christhx for your answer, but the problem is that----
    i need the label to be opaque, so maybe behind the label is an image or picture, i can't just simply set the background color. Since all things are created dynamic, i don't know what is its background, so can't paint its background properly.

  • How to implement a inputText include suggestion when input

    Hi guys,
    In ADF, How to implement a inputText include suggestion when input, just like google suggestions ( when you type a char at inputText, it will give you relative suggestions for you to select ).
    Is there any ADF tag or other way to get that ?
    Thanks
    Iko

    Sure, you can use the af:autoSuggestBehavior component within your inputText. In this post they explain how to implement it in two ways: programmatic and declarative:
    http://www.gebs.ro/blog/oracle/oracle-adf-autosuggest-behavior/

  • How to implement AZAX call for a input field in webdynpro java.

    Hello everyone,
    I want to make a AZAX call , when I click on the input field.Anybody has already implemented this earlier, plz let me know how to do this.
    Thanks,
    Srikanta

    Undo/Redo is a pain in the neck. If I recall correctly, I usually use a javax.swing.undo.CompoundEdit to group smaller edits. Not sure if this will work but you might try starting a compound edit when a user strikes a key and ending it after a certain amount of time passes without a keystroke. This will allow rapid bursts of typing to be grouped as a single edit.

  • I want to share a folder of images with a client who is also using bridge. I want the client to be able to edit metadata and rate the image. How can I do this?

    I want to share a folder of images with a client who is also using bridge. I want the client to be able to edit metadata and rate the image. How can I do this?

    Metadata won't be a problem as long as you use Bridge to copy the file from within Bridge to whatever media (flash drive, CD/DVD. email, etc) you plan to use for the sharing.
    I'm not sure about the Label part.  Maybe it will travel along too.

  • How can I use an image as background for the entire page?

    With CSS mill, the solid color was defined in the color.X.property file and there is no place to define an image to use as the background? Is it doable to use an image as the background for teh entire page? If so, where to add it and how to implement? Thank you!
    Hao Pan ([email protected])

    While I have been able to add the image to a JLabel and insert it into frames, so that it looks like a suitable background, I have found it impossible to place any other component over the top of said imageDid you set a layout manager for the label?
    Check out the [Background Panel|http://www.camick.com/java/blog.html?name=background-panel] for two different solutions depending on your exact requirement.

Maybe you are looking for

  • IDVD 6- One Step  and IMOVIE

    I had no trouble downloading video from my Sony Handycam when I was using Panther. Now that I've upgraded to Tiger, I can't seem to get a download to work either on IDVD or IMOVIE. I'm using a firewire and doing everything I did previously with Panth

  • Parsing Data recieved from  Socket

    I am Recieveing Data from Socket BufferdReader bfReader = new BufferedReader(new InputStreamReader(requestSocket.getInputStream())); from sender side i am sending it using C# Application by Creating DataTable and Populating it(it has 6 columns) and t

  • Errors in command prompt

    I compile and run from the command prompt. 1) The following code compiles fine, but I get all kinds of strange stuff that comes up when I click the "Calculate" button. The stuff that comes up is not similar to the normal errors I get when using the c

  • After upgrade to lastest version af iTunes (10.3.1, I believe), I get this error, when iTunes runs the update of my iTunes library

    I get this error message from Windows: Instruction af 0x76f8de2d referred memey at 0x000000ca. Memory could not be written. The iTunes stops working. I am running Windows Vista with lastest updates from Microsoft. My iTunes folder is located on a QNA

  • Weird problem about FM 'CRM_ORDER_MAINTAIN'

    Hello ,all:      I try to modify some infomation about a sales order using FM  'CRM_ORDER_MAINTAIN'.But how strange,for instance,it can be successful for the first time in the morning (a.m)and the FM executes a long time  ,then modified infomation is