edu.stanford.rsl.konrad.rendering
Class RayDetector

java.lang.Object
  extended by edu.stanford.rsl.konrad.rendering.RayDetector

public class RayDetector
extends java.lang.Object

Creates wrapper for elements required to define a ray detector.

Author:
Rotimi X Ojo

Constructor Summary
RayDetector(int sliceNumber)
           
RayDetector(Projection projection)
           
RayDetector(Projection projection, Trajectory geometry)
           
 
Method Summary
 int getHeightInPixels()
           
 StraightLine[][] getIncidentRays()
          Ordered Collection of rays incident on ray detector
 double getPixelHeight()
           
 double getPixelWidth()
           
 SimpleVector getPrincipalPointInMM()
           
 SimpleVector getPrincipalPointInPixels()
           
 StraightLine[][][] getSuperSampledIncidentRays()
          For anti-aliasing
 int getWidthInPixels()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RayDetector

public RayDetector(int sliceNumber)

RayDetector

public RayDetector(Projection projection)

RayDetector

public RayDetector(Projection projection,
                   Trajectory geometry)
Method Detail

getHeightInPixels

public int getHeightInPixels()

getWidthInPixels

public int getWidthInPixels()

getPixelWidth

public double getPixelWidth()

getPixelHeight

public double getPixelHeight()

getPrincipalPointInPixels

public SimpleVector getPrincipalPointInPixels()

getPrincipalPointInMM

public SimpleVector getPrincipalPointInMM()

getIncidentRays

public StraightLine[][] getIncidentRays()
Ordered Collection of rays incident on ray detector

Returns:
the edges from each detector pixel to the source

getSuperSampledIncidentRays

public StraightLine[][][] getSuperSampledIncidentRays()
For anti-aliasing

Returns:
super sampled data