cherab.phix.observer.fast_camera.RGBPipeline2D.pixel_processor#

RGBPipeline2D.pixel_processor(x, y, slice_id)#

Initialise and return a pixel processor for this pipeline and pixel coordinate.

Called by worker threads, each worker will request a pixel processor for the pixel they are currently processing.

This is a virtual method and must be implemented in a sub class.

Parameters:
  • x (int) – The x pixel coordinate (x, y) of the pixel being sampled by the worker.

  • y (int) – The y pixel coordinate (x, y) of the pixel being sampled by the worker.

  • slice_id (int) – The integer identifying the spectral slice being worked on by the requesting worker thread.

Return type:

PixelProcessor