<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Caitlin S. Leonard on Medium]]></title>
        <description><![CDATA[Stories by Caitlin S. Leonard on Medium]]></description>
        <link>https://medium.com/@caitlinsimona?source=rss-45c99297f3a2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fsWiDBUxLmaukziaqirKRw.jpeg</url>
            <title>Stories by Caitlin S. Leonard on Medium</title>
            <link>https://medium.com/@caitlinsimona?source=rss-45c99297f3a2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:46:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@caitlinsimona/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The 1998 Paper that Failed on my Images]]></title>
            <link>https://medium.com/@caitlinsimona/frangi-filter-the-1998-paper-that-failed-on-my-images-e3fb6a8cc023?source=rss-45c99297f3a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3fb6a8cc023</guid>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[image-filter]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[medical-imaging]]></category>
            <category><![CDATA[cervix]]></category>
            <dc:creator><![CDATA[Caitlin S. Leonard]]></dc:creator>
            <pubDate>Fri, 02 Oct 2026 09:30:56 GMT</pubDate>
            <atom:updated>2026-10-13T08:46:43.705Z</atom:updated>
            <content:encoded><![CDATA[<h3>The 1998 Paper that Failed on My Images</h3><p>The filter that changed vessel segmentation in 1998 and why it failed on my images</p><p>For the past months, I had been focusing on finding an already existing filter that could filter out the blood vessels from cervical images from a transvaginal imaging probe similar to a colposcope. Just like how the blood vessels in retinal images can be segmented out by just applying a filter, I wanted to segment out blood vessles from these images. If you haven’t heard what colposcopy is dont worry cause caitlin is here ;)</p><p>Colposcopy is a procedure where the clinician uses an instrument with a camera to examine the cervix and the vulva, it’s a method to visualise abnormal areas. A device called the speculum is inserted into the vagina to view the cervix.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*C7SaZqEPaG6pXtEVdg1qig.png" /><figcaption>Illustration of a Cervix © Caitlin Leonard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*grd68tPLQ75rSM7ZIdWwrw.png" /><figcaption>Illustration of a Colposcope © Caitlin Leonard</figcaption></figure><p>But here comes the issue, the blood vessels in my images weren’t much visible to the naked eye :(</p><p>The images had more of a color contrast with the background, the blood vessels were more reddish while the background was pinkish and less of an intensity contrast. Also that meant the vessels were dark on a brighter background. This is exactly the opposite of what the Frangi filter was designed for. This meant that I could still use Frangi while changing the polarity as Frangi filter was used for images with bright vessels on a dark background. But, the color contrast was still an issue, sadly. I began to understand how the filter works, it awes me to think how did people design mathematical filters from scratch, inspiring me to build a hybrid filter later which I would talk about in my next post.</p><p>Frangi first takes the hessian (the second derivative) of the image L to analyse the local behaviour using the taylor expansion. The end goal is to separate out the tubular, elongated structures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*El-W-kRDURnERbOAuVyxhg.png" /><figcaption>Image L computed in x0 at scale s</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*SV4OfbKPJ0-Bn605XRV9-A.png" /><figcaption>Hessian Matrix H</figcaption></figure><p>The main approach is that the hessian of a gaussian kernel at a scale s generates a probe kernel which measures the contrast between the inside and the outside regions in the range (-s,s). When we slide this vessel across the image, we get a strong negative response over a vessel as the trough aligns, giving a near zero response over a flat tissue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yFEc5R895AvTYU72OXDyxQ.png" /><figcaption>W-shaped gaussian kernel</figcaption></figure><p>Because Frangi applies this kernel to grayscale intensity images, the hessian of a color image sees nothing. But the grayscale version of my color image would have a uniform intensity throughout due to its weak intensity profile. The hessian maps the local neighbourhood of every point into a hypothetical ellipsoid. Frangi uses eigenvectors to figure out the direction in which the matrix stretches and eigenvalues to figure out how much it gets stretched (semi length of the ellipsoid). It was designed for 3D MR and CT images, so it would have three orthonormal eigenvectors, rotated to align with the local image structure, just like x, y and z in the real world domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*EfHVFf0zVjdH1es2Q7Peew.png" /><figcaption>Measures how the image L curves in the direction del x0. To figure out what shape the local structure is at every pixel in the image.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*Eaq8vORcOL7VgNOFkaccHg.png" /><figcaption>Ellipsoid describing the local curvature of the image intensity where λ1, λ2,λ3 are the three eigenvalues</figcaption></figure><p>We assume that λ1 is the least and λ3 is the greatest eigenvalue out of the all the three. Depending upon the values, the shape is determined. When λ1 is almost zero and significantly less than λ2, and when λ2 and λ3 are almost equal, we get a tubular vessel shape. Similarly when all three eigenvlaues are large and equal its a blob shape, when all three are almost zero its flat, when λ1 and λ2 are almost zero and when λ3 is large its plate-shaped. And because my images were 2D there was no λ3 component, λ1 was almost zero and λ2 was a very large positive value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*pZh8Sl27Lt3gTiPmfufSHg.png" /><figcaption>Gaussian derivatives that make up the kernel</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*GbQl7xKSKPCsh-8xlNjM9w.png" /><figcaption>Frangi also proposes vesselness formulae that quantify the shape : Rb (blobness), Ra (aspect ratio) and S (structureness)</figcaption></figure><p>This led to the next step of figuring out that I needed to preprocess my image to increase the intensity contrast first, so that its grayscale version could be given as an input to any type of hessian based filter. So Frangi failed on my images wah-wah-wah *wipes tear*, not because its a bad filter obviously, but because it wasn’t designed for images like mine.</p><p><strong>References</strong></p><p>[1] Frangi, A.F., Niessen, W.J., Vincken, K.L., Viergever, M.A. (1998). Multiscale vessel enhancement filtering. Medical Image Computing and Computer-Assisted Intervention (MICCAI), pp. 130–137.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3fb6a8cc023" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>