This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # %% | |
| dir_path = "C:\\Users\\denis\\Downloads" | |
| corr_file = "corr.fits" | |
| imgradec_file = "image-radec.fits" | |
| rdls_file = "rdls.fits" | |
| import os | |
| from astropy.io import fits |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| def fitLinePolar(x, y, x_ref, y_ref): | |
| """ | |
| Fits a line to the given data points using the polar (Hough) formulation. | |
| The data is centered at (x_ref, y_ref). | |
| Parameters: | |
| x (np.ndarray): Array of x data points. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import print_function | |
| import numpy as np | |
| import scipy.stats | |
| import matplotlib.pyplot as plt | |
| # Exponent | |
| a = 3.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import cv2 | |
| baboon = cv2.imread('slike/baboon.bmp') | |
| cap = cv2.VideoCapture(0) | |
| while(True): |