vis.revcorr.rotate_sta
ROTATE_STA - rotate the spike-triggered average to the prevailing orientation
[THETA,STA,PROB_STA] = vis.revcorr.rotate_sta(T_COORDS,STA,PROB_STA)
Find the prevailing orientation THETA (in radians) for a spike-triggered
average. T_COORDS are the time coordinates (in seconds) of the spike-triggered% average and STA is an XxYxT matrix with the STA. PROB_STA is an XxYxT matrix
with the significance of each value of the STA.
The prevailing orientation is computed from image frames with time lags
between 0 and 0.1 seconds.