Initial commit with project files
This commit is contained in:
41
5_Bildanalyse/ü12/a.py
Normal file
41
5_Bildanalyse/ü12/a.py
Normal file
@@ -0,0 +1,41 @@
|
||||
import numpy as np
|
||||
import cv2
|
||||
from matplotlib import pyplot as plt
|
||||
|
||||
|
||||
def n1(hist, s):
|
||||
...
|
||||
|
||||
|
||||
def n2(hist, s):
|
||||
...
|
||||
|
||||
|
||||
def mean(hist):
|
||||
...
|
||||
|
||||
|
||||
def mu1(hist, s, n):
|
||||
...
|
||||
|
||||
|
||||
def mu2(hist, s, n):
|
||||
...
|
||||
|
||||
|
||||
def sigma1(hist, s, n, mu):
|
||||
...
|
||||
|
||||
|
||||
def sigma2(hist, s, n, mu):
|
||||
...
|
||||
|
||||
|
||||
def Q(hist, s):
|
||||
...
|
||||
|
||||
|
||||
''' Load data '''
|
||||
# Load images and template
|
||||
img = cv2.imread("../../data/cameraman.png", cv2.IMREAD_GRAYSCALE)
|
||||
|
||||
Reference in New Issue
Block a user