Emiree123 / UG-Research-Project

0 stars 0 forks source link

combine two images 08/02 #18

Open Emiree123 opened 7 months ago

Emiree123 commented 7 months ago

imfuse(matlab) - https://stackoverflow.com/questions/24725310/how-can-i-make-the-composite-of-two-images-in-opencv-with-python with 50/50 split, one image shouldn't be more visible than the other, image all three, sound speed , reflection, combination

Emiree123 commented 7 months ago

gaussian filtering, box filtering, bilateral filtering with high pass for post processing the image

Emiree123 commented 7 months ago

import numpy as np from scipy.signal import butter, filtfilt

def butter_highpass(cutoff, fs, order=5): nyq = 0.5 * fs normal_cutoff = cutoff / nyq b, a = butter(order, normal_cutoff, btype='high', analog=False) return b, a

def highpass_filter(data, cutoff, fs, order=5): b, a = butter_highpass(cutoff, fs, order=order) y = filtfilt(b, a, data) return y

highpass/lowpass syntax