infection: Image<Gray, byte>
stain: Image<Gray, byte> }
-
// Create three binary markers :
// * 'Dark stain' corresponds to the colored pixel, it's independent of the size of the areas.
// * 'Stain' corresponds to the stain around the parasites.
tmp,
tmp
-
// Create three binary markers :
// * 'Dark stain' corresponds to the colored pixel, it's independent of the size of the areas.
// * 'Stain' corresponds to the stain around the parasites.
// * 'Infection' corresponds to the parasite. It shouldn't contain thrombocytes.
let find (filteredGreen: Image<Gray, float32>) (config: Config.Config) : Result * Image<Gray, float32> =
use filteredGreenWithoutInfection = filteredGreen.Copy()
- ImgTools.areaCloseF filteredGreenWithoutInfection (int config.InfectionArea)
+ ImgTools.areaCloseF filteredGreenWithoutInfection (int config.RBCRadius.InfectionArea)
let filteredGreenWithoutStain = filteredGreenWithoutInfection.Copy()
- ImgTools.areaCloseF filteredGreenWithoutStain (int config.StainArea)
+ ImgTools.areaCloseF filteredGreenWithoutStain (int config.RBCRadius.StainArea)
let darkStain =
// We use the filtered image to find the dark stain.