retina
Class OIDamplitudeAnalyzer

java.lang.Object
  |
  +--retina.OIDroiAnalyzer
        |
        +--retina.OIDamplitudeAnalyzer
All Implemented Interfaces:
OIDBaseAnalyzer

public class OIDamplitudeAnalyzer
extends OIDroiAnalyzer

Analysis of the reflectance signal in terms of the amplitude at a certain moment. Makes images with the amplitude indicated. Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.


Field Summary
 float analysisTime
          Moment after start of stimulus when you want to examine amplitude of signal.
 float size
           
 
Fields inherited from class retina.OIDroiAnalyzer
controlMasks, functionName, scriptProcessor, stimulusMasks
 
Constructor Summary
OIDamplitudeAnalyzer(ScriptProcessor scriptProcessor)
           
 
Method Summary
 void analyze(float[][] a, int frameWidth, java.lang.String directory, java.lang.String name)
          Analyze series of OID frames a.
 void printInfo()
           
protected static void showAndSaveResults(java.lang.String functionName, float[][] amp, int width, java.lang.String directory, java.lang.String name)
          Plot all signals for each condition and ROI, with their CI.
 
Methods inherited from class retina.OIDroiAnalyzer
analyze, division, exit, init, init, invertMask, makeBarMasks, makeDiagonalControlMask, makeDiagonalMask, makeDiagonalMasks, makeHorizontalControlMask, makeHorizontalHalfMask, makeHorizontalMask, makeMasks, makeTControlMask, makeTMask, makeTMasks, makeVerticalControlMask, makeVerticalHalfMask, makeVerticalMask, prefersRegistration, showAndSaveResults, stats, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

analysisTime

public float analysisTime
Moment after start of stimulus when you want to examine amplitude of signal.

size

public float size
Constructor Detail

OIDamplitudeAnalyzer

public OIDamplitudeAnalyzer(ScriptProcessor scriptProcessor)
Method Detail

analyze

public void analyze(float[][] a,
                    int frameWidth,
                    java.lang.String directory,
                    java.lang.String name)
Analyze series of OID frames a. There are horizontal and vertical rois and also control rois.
Parameters:
a - a float[][] with the reflectance frames.
frameWidth - the width in pixels of the frames in a
directory - the name of the directory where the result should go.
name - the name(s) of the file(s) on which is based

printInfo

public void printInfo()
Overrides:
printInfo in class OIDroiAnalyzer

showAndSaveResults

protected static void showAndSaveResults(java.lang.String functionName,
                                         float[][] amp,
                                         int width,
                                         java.lang.String directory,
                                         java.lang.String name)
Plot all signals for each condition and ROI, with their CI. Show the plot and save as JPEG files.
Parameters:
directory - the directory to save to.
name - a String with the name of the vectors being plotted.