Tabnine Logo
ComplexType.setImaginary
Code IndexAdd Tabnine to your IDE (free)

How to use
setImaginary
method
in
net.imglib2.type.numeric.ComplexType

Best Java code snippets using net.imglib2.type.numeric.ComplexType.setImaginary (Showing top 10 results out of 315)

origin: net.imagej/imagej-deprecated

@Override
public C compute(T input1, V input2, C output) {
    output.setReal(input1.getRealDouble());
    output.setImaginary(input2.getRealDouble());
    return output;
}
origin: net.imglib2/imglib2-ops

@Override
public O compute(I z, O output) {
  output.setReal(z.getRealDouble());
  output.setImaginary(z.getImaginaryDouble());
  return output;
}
origin: net.imglib2/imglib2-ops

@Override
public C compute(T input1, V input2, C output) {
    output.setReal(input1.getRealDouble());
    output.setImaginary(input2.getRealDouble());
    return output;
}
origin: net.imagej/imagej-deprecated

@Override
public O compute(I z, O output) {
  output.setReal(z.getRealDouble());
  output.setImaginary(z.getImaginaryDouble());
  return output;
}
origin: net.imagej/imagej-deprecated

@Override
public void compute(long[] point, O output)
{
  accessor.setPosition(point);
  output.setReal(accessor.get().getRealDouble());
  output.setImaginary(accessor.get().getImaginaryDouble());
}
origin: net.imglib2/imglib2-ops

@Override
public void compute(long[] point, O output)
{
  accessor.setPosition(point);
  output.setReal(accessor.get().getRealDouble());
  output.setImaginary(accessor.get().getImaginaryDouble());
}
origin: imagej/imagej-ops

cursor.get().setImaginary( GaussExp * Math.sin(freqPart) );
origin: net.imagej/imagej-deprecated

  /**
   * Conditionally assigns pixels in the output region.
   */
  public void assign() {
    final RandomAccess<U> accessor = img.randomAccess();
    final V output = function.createOutput();
    INPUT input = null;
    while (iter.hasNext()) {
      input = iter.next(input);
      boolean proceed = (condition == null) || (condition.isTrue(input));
      if (proceed) {
        function.compute(input, output);
        accessor.setPosition(iter.getCurrentPoint());
        accessor.get().setReal(output.getRealDouble());
        accessor.get().setImaginary(output.getImaginaryDouble());
        // FIXME
        // Note - for real datasets this imaginary assignment may waste cpu
        // cycles. Perhaps it can get optimized away by the JIT. But maybe not
        // since the type is not really known because this class is really
        // constructed from a raw type. We'd need to test how the JIT handles
        // this situation. Note that in past incarnations this class used
        // assigner classes. The complex version set R & I but the real
        // version just set R. We could adopt that approach once again.
      }
    }
  }
}
origin: net.imglib2/imglib2-ops

  /**
   * Conditionally assigns pixels in the output region.
   */
  public void assign() {
    final RandomAccess<U> accessor = img.randomAccess();
    final V output = function.createOutput();
    INPUT input = null;
    while (iter.hasNext()) {
      input = iter.next(input);
      boolean proceed = (condition == null) || (condition.isTrue(input));
      if (proceed) {
        function.compute(input, output);
        accessor.setPosition(iter.getCurrentPoint());
        accessor.get().setReal(output.getRealDouble());
        accessor.get().setImaginary(output.getImaginaryDouble());
        // FIXME
        // Note - for real datasets this imaginary assignment may waste cpu
        // cycles. Perhaps it can get optimized away by the JIT. But maybe not
        // since the type is not really known because this class is really
        // constructed from a raw type. We'd need to test how the JIT handles
        // this situation. Note that in past incarnations this class used
        // assigner classes. The complex version set R & I but the real
        // version just set R. We could adopt that approach once again.
      }
    }
  }
}
origin: net.imglib2/imglib2-ops

output.setImaginary(sumI);
net.imglib2.type.numericComplexTypesetImaginary

Popular methods of ComplexType

  • getRealFloat
  • setComplexNumber
  • getImaginaryFloat
  • getRealDouble
  • setReal
  • copy
  • createVariable
  • getImaginaryDouble
  • set
  • complexConjugate
  • getPhaseDouble
  • getPowerDouble
  • getPhaseDouble,
  • getPowerDouble,
  • setZero,
  • getPhaseFloat,
  • getPowerFloat,
  • mul

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • setContentView (Activity)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now