Find Edges Filter in Flash AS 3?

I've been scrubbing though google trying to get up to speed
with AS3, and with a particular job/problem to solve. I need to
take a dynamic image, desaturate it, and create the Photoshop
effect of the Find Edges filter. Does this seem even vaguely
possible? I've got the desaturate part working... no thanks to my
own brains.

Since it's possible in AS2 it's certainly possible in 3.
Here's a little
sample that will do vertical edge enhancement... All you need
is to import
a bitmap into the library then give it a linkage id to feed
to the
loadBitmap method. Hopefully, this is enough to get you
started.
If you want to do it the hard way it's easy to write a
convolution kernel,
it just won't be as fast. Google 'Sobel' which is the edge
detection
algorithm used by Photoshop.
import flash.filters.ConvolutionFilter;
import flash.display.BitmapData;
var filter:ConvolutionFilter = new ConvolutionFilter(3, 3,
[-1,0,1,-2,0,2,-1,0,1]);
var bit:BitmapData =
BitmapData.loadBitmap("bitmapLinkageID");
var mc:MovieClip = this.createEmptyMovieClip("mc",
this.getNextHighestDepth());
bit.applyFilter(bit, bit.rectangle, new Point(0,0), filter);
mc.attachBitmap(bit, this.getNextHighestDepth());
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/

Similar Messages

  • How do i find and delete adobe flash installer

    how do i find and delete adobe flash installer

    It is likely in your Downloads folder if you downloaded it from Adobe. If you downloaded it from someplace else, please add more details.

  • WHERE CAN I FIND or DOWNLOAD  ADOBE FLASH BUILDER 4.7 STANDARD?

    1 year ago I bought Adobe Flash Builder 4.7 Standard an i have license key. Installation files i lost. Creative Cloud contain Adobe Flash Builder 4.7 Premium, and does not contain Adobe Flash Builder 4.7 Standard. WHERE CAN I FIND or DOWNLOAD  ADOBE FLASH BUILDER 4.7 STANDARD?

    You can get all the PDF and Online Help files from the below link :
    http://blogs.adobe.com/premiereprotraining/2010/08/help-documents-for-creative-suite-5-pdf -and-html.html
    And yes, you can call the Local Help by pressing the F1 key but for that you need to have Adobe Help Manager(AIR application) installed.
    Open Adobe Help Manager->Go To General Settings->Select "Yes" under Display Local Help Content onlyand hit done.
    Launch CS6 application->Press F1 and it should open the pdf file instead of online help.

  • Automate Shape Builder ... or ... Find Edges (?)

    Hi, I'm using Illustrator CS5 to create simple black and white line drawings that I want to export as SVG, but I have a certain requirement about how the paths are defined... not sure how to describe it. So, for example, say that I create a star with the star tool. Then I make another star from the same center point, same size, but this time rotated. If you select them both and take the shape builder tool, as you hover over you'll see individual, enclosed "pieces" of the two stars... each piece delineated by the path edges surrounding the current location of the mouse pointer. If you click on one of those "pieces", it creates a new path that matches that delineated area. That is exactly what I want (so happy the capability is there)! Now, my question... is there a way to instruct Illustrator to find all such "pieces" in the drawing and convert them to these new paths as though I had clicked each one with the shape builder tool? I tried to search for "find edges", but I think I may be remembering a function in PS... its been too long.
    I've searched around the forums and the internet, but it has been many years since I used Illustrator and I'm not sure of all the terminology... and maybe there is a simple way to do this and I just never knew! :-)  I have started to look through the capabilities available to scripting, but decided a forum post might save me some time. Thanks!

    Thank you very much!

  • Where do I find the thread of Flash alternatives?

    Where do I find the thread of Flash alternatives?

    Look to the right under "more like this" or or search any of the iPhone or iPad forums for "flash" and you'll find many threads on the subject.
    Regards.

  • Is there a FIND search filter for SHARED folders?

    I believe Archiving will only archive the users emails not any messages displayed in a shared folder.
    But when I do a FIND search by date, I still see all those messages from shared folders that other users own.
    Is there a FIND search filter for SHARED folders?
    Further is there a way to differentiate or filter in a FIND search for shared folders that only I own, or shared folders that are owned by other people?

    condor wrote:
    > The Archiving process knows not to move messages from folders that are owned
    > by other people. How does it know?
    The archiving process isn't "allowed" to move messages from folders that are
    owned by others. This is a different matter altogether. Archiving systems
    typically use either IMAP or SOAP for their access, and cannot access folders
    shared by other users (Nexic Discovery is different in this if you use the API
    version of it, because it can see shared folders, and will archive if you
    request it).
    You are comparing apples and oranges unfortunately, and the client was built to
    be able to manage shared folders unlike the archiving program.
    As Michael says, you can choose to not "look in" shared folders if you do not
    want them to show up in a find results.
    Danita
    Novell Knowledge Partner
    Moving GroupWise to Linux?
    http://www.caledonia.net/gwmove.html

  • Finding Edges

    I'm trying to approximate the edges of a arbitrarily shaped
    movie clip using Flash 7. These shapes are not compound, but they
    could be a little complex.
    My idea was to "place" some points around the bounding box of
    the clip and then "move" each point on a line through the center
    until it hitTested on the shape. This works well enough for shapes
    like a circle or square, but not so well if there are recessed
    areas in the shape -- imagine the inside of a "G".
    You can use the code below to see what I mean. Paste it on
    the first frame and make sure to have your shape (of a decent size,
    maybe around 100 to 200 pixels in either direction) on the stage
    with an instance name of "clip" and have a small round dot in the
    library set to export with the linkage id of "dot".
    I'm just wondering if anybody has any interesting ideas on
    other approaches or how I could do this. Remember that I don't have
    the BitmapData class. Thanks.

    Okay, I'm taking this a bit further. I've come across the
    marching squares algorithm and trying to use it. So far it is
    working great.
    So here is what I'm doing. I've got an arbitrary black shape
    in a movieclip.
    I start checking a four pixels square (x,y) and (x+1,y+1)
    define the corners, for hits. The pattern of the hits define one of
    16 patterns for that square. As long as there are no hits we move
    along to the right until we find at least one pixel that is a hit.
    The one pixel means we have found the edge of the shape.
    Pushing the x,y coordinates of the marching square into an array
    that will define the edges of the shape. From there we move
    clockwise around the edge of the shape testing and moving
    appropriately until we come back to the start.
    It actually works quite well.
    So here is my next question. What if my shape is compound? So
    inside the same clip there are two shapes. I'm trying to figure out
    how to keep checking for more shapes. So for example if my shape is
    a lower case letter "i." I will nicely trace out the dot over the
    i, but then it is done.
    Any suggestions on how to get it to find the lower part?
    I'm thinking of picking up the first bit of testing again
    while somehow keeping track of which bits of grid I've visited and
    not testing those again. But I'm not sure how one would go about
    doing that -- especially quickly. Any ideas?

  • Please help!! Can't find "simulate download" in flash cs4 educ. edition

    Hi there,
    Would someone pls help me on this one?  I have the education edition of CS4 Flash pro and I can't find the simulate download/bandwidth profiler anywhere in the "View" menu where it is supposed to live.  Is it hidden somewhere, or is it not included in my version?  I thought the only difference between the education edition and the retail was the licensing.
    I have been searching for days for an answer and it makes testing my preloader very difficult.
    Thanks for any help

    Wow, i feel embarassed.  That was it!! Thanks for your help. I really appreciate it.

  • How can I find and install adobe flash player for ipad2

    I was try find but can't find flash player,,,,

    You can't download it, flash is not supported on the iPad (or iPhone or iPod Touch), and probably never will be : http://www.apple.com/hotnews/thoughts-on-flash/
    Depending on what sites you are trying to access, you might find that some of them (probably more so if they are news sites) have their own apps in the App Store which might let you get some of the content that you want (and there is the built-in YouTube app). Also there are browsers such as Skyfire which 'work' on some sites - but judging by the reviews not all sites. If you want to play flash games then you are out of luck if you want to play on-line, but again some of them have app versions in the store.

  • How do I find the app, Adobe flash reader

    I have tried to find this Adobe flash reader threw, APPS an GOOGLE. I hope some one can help me with my issue on getting it.   Thank You, Pockets7.

    https://get.adobe.com/reader/

  • Can't find final layer in Flash template...any suggestions?

    Hello,
    I am working with Adobe Flash CS4, and a template from flashmo.com.
    I've found Flash CS4 to be very easy to use, and quite helpful in manipulating templates. However, as a beginner, there are still some things that I have had a bit of trouble with.
    This is the template-in-progress that I am changing: http://cybproductions.com/theatre/theatre_main_01.html
    Here is the flash file: http://cybproductions.com/theatre/theatre_main_01.fla
    I have been able to find the contents layers, and edit the text to create new pages, buttons, etc. But the one thing I have not been able to update or change, is where it reads "curtain." I would like to change it to the name of the theatre the site is for (Ilion Little Theatre Club), but can not find that layer anywhere in the file when I'm in Adobe Flash.
    As I am new to this, is it possible that the "Curtain" is a graphic that would need to be changed on its own in Photoshop and then loaded into the library and swapped? Or am I just missing the layer somewhere?
    It is one of the last pieces of the puzzle for this site, and any help would be greatly appreciated.
    Thank you.

    Thank you for such a quick response.
    I have not been able to click on the item. I can click on every other layer (the photo, the text on the site, the copyright footer, etc), but when I attempt to click on that, it just selects what appears to be the background or "frame" layer of the curtain that frames the site.
    May I ask (being a beginner), how I might go about unlocking all the layers or folders in Flash?
    I did notice when I opened the template, that the font of both the text, and that item reading "Curtain" did change, as the fonts weren't available. Is that any type of hint as to what type of file it would be? (A layer versus a graphic?)
    If so, is that something that can be re-typed in the ActionScript?
    Thank you again for the help.

  • How to find static filter on Query designer

    Hi expert,
    I created one variable ZCALMON_V_001 on the infoObject ZCALMON, and this variable is used on two query (QueryA, QueryB) for filter functionality, however, I tested the queryA and QueryB by tcode RSRT1, I find there is static filter on info tab of result for QueryA, and there is NOT static filter on QueryB, please refer to picture, do you know the root cuase? Thanks.
    Bst Regards,
    Andrew

    Hi Andrew,
    In Query Designer for Query A, under Filter -> Characteristic Restrictions, there would be some static filters defined at query design time. These are called Static Filters because they have been hardcoded at design time & cannot be changed.on runtime. These Filters get fired at the Query level.
    --Priya

  • Cannot find camera in Adobe Flash Player

    Adobe Flash Player cannot find my camera so I am unable to play and vie video's correctly.   It starts slowly and then stops and starts and take so long and I end up turning the video off.   Unseen.   I have deleted Adobe and re downloaded it.   Nothing seem to work.   I need to be able to view my videos on a regular basis as I watch my dogs racing on video.

    Very strange. It appears that someone your copy of Muse half updated. Please delete your copy of Muse and re-install using the appropriate link below. (Do you recall any errors during the original update process?)
    http://www.adobe.com/go/muse_latest_win
    http://www.adobe.com/go/muse_latest_mac

  • Where can i find a filter for...?

    I need to do:
    http://www.n-projects.com/simulation/coke.html
    but just i arrive to here:
    http://www.n-projects.com/simulation/movistar/simulacion/Paginas/simulacion_2.ht ml
    What filter can i use for make this rotation video?
    Thanks in advance.

    Jim, without mapping the video to a 3d cylindrical object and then rotating that object in 3d space providing a camera viewpoint of the image as it scrolls by, then you have to simulate the rotation by creating the scrolling effect. one example of how to do that is to take your video clip and blow it up by 300% or more. then at the start of the clip use the wireframe and image mode to reframe so that the left edge of the clip lines up with the left edge of the frame. add a center keyframe. then go to the end of the clip and reframe so that the right edge of the clip lines up with the right edge of the frame. now the clip when played will appear to slide from right to left in the canvas. now add the Distort > Cylinder filter and it will appear to rotate. now scale the whole thing down and map it to your video kiosk ... obviously this is of limited use. the perspective wont be great unless you're looking dead on. but what I'm trying to offer you are ideas of how to build something like this with limited resources. you may prefer to wait for a more helpful response tho. have a look at the links goolilgoloiogoogi posted, you may find what you need there ... or jump into Motion 3 if you have it.

  • Where can I find my filter menus

    Hi, guys.
    I want to apply 'lens flare effect' to my photo.
    I've known that 'lens flare' is in 'Filter' > 'Render' > 'Lens Flare'
    But It's not in there. There was just 'Lighting Effects'.
    How could I find 'Lens Flare' and many other menus that I lost
    Normal Filter menus are like this, you know.
    Thank you.

    Reinstall the program with sufficient user privileges. Something went wrong.
    Mylenium

Maybe you are looking for