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
#!usr/bin/ruby | |
#encoding: utf-8 | |
#Kullanicinin girdigi sayiyi bilgisayarin tahmin etmesi | |
puts "Oyun oynamak icin 0-100 arasi bir sayi giriniz" | |
sayi = gets | |
tahmin_sayisi = 1 | |
a, b = 0, 100 |
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
#!usr/bin/ruby | |
#encoding: utf-8 | |
#Bilgisayarin urettigi sayiyi tahmin etme oyunu | |
puts "Tahmin icin 0-100 arasi bir sayi giriniz." | |
puts "Cikmak icin q ya basin" | |
tahmin_sayisi = 1 | |
s = Random.new |
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
% sadece mavi boncukları gösterir | |
clear all; close all; clc; | |
im = imread('http://i.imgur.com/TwDQZKO.jpg'); | |
bwr = r <= 50; | |
bwg = g <= 150; | |
bwb = b >= 125; |
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 boncuk_ayristirma(im) | |
im = imread('http://i.imgur.com/TwDQZKO.jpg'); | |
subplot(3,2,1); imshow(sari(im)); | |
subplot(3,2,2); imshow(mavi(im)); | |
subplot(3,2,3); imshow(turuncu(im)); | |
subplot(3,2,4); imshow(bordo(im)); | |
subplot(3,2,5); imshow(siyah(im)); | |
subplot(3,2,6); imshow(yesil(im)); | |
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
function [image,mask] = chromaKey(background, foreground, key) | |
R = key(1); | |
G = key(2); | |
B = key(3); | |
imF = (foregrond(:,:,1)<=R) & (foreground(:,:,2)<=G) & (foreground(:,:,3)>B); | |
imFu = cast(~imF, 'uint8'); | |
imFm = cast(imF, 'uint8'); | |
imCk = cast(ones(size(background)),'uint8'); | |
imCk(:,:,1) = background(:,:,1).*imFm + imFu.*foreground(:,:,1); |
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
clear all; | |
clc; | |
im=imread('left_near.png'); | |
t=graythresh(im); | |
im=im2bw(im,t); | |
[x,y]=size(im); | |
sol=im(1:x,1:y/2); | |
sag=im(1:x,y/2+1:y); |
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
clc; | |
im=imread('zar.png'); | |
resim=im; | |
t=graythresh(im); | |
im=imcomplement(im2bw(im,t)); | |
say1=1; | |
say2=1; | |
l=bwlabel(im); |
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
clc; | |
a=imread('cameraman.tif'); | |
t=[2 0 0; 0 3 0; 0 0 1]; | |
tform=maketform('affine',t); | |
k=imtransform(a,tform); | |
figure(1); | |
imshow(a); | |
figure(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
clc; | |
im=imread('coins.png'); | |
im=im2bw(im); | |
im=imfill(im,'hole'); | |
subplot(2,2,1); | |
imshow(im) | |
label=bwlabel(im); | |
toplam=max(max(label)); |
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
key requestid; | |
key user; | |
string botid; | |
string cust; | |
string reply; | |
string newreply; | |
integer that_begin; | |
integer that_end; | |
integer cust_begin; |