def skin(): cmc.convert_model("images/anne.jpg", "rgb2skin") move_file("images/anneRGB2SKIN.jpg", "converted") cmc.convert_model("images/leo.png", "rgb2skin") move_file("images/leoRGB2SKIN.png", "converted") cmc.convert_model("images/lawrence.png", "rgb2skin") move_file("images/lawrenceRGB2SKIN.png", "converted")
def deficit(): cmc.convert_model("images/metro.jpg", "rgb2p-nopia") move_file("images/metroRGB2P-NOPIA.jpg", "converted") cmc.convert_model("images/metro.jpg", "rgb2d-nopia") move_file("images/metroRGB2D-NOPIA.jpg", "converted") cmc.convert_model("images/metro.jpg", "rgb2t-nopia") move_file("images/metroRGB2T-NOPIA.jpg", "converted") cmc.convert_model("images/paprika.jpg", "rgb2p-nopia") move_file("images/paprikaRGB2P-NOPIA.jpg", "converted") cmc.convert_model("images/paprika.jpg", "rgb2d-nopia") move_file("images/paprikaRGB2D-NOPIA.jpg", "converted") cmc.convert_model("images/paprika.jpg", "rgb2t-nopia") move_file("images/paprikaRGB2T-NOPIA.jpg", "converted")
def ycbcr(): cmc.convert_model("images/leo.png", "rgb2ycbcr") move_file("images/leoRGB2YCBCR.png", "converted") cmc.convert_model("converted/leoRGB2YCBCR.png", "ycbcr2rgb")
def yuv(): cmc.convert_model("images/leo.png", "rgb2yuv") move_file("images/leoRGB2YUV.png", "converted") cmc.convert_model("converted/leoRGB2YUV.png", "yuv2rgb")
def xyz(): cmc.convert_model("images/leo.png", "rgb2xyz") move_file("images/leoRGB2XYZ.png", "converted") cmc.convert_model("converted/leoRGB2XYZ.png", "xyz2rgb")
def hsv(): cmc.convert_model("images/leo.png", "rgb2hsv") move_file("images/leoRGB2HSV.png", "converted") cmc.convert_model("converted/leoRGB2HSV.png", "hsv2rgb")
def hsl(): cmc.convert_model("images/leo.png", "rgb2hsl") move_file("images/leoRGB2HSL.png", "converted") cmc.convert_model("converted/leoRGB2HSL.png", "hsl2rgb")
def grey(): cmc.convert_model("images/leo.png", "rgb2grey") move_file("images/leoRGB2GREY.png", "converted")
def cmy(): cmc.convert_model("images/leo.png", "rgb2cmy") move_file("images/leoRGB2CMY.png", "converted") cmc.convert_model("converted/leoRGB2CMY.png", "cmy2rgb")