This file contains 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
rgbResim = imread('erguvan.jpg'); | |
hsvResim = rgb2hsv(rgbResim); % Resmi HSV uzayına çevir | |
hKanali = 360.*hsvResim(:,:,1); % Hue (renk) kanalını 0-360 arasında al | |
% Renk histogramının çizimi | |
figure | |
kutuSinirlari = 0:360; % Histogram kutularının sınırları | |
N = histc(hKanali(:),kutuSinirlari); % Renk histagramını çıkar | |
hBar = bar(kutuSinirlari(1:end-1),N(1:end-1),'histc'); % Histogramı çiz | |
set(hBar,'CData',1:360,... % Çubukların renklerini 360 tane | |
'CDataMapping','direct',... % renk ile güncelle ve kenar |
This file contains 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 <opencv2/core/core.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
void erguvan(cv::Mat& resim) { | |
// Renk uzayını HSV'ye dönüştürelim. | |
cv::cvtColor(resim, resim, CV_BGR2HSV); | |
// Renkli resmi kanallara ayıralım: Hue (renk tonu), |
This file contains 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
\version "2.16.1" | |
\header { | |
title = "Bir Dünya Bırakın" | |
tagline = "" | |
composer = "Müzik: Salih Aydoğan" | |
poet = "Söz: Adnan Çamakçıoğu" | |
arranger = "Düzenleme: N. Gül" | |
meter = "Nota: İ. Arı" | |
This file contains 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
% Matrisi tanımlayalım | |
A = [ 0.3*cos(pi/6) 1.2*sin(pi/6) | |
0.3* -sin(pi/6) 1.2*cos(pi/6)]; | |
% Figür ayarlarını yapalım | |
fig1 = subplot(1,2,1); | |
hold on; axis equal; title('U') | |
fig2 = subplot(1,2,2); | |
hold on; axis equal; title('V') | |
linkaxes([fig1, fig2]); |
This file contains 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
x = 1:0.25:5; | |
y = 1/2*x + 1; | |
y = y + rand(size(y)); | |
plot(x, y, '*k') | |
axis equal | |
axis([0 6 0 5]) |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os, random, time, shutil | |
if __name__ == "__main__": | |
kaynakKlasor = u'/home/ismail/Music' | |
hedefKlasor = u'/media/MUZIKCALAR/Music/' + time.ctime()[4:10] + '/' | |
enCokDosyaSayisi = 160 |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Merkezi limit teoreminin illüstrasyonu | |
@author: İsmail Arı, http://ismailari.com | |
@date: 31.03.2011 | |
""" | |
import scipy, scipy.stats | |
import numpy as np |
This file contains 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
clc,clear | |
A = [0.7 -0.3; 0.3 0.7] * [5 0; 0 1]; % Ölçekleme ve döndürme | |
% A = [4 -0.2;2 0.7]; % Başka bir dönüşüm | |
xRef= [0 0]'; % Uzaklık için referans nokta. Merkez için [0 0]' yapın | |
N = 5000; % Nokta sayısı | |
X = A*randn(2,N); | |
% A ile dönüştürülmüş (yaklaşık) birim çember içindeki rastgele noktalar | |
C = cov(X'); % Kovaryans (değişinti) matrisi |
This file contains 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
\usepackage[utf8x]{inputenc} |
This file contains 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
x = 0:0.01:20; | |
y1 = 200*exp(-0.05*x).*sin(x); | |
y2 = 0.8*exp(-0.5*x).*sin(10*x); | |
[ax,h1,h2] = plotyy(x,y1,x,y2,'plot'); |
OlderNewer