Cubic Float Resize and Rotate
 
Author: Bob Dougherty (rpd@optinav.com) The code is a slight modification of FloatProcessor and related items by Wayne Rasband in ImageJ.
Installation: Download Cubic_Float_Resize_And_Rotate.jar place it in the Plugins folder and restart ImageJ. The plugins Cubic Resizer and Cubic Rotate should appear in the plugins list.
Description: ImageJ plugins to resize and rotate 32 bit images and stacks. They are copies of the corresponding plugins inside ImageJ, only restricted to 32 bit float images and extended by the use of constrained cubic interploation instead of the bilinear interpolation in ImageJ. The goal for the cubic interpolation is higher accuracy than bilinear interpolation. As decribed in "Numerical Recipies in C," this differs from more common goal of higher smoothness. The 2D interpolation is accomplished by four 1D interpolations in x, followed by a single interpolation in y. An intuitively motivated method for reducing overshoot, or the Gibbs phenomenon, is applied. If the cubic interpolation result falls outside an interval determined by linear interpolation using various pairs of the four data points, then answer is constrained to the trust interval. The algorithm is presently implemented by extending the FloatProcessor class and overriding the getInterpolatedPixel method. If is it found useful (or perhaps even correct), then it could be extended to the other data types. For the time being, it may be possible to experiment by converting images to 32 bit, processing, and converting back to the original form.
History:

Version 0: June 19, 2008

License:

Copyright (c) 2004, 2005, OptiNav, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of OptiNav, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

ImageJ: ImageJ can be freely downloaded from the ImageJ web site.
|