Quick Start
Import Required Libraries¶
In [1]:
Copied!
import marcia as mc
import marcia as mc
Load Data¶
In [2]:
Copied!
data = mc.load('Data/lead_ore','.bmp', True)
data = mc.load('Data/lead_ore','.bmp', True)
In [3]:
Copied!
mc.hist(data, 'Pb')
mc.hist(data, 'Pb')
Load Classification Table¶
In [4]:
Copied!
mask = mc.load_mask('Data/Mask.xlsx')
mask = mc.load_mask('Data/Mask.xlsx')
In [5]:
Copied!
mineral_cube = mc.mineralcube_creation(data,mask)
mineral_cube = mc.mineralcube_creation(data,mask)
See classification¶
In [6]:
Copied!
mc.plot_minerals(mineral_cube)
mc.plot_minerals(mineral_cube)
Check classification accuracy¶
In [7]:
Copied!
mc.hist(mineral_cube, 'Galene')
mc.hist(mineral_cube, 'Galene')
Export mask to image¶
Masks can be save as raw tiff images.
In [8]:
Copied!
mc.save(mineral_cube, 'Galene', raw=True)
mc.save(mineral_cube, 'Galene', raw=True)