smlm-renderer 0.13.0

Render a list of localisations with a gaussian based on the uncertainty
Documentation
use crate::{DataType, Properties};

use imp::OwnedImage;

#[derive(Debug)]
pub struct RenderResult 
{
    image: OwnedImage<DataType>,
    properties: Properties
}

impl RenderResult
{
    pub fn new(image: OwnedImage<DataType>, properties: Properties) -> Self
    {
        Self
        {
            image,
            properties
        }
    }

    pub fn image(&self) -> &OwnedImage<DataType>
    {
        &self.image
    }
    
    pub fn take_image(self) -> OwnedImage<DataType>
    {
        self.image
    }

    pub fn properties(&self) -> &Properties
    {
        &self.properties
    }
}