code for partition Multispectral images project