Login  Register

Re: Low res -> High Res Calculations

Posted by Michael Schmid on Mar 15, 2007; 6:06pm
URL: http://imagej.273.s1.nabble.com/Low-res-High-Res-Calculations-tp3699978p3699979.html

Hi Jon,

at the moment some code for "preview" in ImageJ (for PlugInFilters)
is under construction - I hope it will be implemented in the
not-too far future in a way that all PlugInFilters can use it
without too many modifications.

Downscaling for preview will not work with this preview code.

What I could think of:

The easy way - write your code in a way that only the selection
(ROI) is processed.

Then you could select a small part of the image before preview
(manually or in the code), and run the filter again on the full
image (or the original selection) afterwards.

Would this solve your problem?


If you want to, I have some code parts that I could share with
you so you can try to assemble your own downscale&preview code.

---
What I do not understand: what kind of code that processes only
single pixels, irrespective of their neighborhood, can take that
long?

Michael
________________________________________________________________
On 15 Mar 2007, at 17:34, Jon Harman wrote:

> Hi,
>
> I have an application for ImageJ that calculates a new value for  
> each pixel in an image, based only on the single input pixel.  The  
> calculation is complex and can take many seconds for a large  
> digital camera image.  I want to give the user a quick way to see  
> if the new image is worthwhile and stop the calculation if not.  I  
> wonder if I can get some advice on how to do this.  Some imaging  
> applications I have do this sort of thing by creating a low  
> resolution image quickly then filling in at higher resolution in  
> the background.  Is this possible in ImageJ?  Could this sort of  
> functionality be made into a routine in ImageJ that takes my per  
> pixel routine and handles the low res/high res parts automatically?
>
> Thanks for any advice,
> Jon