LutherAstrophysics / m23

Astronomical Raw Data Processing
0 stars 0 forks source link

Cropping function #11

Closed minhviet0308 closed 2 years ago

minhviet0308 commented 2 years ago

@wilkerje @isaachroberts43 We are currently trying to create a function in python that prompts the user for coordinates in the image, and then the function will connect those coordinates to create a 'fill region'. This region will be filled with a value, supposedly 0, and so it will be cropped out of our wanted image. Creating a rectangular region is simple, but we want to generalize to other shapes as well. We are having some difficulties getting ideas to create this function, it would be great if you can lend us some thoughts.

wilkerje commented 2 years ago

I won't have a chance this afternoon, but I'll need to sit down and look at what your doing/talk it through. Not sure how much help I can be.

minhviet0308 commented 2 years ago

@wilkerje @isaachroberts43 We were able to implement a python library to crop our images. We will now continue to make it so that it prompts from the user. Here is a demonstration:

image

sumanchapai commented 2 years ago

good work @minhviet0308