function poly_m = create_polymask(uid,fieldid,w_mask,h_mask,X,Y)
	pkg load image
	p_mask = poly2mask(X,Y,w_mask,h_mask);
	mainPath = strcat(uid, "/");
mainPath = strcat(mainPath,fieldid);
	mask_name = strcat(mainPath,"/");
	mask_name = strcat(mask_name,"mask_img.png");
	imwrite(p_mask,mask_name);
	
	poly_m = 1;
	return
