endrov.imglib.evop
Class EvOpScaleImage2D

java.lang.Object
  extended by endrov.flow.EvOpGeneral
      extended by endrov.flow.EvOpStack1
          extended by endrov.imglib.evop.EvOpScaleImage2D

public class EvOpScaleImage2D
extends EvOpStack1

Scale image TODO no reason it need to work directly on stack-level. possible to change? or make lazy


Constructor Summary
EvOpScaleImage2D(double scaleX, double scaleY)
           
 
Method Summary
static EvStack apply(EvStack in, double scaleX, double scaleY)
           
 EvStack exec1(ProgressHandle ph, EvStack... p)
          Apply given several stacks, returns only the first stack
static
<T extends net.imglib2.type.Type<T>>
net.imglib2.img.Img<T>
magnify(net.imglib2.RealRandomAccessible<T> source, net.imglib2.RealInterval interval, net.imglib2.img.ImgFactory<T> factory, double magnification)
           
static
<T extends net.imglib2.type.Type<T>>
net.imglib2.img.Img<T>
magnify(net.imglib2.RealRandomAccessible<T> source, net.imglib2.RealInterval interval, net.imglib2.img.ImgFactory<T> factory, double[] magnification)
          Compute a magnified version of a given real interval
static
<T extends net.imglib2.type.Type<T>>
net.imglib2.img.Img<T>
magnifyXY(net.imglib2.RealRandomAccessible<T> source, net.imglib2.RealInterval interval, net.imglib2.img.ImgFactory<T> factory, double magnificationX, double magnificationY)
           
 
Methods inherited from class endrov.flow.EvOpStack1
exec, exec, exec, exec1, exec1, getNumberChannels
 
Methods inherited from class endrov.flow.EvOpGeneral
exec11, exec11, exec1Untyped, execUntyped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvOpScaleImage2D

public EvOpScaleImage2D(double scaleX,
                        double scaleY)
Method Detail

exec1

public EvStack exec1(ProgressHandle ph,
                     EvStack... p)
Description copied from class: EvOpGeneral
Apply given several stacks, returns only the first stack

Specified by:
exec1 in class EvOpStack1

apply

public static EvStack apply(EvStack in,
                            double scaleX,
                            double scaleY)

magnifyXY

public static <T extends net.imglib2.type.Type<T>> net.imglib2.img.Img<T> magnifyXY(net.imglib2.RealRandomAccessible<T> source,
                                                                                    net.imglib2.RealInterval interval,
                                                                                    net.imglib2.img.ImgFactory<T> factory,
                                                                                    double magnificationX,
                                                                                    double magnificationY)

magnify

public static <T extends net.imglib2.type.Type<T>> net.imglib2.img.Img<T> magnify(net.imglib2.RealRandomAccessible<T> source,
                                                                                  net.imglib2.RealInterval interval,
                                                                                  net.imglib2.img.ImgFactory<T> factory,
                                                                                  double magnification)

magnify

public static <T extends net.imglib2.type.Type<T>> net.imglib2.img.Img<T> magnify(net.imglib2.RealRandomAccessible<T> source,
                                                                                  net.imglib2.RealInterval interval,
                                                                                  net.imglib2.img.ImgFactory<T> factory,
                                                                                  double[] magnification)
Compute a magnified version of a given real interval

Parameters:
source - - the input data
interval - - the real interval on the source that should be magnified
factory - - the image factory for the output image
magnificationX - - the ratio of magnification
Returns:
- an Img that contains the magnified image content