:py:mod:`macrobot.bipolaris` ============================ .. py:module:: macrobot.bipolaris Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: macrobot.bipolaris.BipolarisSegmenter .. py:class:: BipolarisSegmenter(image_list, path_source, destination_path, store_leaf_path, experiment, dai, file_results) Bases: :py:obj:`macrobot.mb_pipeline.MacrobotPipeline` Macrobot analysis for Bipolaris pathogen. .. py:attribute:: NAME :value: 'Bipolaris' .. py:method:: get_frames(image_source) Segment the white frame on a microtiter plate. Algorithm is based on Otsu thresholding of the UVS image. :param image_source: The UVS-image (x, y, 1) which is used as source for thresholding. :type image_source: numpy array. :return: The binary image after Otsu thresholding. :rtype: numpy array .. py:method:: get_lanes_rgb() Calls segment_lanes_rgb to extract the RGB lanes within the white frames. .. py:method:: get_features() Feature extraction for Bgt based on Maxiumum intensity projection (MaxIP). :return: A list with the features per lane and it's position sorted left to right. :rtype: list with tuple(feature, position) .. py:method:: get_prediction_per_lane(plate_id, destination_path) Predict the Bgt pathogen from the feature extraction method based on thresholding. 255 = pathogen, 0 = background :return: A list with the predictions per lane and it's position sorted left to right. :rtype: list with tuple(prediction, position)