:py:mod:`macrobot.puccinia_ipk` =============================== .. py:module:: macrobot.puccinia_ipk Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: macrobot.puccinia_ipk.RustSegmenterIPK .. py:class:: RustSegmenterIPK(image_list, path_source, destination_path, store_leaf_path, experiment, dai, file_results) Bases: :py:obj:`macrobot.mb_pipeline.MacrobotPipeline` Macrobot analysis for Puccinia plant pathogen. Currently works for leaf and stripe rust. .. py:attribute:: NAME :value: 'RUST_IPK' .. 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 Rust based on thresholding the saturation channel. :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 Rust 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)