Tag Archives: Python

Fundus Image Segmentation

Source Code¶On my GitHub This code is wrapped in a class which makes it harder to post to a Notebook (a few too many lines for a post). Segmenting Fundus Images with kNN¶After preprocessing the images as described in a previous post, I tried to extract learnable features by applying the k-nearest neighbors algorithm. In… Read More »

Matched Filters with OpenCV

Creating Custom Filter Banks with OpenCV¶ Suppose in order to extract curved lines from the image, we create a bank of filters (matched filters) designed to illicit a response from line segments of different orientation. To reconstruct the curves we apply each filter in the bank to the given image and then return the maximum… Read More »

Color Transfer with OpenCV, Python

Color Transfer by Histogram Specification¶Auxilary functions (described in the previous post)¶ In [1]: %matplotlib inline from matplotlib import pyplot as plt from os import path import numpy as np import cv2 import pandas as pd # display a list of images with titles def show_images(images,titles=None, scale=1.3): """Display a list of images""" n_ims = len(images) if titles… Read More »