Sorry to bother you. I wrote three cg functions which implemented color segmentation, erosion and dilation. Is there anyway i can do to call one in another? For example, can i call color segmentation cg function in Dilation cg functionl? I just touched cg programming two weeks ago. I really appreciate your help! Thanks again.