I have two layers: raster and vector(green colored) of the same area of interest. Now, I want to assign "1" to the pixels which lie within the green region, and for the rest assign 0. How can I handle that? Is that possible? If the question is unclear, I will try to explain in a comment or by editing. Thanks
[![enter image description here][1]][1] 


  [1]: https://i.sstatic.net/IENIh.jpg