GregAlt / SolarFinish

App to apply finishing touches to solar images
MIT License
5 stars 3 forks source link

Enhancement Request - Add scale to solar disc #3

Open flyingbarron opened 8 months ago

flyingbarron commented 8 months ago

Adding an optional scale to the solar disc would be great to highlight the size of prominences, etc...

e.g. SunScale

I usually only use the part of the scale beyond the Sun's disc.

Apologies, I don't recall where I found this diagram, I didn't create it myself.

GregAlt commented 8 months ago

Shouldn't be too tough to procedurally do it similar to this bit of code already in there for debugging: def add_circle(im, center, radius, color, thickness): cv.ellipse(im, center, (radius, radius), 0, 0, 360, color, thickness, cv.LINE_AA) return im

Can render it to a separate image of the same size and blend, or could render directly on the final image. If the color is gray, can do it the same on both the colorized and gray image without any special handling.

For rendering text, can use putText, something like this, I bet: https://stackoverflow.com/questions/16615662/how-to-write-text-on-a-image-in-windows-using-python-opencv2

flyingbarron commented 8 months ago

well, How about both? Have a choice of either no scale, scale embedded in image, or scale as separate (transparent) image