dcnum.segm.segmenter_manager_thread =================================== .. py:module:: dcnum.segm.segmenter_manager_thread Classes ------- .. autoapisummary:: dcnum.segm.segmenter_manager_thread.SegmenterManagerThread Module Contents --------------- .. py:class:: SegmenterManagerThread(segmenter: dcnum.segm.segmenter.Segmenter, slot_register: dcnum.logic.SlotRegister, *args, **kwargs) Bases: :py:obj:`threading.Thread` Manage the segmentation of image data :param segmenter: The segmenter instance to use. :param slot_register: Manages a list of `ChunkSlots`, shared arrays on which to operate .. rubric:: Notes The working principle of this `SegmenterManagerThread` allows the user to define a fixed number of slots on which the segmenter can work on. For instance, if the segmenter is a CPU-based segmenter, it does not make sense to have more than one slot (because feature extraction should not take place at the same time). But if the segmenter is a GPU-based segmenter, then it makes sense to have more than one slot, so CPU and GPU can work in parallel. .. py:attribute:: logger .. py:attribute:: segmenter Segmenter instance .. py:attribute:: slot_register Slot manager .. py:attribute:: t_segm :value: 0 Segmentation time counter .. py:attribute:: t_wait :value: 0 Waiting time counter .. py:method:: run() Method representing the thread's activity. You may override this method in a subclass. The standard run() method invokes the callable object passed to the object's constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.