This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
int Fibo(int); | |
int main() | |
{ | |
int N, n; | |
scanf("%d", &N); | |
while(N--) | |
{ | |
scanf("%d", &n); |