Adive over image functions:

Hello,
I wondered if anyone could advice.
I am writing a program which finds the threshold of an greyscale image, by threshold I mean using maths to calculcate what is the foregound and background pixels in the image.
The threshold selected is often to high or low, so I added buttons to allow the user to change the value which in a grayscale image would be between 0-255.
When the the user changes the threshold, more or less of the image is considered foreground or background. At the moment I have stored these values in any array.
My question is, could any one think of a way of to display the orginal image in a label, and display the threshold pixels on top so we can still lightly see the orginal image, then when we change the threshold we see what is being regarded as foregound
I only need advice.
Thanks

Extend the label then draw over the top
Skeleton code
public class myLabel extends Jlabel
   Image foreImage
   myLabel(Icon icon, Image foreImage)
      super(icon);
      this.foreImage=foreImage;
   public void setForeImage(Image foreImage)
      this.foreImage=foreImage;
      repaint();
   public void paint(Graphics _g)
      paintComponent(_g);
      Graphics2D g=(Graphics2D)_g;
      g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f));
      //draw the processed image;
      paintBorder(g);
}When the tresh hold changes process the image then call setForeImage to update the foreground image.
This should be all you need to do.
Bamkin

Similar Messages

  • How do I remove the black box that appears over images in Aperture?

    I may have engaged a shortcut in Aperture but I would like to remove this function. How do I remove the black box that appears over images in Aperture? It gives you the image name, camera make and so on. It only appears when you use your mouse and let go of it over an image.

    Welcome to the forum.
    View >> Metadata Display
    It's all there.
    Also See Displaying Metadata with Your Images page 314 of the manual
    DLS

  • Missing important image functions - going for Hype

    I made a product presentation with a meny system and aniamtions using Edge.
    I unfortunatelly found some very important functions were missing.
    So I´m going for Hype now, that has got all of these.
    So all the job has to be doe again :-(
    I didn´t find any feedback area for Edge Animate, so I´m putting it here. The things missing are:
    - Automatic Image optimization (like in Muse)
    - No support for PSD
    - No retina support
    - Can´t replace image, e.g from PNG to JPG (I made it thou by editing the JS-file, but that seems scary)
    These are all small matters for Adobe to fix and I suppose they are doing this in the future.
    I really like Edge Animate thou, but since it lacks important workflow functions I can´t use it in production.

    Hi,
    Thanks. Yes, that worked.
    I actually didn´t find this because in all other Adobe applications, this is done from the Library panel.
    I really stress the importance for you to make your/Adobe applications the same. We users love Adobe apps, but are really not liking the unnecessary different solutions in some of them. It´s frustrating and a complete waste of time.
    I actually remade the whole animation using (Tumult) Hype.
    It´s much easier to work with. Edge seems good to work with Javscript, but with Hype editing Javascripts is not as much necessary since there are pre-made solutions.
    You should also look into some things Hype has that is really important:
    - Automatic generation of Retina images
    - Automatic resampling of images
    - Scenes (a very nice way to work)
    All in all, Hype is much more efficient to work with.
    A thing that I do want in Edge (and Hype) is
    - When using Photoshop originals, it should be possible to set how each image should be exported, i.e as JPG (and setting quality) or PNG.
    In the real practical user world, we do only want ONE image to carry around for different purposes, it.e web, animations, videos, print.
    And when designing (doing layout) in i.e Edge, I do not always from start know if the image could be in JPG or if it must PNG because it is e.g. overlapping.
    The feature of settings export options for Photoshop images, I also would like to see in Muse. As well as Retina support in Muse that i REALLY want.
    I like Edge (and really like Muse), but as it is now, selection Hype is an easy choice over Edge.
    I hope that you do update Edge to support an extremely good workflow - then I will certainly selected Edge, since I already do pay for it anyway
    Best regards
    Bosse Nilsson
    Tel +46 (0)703-233 150
    2014-02-11 kl. 19:28 skrev elainefinnell <[email protected]>:
    Re: Missing important image functions - going for Hype
    created by elainefinnell in Edge Animate CC - View the full discussion
    Hi, man&mouse-
    Please note that there is a way to swap images, though it will try to fit the new image into the old dimensions.
    Select your image element
    In the properties panel, look at the Images section
    Next to the image name, select the double arrow key
    Select your new image (must already be in the Library)
    http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-6110226-548268/437-302/ScreenShot2014-02-11at10.27.07+AM.png
    Hope that helps!
    -Elaine
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6110226#6110226
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6110226#6110226
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6110226#6110226. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Edge Animate CC at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • File Path Visible When I Hover Over Images

    Hi,
    I converted a PowerPoint document to a PDF. The PowerPoint document includes images (GIF, JPEG). When I hover my cursor over the image in the PDF I created I can see the file path C:\User\User Name\Photo\File Name.JPG.
    Is there a setting in the PDF that I can 'unselect' so I don't see the file path when I hover over images?
    Thanks,
    mindforge

    Please try the suggestions mentioned here : http://forums.adobe.com/message/3364072#3364072
    Regards,
    Deepak

  • Over image not working in Nav Bar

    I have established Up and Over images for my nav bar. The Up
    image is all that shows -- even when I mouse-over or click on the
    button. Thanks for your help!
    Jim
    "MM_nbGroup('down','group1','WhatWeDo','Images_and_Video/WhatWeDo_Over.gif',1)"
    onmouseover="MM_nbGroup('over','WhatWeDo','Images_and_Video/WhatWeDo_Over.gif','Images_an d_Video/WhatWeDo_Over.gif',1)"
    onmouseout="MM_nbGroup('out')"><img
    src="Images_and_Video/WhatWeDo_Up.gif" alt="Home page link"
    name="WhatWeDo" width="161" height="39" border="0" id="Home"
    onload="" /></a></td>
    </tr>
    <tr>
    <td><a href="whoweare.html" target="_top"
    onclick="MM_nbGroup('down','group1','WhoWeAre','Images_and_Video/WhoWeAre_Over.gif',1)"
    onmouseover="MM_nbGroup('over','WhoWeAre','Images_and_Video/WhoWeAre_Over.gif','Images_an d_Video/WhoWeAre_Over.gif',1)"
    onmouseout="MM_nbGroup('out')"><img
    src="Images_and_Video/WhoWeAre_Up.gif" alt="Who we are navigation
    link" name="WhoWeAre" width="161" height="39" border="0" id="Test"
    onload="" /></a></td>

    I'm sorry to tell you that the first thing you need to do is
    to get rid of
    the method you have used. It's quite antique, and was
    designed for framed
    pages. It adds quite a bit of additional code (some of which
    is invalid) to
    your page than would the alternative of using just ordinary
    image swaps for
    your menu.
    So, just create your menu from the up images in each row, and
    use DW's Swap
    image behavior on each.
    And put some duct tape over this NavBar option so that you
    don't use it
    again!
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "JRStaf4ord" <[email protected]> wrote in
    message
    news:gb85gs$5e$[email protected]..
    >I have established Up and Over images for my nav bar. The
    Up image is all
    >that
    > shows -- even when I mouse-over or click on the button.
    Thanks for your
    > help!
    >
    > Jim
    >
    >
    >
    "MM_nbGroup('down','group1','WhatWeDo','Images_and_Video/WhatWeDo_Over.gif',1)"
    >
    onmouseover="MM_nbGroup('over','WhatWeDo','Images_and_Video/WhatWeDo_Over.gif','
    > Images_and_Video/WhatWeDo_Over.gif',1)"
    > onmouseout="MM_nbGroup('out')"><img
    > src="Images_and_Video/WhatWeDo_Up.gif" alt="Home page
    link"
    > name="WhatWeDo"
    > width="161" height="39" border="0" id="Home" onload=""
    /></a></td>
    > </tr>
    > <tr>
    > <td><a href="whoweare.html" target="_top"
    >
    onclick="MM_nbGroup('down','group1','WhoWeAre','Images_and_Video/WhoWeAre_Over.g
    > if',1)"
    >
    onmouseover="MM_nbGroup('over','WhoWeAre','Images_and_Video/WhoWeAre_Over.gif','
    > Images_and_Video/WhoWeAre_Over.gif',1)"
    > onmouseout="MM_nbGroup('out')"><img
    > src="Images_and_Video/WhoWeAre_Up.gif" alt="Who we are
    navigation link"
    > name="WhoWeAre" width="161" height="39" border="0"
    id="Test" onload=""
    > /></a></td>
    >

  • Panoramic Imaging function

    Nokia JUST released (yesterday or daybefore) an awesome new app for the Lumia 800, called ‘Creative Studio’
    This app brings the much awaited Panoramic Imaging function as well as a bunch of other cool features to the Lumia 800.
    Absolutely the coolest picture-taking, editing and sharing app, and it’s only available on your Nokia Lumia Phone. Turn your snaps into great photos using a host of gorgeous effects and editing tools. Patented technology enables blazing fast, live, in camera effects so you won’t have to wait to see your pictures. You can even effortlessly create awesome panorama shots! Share your personalized pictures directly with friends on Facebook, Twitter and Flickr.
    You Can download it from the Marketplace..
    Have Fun...

    Had a play with the panoramic. Works really well

  • Setting the order of a roll over image in a quiz

    Hi,
    I'm using captivate 4 and having issues in setting a quiz for my students.
    I want to have an icon to roll-over so the students can access information relating to the question, eg, diagrams, tables, graphs etc.
    I have done all this yet when the roll over image appears its order is set behind the question and answers, I need it in front. when trying to change the order, eg bring to front, all the options are grayed out and not available. Is there a way to fix this as I know I cannot use a slidelet in a question slide.
    I have also tried to re-order the question and answer text, but is is also grayed out.
    Any help would be greatly appreciated
    Cheers
    Andrew

    Hello,
    You cannot insert interactive objects on any default question slide from pool or not. You will have to change the action to be executed on Success/Failure. There it is possible to jump to a slide.
    Beware: you can never jump to a slide that is outside of the quiz 'scope'. This scope starts with the slide where you have the first scoreable object, which can be a question slide but also a button/click box/TEB with a score. The scope typically ends with the score slide. So be sure that the slide you want to jump to are in that scope. Eventually you can add a scoreable object (with a low score perhaps of 1pt) like a button or click box to the first slide of your project. If you keep the score slide as the last slide you will not have to worry anymore about the scope.
    Hope this makes sense,
    Lilybiri

  • Lines over images and around text in Captivate SWF file

    My project works & views fine in captivate and when published, it views fine on my mac - through flash player and browsers. But when I send a swf file to the client to view they see odd lines above and below images.
    But they dont see the lines when they view the htm file within a browser - then it views fine.
    The lines only appear when there's text over an image.
    Screen shots attached.
    My captivate project was created by importing a Powerpoint document, with images and text on each slide.
    I've changed the optimisation / slide quality through prefrences and on each slide to the highest quality.
    I've also un-selected the advanced slide compression.
    Is there another thing I can try to iron out these lines?
    Some of the images within Powerpoint are stretched, would this cause the lines?
    Is it a flash player issue?
    Or a zooming issue?
    Any help is much appreciated!

    Thanks Lilybiri,
    I am a new user & just finding my way
    I understand how to publish and how Captivate creates a zipped file with a SWF, HTML, JS and CSS files etc. (Im using Captivate 7). 
    How do you send Captivate projects to clients for review / approval before you supply them with the whole project zipped file?
    So far I've been sending them the swf file to check. And have had troubles with them viewing the lines over images and around text. Even though I cant see the lines.
    I need the client to see what I'm seeing - a project without any lines.

  • Insert shape over image in table cell

    Want to use circles, ovals, lines with arrows to point to some part (text or image) of a cell in a table.
    Need to emphasize certain areas of graphics in a document used as a step by step type document.
    If I add the shape outside the table and then try to drag/drop on to the image in the cell, the entire cell jumps to a new empty cell.
    Can nod get image to appear over the image in the table cell.

    Hello,
    do you think about this, please have a look here: http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7b86a .html.
    Another way, to add text over an image uses Nancy O.'s Demo here (I would prefer by using PS or similar):
    http://alt-web.com/DEMOS/CSS-Sold-Out-Text-over-image.shtml
    Hans-Günter

  • Translucent gray over image in thumbnil (grid) view

    See example image below:
    one thumbnail looks OK (on left), but other, problem image (on right) has translucent gray layer over image!
    The problem images are not in a stack.
    If I click the problem image thumbnail it looks normal, but the gray overlay re-appears if I click on anther image.
    It shows OK in develop module.
    I know this is probably something stupid, but...can anyone help identify what is happening?
    -Colin

    Most probably you have flagged the image as "rejected" by pressing "X" on your keyboard.
    When an image is flagged as rejected it gets that grey overlay that disappears when you select the image. You can still edit them in the Develop Module.
    To delete the "Rejected" flag, select the images with the grey overlay and press "U" or "P" on your keyboard. "U" stands for "Unflagged". "P" stands for "Picked".

  • Draw line over Image??.. in Grid Format

    Hello frnds,
    what i want to do in my project is to draw image on JPanel with grid lines.. ??
    May be image in background and lines over image..
    I searched forum before but coulnt find appropriate thread.. please help me out??
    gervini

    from within the JPanel's paint() method.In Swing components you should overide the paintComponent() method, not paint().

  • Roll-over images

    Does RoboHelp support roll-over images?
    I've tried every way to insert a roll-over image into my
    project, including editing the html page in dreamweaver but as soon
    as I open it up in RoboHelp and generate it the images either does
    not change or it is not visible.
    Please advise...
    Thanks,
    Susy Carrillo

    You might take a look at
    Walter
    Zorn's free tooltip utility, a really neat onMouseover
    application that makes your tooltips look like popups, including
    the use of links within them.
    You can use it for text links or in combination with image
    maps. So far, I'm using only the former, but I'll be using the
    latter for some new, complex C# screens in our next version
    release.
    There are a few things that can trip you up, such as: all the
    HTML inside the Javascript area (the
    escape('Some text') portion) cannot have carriage returns;
    and certain characters must be escaped with a backslash (such as
    replacing double quotes with backslashed single quotes). However,
    it's all explained quite well on his site. You can control
    backgrounds, transparencies, images, placement, etc.
    As Peter says, do all your testing in a scrub project before
    going live in the real one.
    Good luck,
    Leon

  • Making Roll over images from photoshop layout

    Hello Everyone,
    I am working on a website and I have sliced my parts of my Photoshop file.
    I have saved as a html with images as well!
    How would I amek a roll over image out of the buttons I made in photoshop and sliced?

    Best thing you can do is delete that HTML file from Photoshop and use the slices and build the code in Dreamweaver.  You will be much better off.
    The simplest solution is to save the 2 states of your button as 2 separate images then click on Insert->Image Objects->Rollover Image.  Then select your before and after image.  Just remember to upload the javascript file Dreamweaver creates during this process or it won't work online.

  • Metadata ? Login before download? Mouse over image? Three questions...

    Three questions:
    1) Can I add metadata to pages made with iWeb? Does it have to be done in an external application (and if so why)?
    2) I would like to propose a PDF document (a catalogue of services) that can be downloaded from my site but only to visitors who have logged in or at least left their identities (I want to know who has downloaded the catalogue and to be able to contact them afterwards).
    3) I want to have a roll-over image which will show a photograph before and after retouching, switching between the two as the mouse cursor goes over the picture. Can I do this in iWeb?
    Any ideas?
    Many thanks!

    2 - as already suggested you can use a form site to create a form to give you the information you need. DYou can add the form to a web page with an HTML Snippet and iFrame code like in this demo page. The code used is also shown. on't know if you can set it up to download the pdf file but you might be able to add a link to the zipped pdf file which would immediately download the file.
    3 - to do the rollover that you want would require javascript and a snippet. Do a search in this forum for "rollover" and you'll a number of topics where it's discussed. Cyclosaurus is the resident expert on javascript.
    OT

  • Pointer turns to 'hand' over image while in editor disallowing any access to tool bar. How do I avoid?

    Pointer turns to 'hand' over image while in editor disallowing any access to tool bar. How do I avoid?

    Hi,
    Verify that the Space bar is not pressed or hung.
    Hand tool is activated when we have Space bar pressed. You can use it while working on other tools and you need to move the image up/down. You just need to press Space bar in between and releasing it would return to the initially active tool, you were wrokinf on.
    Thanks.

Maybe you are looking for

  • GRC10: Mandatory Comments on SPM Log Review

    Gurus, is there a way to make comments mandatory when approving the SPM Log Report that the controller reviews? I have set the Task Setting to Comments Mandatory -> Approval (activated the workflow). Yet this has no impact. The controller is not forc

  • Assigining Profit Center to Company Code

    What are the settings to be made for assigining profit center to company code? How to assign the profit center Group to a profit center? Regards, Balakishan

  • PSE 13.1 Update Errors

    I got prompted to install PSE 13.1 updates, and did so. Then got the following helpful message. Anyone know what it is? Windows 8.1 system. Photoshop Camera Raw 8.7.1 There was an error installing this update. Please quit and try again later. Error C

  • Can I still hang out here even if I get rid of my MSI nForce???

    After MSI's stellar performance on my RMA, I have an ABit NV7-133R on order from newegg. :D I just was wondering if you guys still want me to hang out here even though I'm giving the K7N415 board the boot out the door as soon as it gets back home.  

  • After an update today, Bridge is consistently crashing. How do I solve this?

    After an update today, Bridge is consistently crashing How do I solve this? I use Windows 8.1