Submodule: stacks

Deinterleave

class flika.process.stacks.Deinterleave

deinterleave(nChannels, keepSourceWindow=False)

This deinterleaves a stack into nChannels

Parameters:nChannels (int) – The number of channels to deinterleave.
Returns:newWindow

Pixel_binning

class flika.process.stacks.Pixel_binning

pixel_binning(nPixels, keepSourceWindow=False)

This bins the pixels to reduce the file size

Parameters:nPixels (int) – The number of pixels to bin. Example: a value of 2 will reduce file size from 256x256->128x128.
Returns:newWindow

Frame_binning

class flika.process.stacks.Frame_binning

frame_binning(nFrames, keepSourceWindow=False)

This bins the pixels to reduce the file size

Parameters:nFrames (int) – The number of frames to bin. Example: a value of 2 will reduce number of frames from 1000 to 500.
Returns:newWindow

Resize

class flika.process.stacks.Resize

resize(factor, keepSourceWindow=False)

Performs interpolation to up-size images

Parameters:factor (int) – The factor to scale the images by. Example: a value of 2 will double the number of pixels wide the images are.
Returns:newWindow

Trim

class flika.process.stacks.Trim

trim(firstFrame, lastFrame, increment=1, delete=False, keepSourceWindow=False)

This creates a new stack from the frames between the firstFrame and the lastFrame

Parameters:
  • firstFrame (int) – The index of the first frame in the stack to be kept.
  • lastFrame (int) – The index of the last frame in the stack to be kept.
  • increment (int) – if increment equals i, then every ith frame is kept.
  • delete (bool) – if False, then the specified frames will be kept. If True, they will be deleted.
Returns:

newWindow

ZProject

class flika.process.stacks.ZProject

zproject(firstFrame, lastFrame, projection_type, keepSourceWindow=False)

This creates a new stack from the frames between the firstFrame and the lastFrame

Parameters:
  • firstFrame (int) – The index of the first frame in the stack to be kept.
  • lastFrame (int) – The index of the last frame in the stack to be kept.
  • projection_type (str) – Method used to combine the frames.
Returns:

newWindow

Image_calculator

class flika.process.stacks.Image_calculator

###image_calculator(window1,window2,operation,keepSourceWindow=False)

This creates a new stack by combining two windows in an operation

Parameters:
  • window1 (Window) – The first window
  • window2 (Window) – The second window
  • operation (str) – Method used to combine the frames.
Returns:

newWindow

Concatenate_stacks

class flika.process.stacks.Concatenate_stacks

concatenate_stacks(window1,window2,keepSourceWindow=False)

This creates a new stack by concatenating two stacks

Parameters:
  • window1 (Window) – The first window
  • window2 (Window) – The second window
Returns:

newWindow

Change_datatype

class flika.process.stacks.Change_datatype

change_datatype(datatype, keepSourceWindow=False)

This bins the pixels to reduce the file size

Parameters:datatype (string) –
Returns:newWindow