Eraser with restoring original image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Eraser with restoring original image

Sugimoto Hikaru
Hello!
I sometimes want to erase only the line or object I painted with brush.
With "Irfan view" or "Photoshop" there is a option, I can restore original
(or saved) image when I use eraser.
Can I do the same with ImageJ ?
I would appreciate your help.


--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/
Reply | Threaded
Open this post in threaded view
|

Re: Eraser with restoring original image

Michael Schmid
Hi,

in contrast to Photoshop, ImageJ has no layers. So the only
thing you could do is "Undo" after drawing, before you do
anything else with the image (also don't select another image,
this will clear the Undo buffer to free memory).


What might come close to it and does not completely change the
concept of ImageJ: This is on my wishlist for a while - but it
would be quite some effort to implement:

(1) new Paste Control mode: "Set to Foreground Color"
For 8-bit data, this would do something like
   newPixelValue = pastedImage/255.*foregroundColor +
                   (1-pastedImage/255.)*oldPixelValue;
It is a kind of overlay in the current foreground color.

(2) A brush tool that modifies the pasted image by setting it
to 255 (brush with sharp edges) or increases the value of the
pasted image to something between 1 and 255 depending on the
distance from the center (soft edges).
(When used on an image without a pasted 'overlay', the brush
tool should create a pasted image and put it into "Set to
Foreground Color" paste mode).

(3) The brush tool could have a mode (e.g. with the "ALT" key
down) that does not increase but rather decrease (clear) the
overlay value - a sort of eraser.

It won't make it possible to undo painting after further
processing of the image, but it would make it possible to modify
strokes with the brush while painting. It would also add a soft
brush.

Just one of my crazy ideas (unfortunately I have no time in the
next month to try it...)

Michael
________________________________________________________________

On 12 Feb 2008, at 19:31, Sugimoto Hikaru wrote:

> Hello!
> I sometimes want to erase only the line or object I painted with  
> brush.
> With "Irfan view" or "Photoshop" there is a option, I can restore  
> original
> (or saved) image when I use eraser.
> Can I do the same with ImageJ ?
> I would appreciate your help.
>
>
> --------------------------------------
> Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
> http://pr.mail.yahoo.co.jp/toolbar/