<?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 Nishat Anjum Lea on Medium]]></title>
        <description><![CDATA[Stories by Nishat Anjum Lea on Medium]]></description>
        <link>https://medium.com/@nishatlea?source=rss-6563f9da7226------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Xbkkh9QDg24VuWfotav4ag.jpeg</url>
            <title>Stories by Nishat Anjum Lea on Medium</title>
            <link>https://medium.com/@nishatlea?source=rss-6563f9da7226------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:38:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nishatlea/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[Greedy Algorithm (Part 1)]]></title>
            <link>https://nishatlea.medium.com/greedy-algorithm-part-1-2d8ea7bcd6f2?source=rss-6563f9da7226------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d8ea7bcd6f2</guid>
            <dc:creator><![CDATA[Nishat Anjum Lea]]></dc:creator>
            <pubDate>Sat, 11 Oct 2025 17:05:39 GMT</pubDate>
            <atom:updated>2025-10-11T17:05:39.120Z</atom:updated>
            <content:encoded><![CDATA[<p>Why is the algorithm called greedy?</p><p>Let me tell you a child&#39;s story.</p><p><strong>The Goose That Laid the Golden Eggs</strong></p><p>Long, long time ago, a farmer had a goose that laid a <strong>golden egg every day</strong>. The farmer sold the eggs and soon became quite rich. But greed took over—he thought that if the goose could lay golden eggs, then it must have <strong>a large store of gold inside</strong>. So, wanting all the gold at once, he <strong>killed the goose</strong> to open it up.</p><p>To his shock, there was <strong>no gold inside</strong>—just an ordinary goose. Now he had <strong>neither the goose nor the golden eggs</strong>.</p><p>Now, think about the story with some mathematical calculation. Even if the farmer found golden eggs after cutting the goose, how much would it be? Obviously not more than the weight of the goose. At best, 5 kg gold he could get. On the contrary, if he saved the golden eggs for 20 years, then he would get a large amount of gold.</p><p>The greedy algorithm reminds us of this story. Using this algorithm, you will get the currently best result, or local optima, but you cannot guarantee the actual best result, or global optima. Another proverb will remind you about this algorithm, which is “All that glitters is not gold.” Even if you think that you have found the best solution using this algorithm, it is not the actual best.</p><p>I am finishing this part with a very popular meme that I found on the internet. If you have understood the meme, you have already learned about greedy algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*cm9ycHWdB8AWX26FkCWHBw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d8ea7bcd6f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Correlation vs Convolution]]></title>
            <link>https://nishatlea.medium.com/correlation-vs-convolution-c044b166b1d3?source=rss-6563f9da7226------2</link>
            <guid isPermaLink="false">https://medium.com/p/c044b166b1d3</guid>
            <category><![CDATA[convolution]]></category>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[image]]></category>
            <dc:creator><![CDATA[Nishat Anjum Lea]]></dc:creator>
            <pubDate>Thu, 27 Jan 2022 17:45:18 GMT</pubDate>
            <atom:updated>2022-01-27T17:45:18.086Z</atom:updated>
            <content:encoded><![CDATA[<p>Suppose, we have a kernel of 3x3 size . For correlation operation , we will just slide the mask through the entire image and do filter operation.</p><p>For convolution operation, at first the mask is horizontally flipped , then it is vertically flipped. Then we will do the filter operation with the flipped mask.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1nA61A3YHDePmVDlMMGycA.jpeg" /><figcaption>Changed mask for convolution operation</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c044b166b1d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Finding out the values of a Gaussian Kernel in Image Processing]]></title>
            <link>https://nishatlea.medium.com/finding-out-the-values-of-a-gaussian-kernel-in-image-processing-9caaf213b4ab?source=rss-6563f9da7226------2</link>
            <guid isPermaLink="false">https://medium.com/p/9caaf213b4ab</guid>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[filters]]></category>
            <category><![CDATA[gaussian]]></category>
            <dc:creator><![CDATA[Nishat Anjum Lea]]></dc:creator>
            <pubDate>Fri, 27 Nov 2020 16:06:59 GMT</pubDate>
            <atom:updated>2022-01-28T06:46:32.710Z</atom:updated>
            <content:encoded><![CDATA[<p>Suppose , we are given a size of a kernel like <strong>5x5</strong> and and the value of <strong>σ</strong> = 1 . We have to find out all the values for this kernel .</p><p>We know the equation of Gaussian function is :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*t4l60Z__Yb1uVgwGSGfk0w.png" /></figure><p>For a filter (kernel is also known as filter) size <strong>x</strong> by <strong>y</strong>, the number of rows are <strong>x</strong> and the number of columns are <strong>y</strong>. Generally, The filter size consists of odd numbers . In this case ,the values for rows are <strong>-{(x-1)/2} to +{(x-1)/2}</strong> and the values of columns are <strong>-{(y-1)/2} to +{(y-1)/2}</strong> . So, for filter size <strong>5x5 </strong>, the row values are <strong>-2 to +2</strong> and column values are <strong>-2 to +2</strong>. So, if we want to calculate the 1st value of the kernel , we have to put the row value and column value of the kernel for that position in the Gaussian Function. Here , it is <strong>(-2,-2)</strong> . So, <strong>x=-2 , y=-2</strong> . By putting the value of <strong>x</strong>, <strong>y </strong>in the equation we can find the value <strong>h(x,y) = 0.0029</strong> which is approximately <strong>0.003</strong> . Following the same procedure , we can find the values of other positions . The entire table is shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*anMkmfu2uVOIFcHWw99viQ.png" /><figcaption><strong>5x5 Gaussian kernel</strong></figcaption></figure><p>Now , we can see that all the values are very small . If we normalize all the values by dividing all the values by <strong>0.003</strong> , we will get the following table :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/1*JKbfk2LOGR9OAnLUnvwZDw.png" /><figcaption><strong>5x5 Gaussian Kernel after Normalization</strong></figcaption></figure><p><strong>Note:</strong> <strong>σ is the parameter of the function . The Filter values will be changed if we change the value of σ</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9caaf213b4ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>