Hi Feyza,
Thank you for writing.
You can use label me annotation tool to generate the polygon points http://labelme2.csail.mit.edu/Release3.0/index.php?message=1 . Then use opencv to create blank images of the same size as the input color image and using opencv draw the annotated polygon points on the blank image and then fill them with white intensity of [255,255,255].