Skip to content

Instantly share code, notes, and snippets.

@tony01111299
tony01111299 / GaussianSharpen.m
Created December 29, 2015 08:57
Gaussian sharpen
function [O, invFG] = GaussianSharpen(M, sigma, lambda)
F = fft2(M);
G = fgaussian(size(M), sigma);
FG = fft2(G);
invFG = FG./(lambda + FG.^2);
% invFG = invFG/max(max(abs(invFG)));
F2 = F.*invFG;
O = fftshift(ifft2(F2));
end
Ref. http://embedonix.com/articles/image-processing/installing-opencv-3-1-0-on-ubuntu/
sudo apt-get install build-essential
sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
cd ~
git clone https://github.com/Itseez/opencv.git
cd opencv
git checkout 3.1.0
mkdir release
cd release
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<script type="text/javascript">
/*function RemoveUrlParameter(url, parameters) {
var substr1 = url.split("?");
for(var i = 2; i < substr1.length; i++)
substr1[1] += '?' + substr1[i];
if(substr1.length > 2)
#include<stdio.h>
#include<stdlib.h>
int Fibo(int);
int main()
{
int N, n;
scanf("%d", &N);
while(N--)
{
scanf("%d", &n);