Class MriConvolutionKernels_

java.lang.Object
  extended by MriConvolutionKernels_
All Implemented Interfaces:
ij.plugin.filter.ExtendedPlugInFilter, ij.plugin.filter.PlugInFilter
Direct Known Subclasses:
MRITools_matt

public class MriConvolutionKernels_
extends java.lang.Object
implements ij.plugin.filter.ExtendedPlugInFilter

This plugin implements the operation of kspace sampling (as in MRI), followed by its adjoint. You can choose the kspace trajectory type and you'll be returned the image and the convolution kernel.

You'll be free to use this software for research purposes, but you should not redistribute it without our consent. In addition, we expect you to include a citation or acknowledgement whenever you present or publish results that are based on it.

Version:
June 03, 2008
Author:
Matthieu Guerquin-Kern
See Also:
MRITools_matt

Field Summary
(package private)  ij.ImagePlus imp
           
protected static java.lang.String KSPACE_TRAJECTORY
          Dialog label.
protected static java.lang.String[] TRAJECTORIES
          Dialog items for the k-space trajectory.
 
Fields inherited from interface ij.plugin.filter.ExtendedPlugInFilter
KEEP_PREVIEW
 
Fields inherited from interface ij.plugin.filter.PlugInFilter
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
 
Constructor Summary
MriConvolutionKernels_()
           
 
Method Summary
 void run(ij.process.ImageProcessor ip)
          This method is called by ImageJ to process the image.
 void setNPasses(int nPasses)
          This method is called by ImageJ to inform this plugin of the number of passes.
 int setup(java.lang.String arg, ij.ImagePlus imp)
          This method is the first one to be called by ImageJ.
 int showDialog(ij.ImagePlus imp, java.lang.String command, ij.plugin.filter.PlugInFilterRunner pfr)
          This method is called by ImageJ to let this plugin interact with the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRAJECTORIES

protected static final java.lang.String[] TRAJECTORIES
Dialog items for the k-space trajectory.


KSPACE_TRAJECTORY

protected static final java.lang.String KSPACE_TRAJECTORY
Dialog label.

See Also:
TRAJECTORIES, Constant Field Values

imp

ij.ImagePlus imp
Constructor Detail

MriConvolutionKernels_

public MriConvolutionKernels_()
Method Detail

setup

public int setup(java.lang.String arg,
                 ij.ImagePlus imp)
This method is the first one to be called by ImageJ. It is used to query this plugin about its capabilities. It is also the last method to be called, with arg set to "final".

Specified by:
setup in interface ij.plugin.filter.PlugInFilter
Parameters:
arg - A String that contains arguments to this plugin.
imp - The ImagePlus image currently selected, or null if there is none.

setNPasses

public void setNPasses(int nPasses)
This method is called by ImageJ to inform this plugin of the number of passes. Unused in this plugin.

Specified by:
setNPasses in interface ij.plugin.filter.ExtendedPlugInFilter
Parameters:
nPasses - The number of passes.

run

public void run(ij.process.ImageProcessor ip)
This method is called by ImageJ to process the image.

Specified by:
run in interface ij.plugin.filter.PlugInFilter
Parameters:
ip - The ImageProcessor to process. It is expected to extend FloatProcessor, but this convention is not tested at run-time.

showDialog

public int showDialog(ij.ImagePlus imp,
                      java.lang.String command,
                      ij.plugin.filter.PlugInFilterRunner pfr)
This method is called by ImageJ to let this plugin interact with the user.

Specified by:
showDialog in interface ij.plugin.filter.ExtendedPlugInFilter
Parameters:
imp - The ImagePlus image currently selected, or null if there is none, but an absence of image is not tested at run-time.
command - A String that contains arguments to this plugin.
pfr - The parent PlugInFilterRunner that called this method.