cherab.phix.observer.fast_camera.pipeline.rgb.RGBPipeline2D.update#
- RGBPipeline2D.update(x, y, slice_id, packed_result)#
Updates the internal results array with packed results from the pixel processor.
After worker threads have observed the world and used the pixel processor to process the spectra into packed results, the worker then passes the packed results for the current pixel to the pipeline with the update() method. This method should add the results for this pixel to the pipeline’s results array.
If this pipeline implements some form of visualisation, update the visualisation at the end of this method.
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 worker thread.
packed_result (tuple) – The tuple of results generated by this pipeline’s PixelProcessor.