tttrlib
A library for time-tagged time resolved data
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
CLSMLine Class Reference

#include <CLSMLine.h>

Inheritance diagram for CLSMLine:
TTTRSelection TTTRRange

Public Member Functions

size_t size () final
 Get the number of pixels per line a frame of the CLSMImage.
 
std::vector< CLSMPixel > & get_pixels ()
 
void set_pixel_duration (int v)
 
unsigned long long get_pixel_duration ()
 
 CLSMLine ()=default
 
 CLSMLine (const CLSMLine &old_line, bool fill=true)
 
 CLSMLine (unsigned int line_start)
 
 CLSMLine (int line_start, unsigned int n_pixel)
 
virtual ~CLSMLine ()=default
 
void append (CLSMPixel &pixel)
 
CLSMPixeloperator[] (unsigned int i_pixel)
 
void crop (int pixel_start, int pixel_stop)
 
CLSMLineoperator+= (const CLSMLine &rhs)
 
- Public Member Functions inherited from TTTRSelection
TTTRget_tttr ()
 
void set_tttr (TTTR *tttr)
 
 TTTRSelection (int start, int stop, TTTR *tttr)
 
 TTTRSelection (const TTTRSelection &p2)
 Copy constructor.
 
 TTTRSelection (std::shared_ptr< TTTR > tttr=nullptr)
 
- Public Member Functions inherited from TTTRRange
 TTTRRange (int start, int stop)
 Constructs a TTTRRange with the specified start and stop indices.
 
 TTTRRange (int start=-1, int stop=-1, TTTRRange *other=nullptr)
 Constructs a TTTRRange.
 
 TTTRRange (const TTTRRange &p2)
 Copy constructor.
 
std::vector< int > get_tttr_indices ()
 Gets the vector of TTTR indices assigned to the range.
 
int get_start () const
 Gets the start index of the TTTR range.
 
int get_stop () const
 Gets the stop index of the TTTR range.
 
std::vector< int > get_start_stop ()
 Gets a vector of the start and stop TTTR indices of the range.
 
unsigned long get_stop_time (TTTR *tttr) const
 Gets the stop time of the TTTR range.
 
unsigned long get_start_time (TTTR *tttr) const
 Gets the start time of the TTTR range.
 
std::vector< unsigned long > get_start_stop_time (TTTR *tttr)
 Gets a vector of the start and stop times of the TTTR range.
 
unsigned int get_duration (TTTR *tttr)
 Gets the duration between the start and stop times of the TTTR range.
 
void insert (int idx)
 Inserts an index into the TTTR index vector.
 
void clear ()
 Clears the TTTR index set.
 
int strip (const std::vector< int > &tttr_indices, int offset=0)
 Strips TTTR indices from a range starting at tttr_indices[offset].
 
double get_mean_microtime (TTTR *tttr_data, double microtime_resolution=-1.0, int minimum_number_of_photons=1)
 Computes the mean microtime in units of the microtime resolution.
 
void get_microtime_histogram (std::shared_ptr< TTTR > tttr, double **histogram, int *n_histogram, double **time, int *n_time, unsigned short micro_time_coarsening)
 Gets the microtime histogram for the TTTRRange.
 
double get_mean_lifetime (TTTR *tttr_data, int minimum_number_of_photons=3, TTTR *tttr_irf=nullptr, double m0_irf=1.0, double m1_irf=1.0, double dt=1.0, std::vector< double > *background=nullptr, double m0_bg=0.0, double m1_bg=0.0, double background_fraction=-1.0)
 Computes the mean lifetime for the TTTRRange.
 
bool operator== (const TTTRRange &other) const
 Equality operator.
 
bool operator!= (const TTTRRange &other) const
 Inequality operator.
 
TTTRRangeoperator+= (const TTTRRange &rhs)
 Compound assignment addition operator.
 

Friends

class CLSMImage
 
class CLSMFrame
 

Additional Inherited Members

- Static Public Member Functions inherited from TTTRRange
static double compute_mean_lifetime (std::vector< int > &tttr_indices, TTTR *tttr_data, int minimum_number_of_photons=3, TTTR *tttr_irf=nullptr, double m0_irf=1.0, double m1_irf=1.0, double dt=1.0, std::vector< double > *background=nullptr, double m0_bg=0.0, double m1_bg=0.0, double background_fraction=-1.0)
 Computes the mean lifetime for a set of TTTR indices.
 
- Protected Attributes inherited from TTTRSelection
TTTR_tttr = nullptr
 
- Protected Attributes inherited from TTTRRange
itlib::flat_set< int > _tttr_indices {}
 Set of TTTR indices in the range.
 

Constructor & Destructor Documentation

◆ CLSMLine() [1/4]

CLSMLine::CLSMLine ( )
default

◆ CLSMLine() [2/4]

CLSMLine::CLSMLine ( const CLSMLine & old_line,
bool fill = true )
inline

◆ CLSMLine() [3/4]

CLSMLine::CLSMLine ( unsigned int line_start)
inlineexplicit

◆ CLSMLine() [4/4]

CLSMLine::CLSMLine ( int line_start,
unsigned int n_pixel )
inline

◆ ~CLSMLine()

virtual CLSMLine::~CLSMLine ( )
virtualdefault

Member Function Documentation

◆ append()

void CLSMLine::append ( CLSMPixel & pixel)
inline

◆ crop()

void CLSMLine::crop ( int pixel_start,
int pixel_stop )
inline

◆ get_pixel_duration()

unsigned long long CLSMLine::get_pixel_duration ( )
inline

◆ get_pixels()

std::vector< CLSMPixel > & CLSMLine::get_pixels ( )
inline

◆ operator+=()

CLSMLine & CLSMLine::operator+= ( const CLSMLine & rhs)
inline

◆ operator[]()

CLSMPixel * CLSMLine::operator[] ( unsigned int i_pixel)
inline

◆ set_pixel_duration()

void CLSMLine::set_pixel_duration ( int v)
inline

◆ size()

size_t CLSMLine::size ( )
inlinefinalvirtual

Get the number of pixels per line a frame of the CLSMImage.

Reimplemented from TTTRRange.

Friends And Related Symbol Documentation

◆ CLSMFrame

friend class CLSMFrame
friend

◆ CLSMImage

friend class CLSMImage
friend

The documentation for this class was generated from the following file: