by onur
23. January 2012 01:19
This year I spent my semester break having enjoyable time. My sister came to visit me from İzmir. I promised her to spent more time together, so we travel and see different places in 6 days. I can also create time for myself to read book, watch films and also have some sleep
After 6 days, I feel rested and also ready to work hard. My sister also motivated for the next semester for her high school classes. Having time with family is wonderful and I hope following years we will repeat such activities in other places (Maybe US or Europe
)
And maps shown in below is the summery of our visits for 6 days.

3b11ea17-b7f7-4a7f-b20c-5057a26e10af|4|3.0
Tags:
by onur
2. January 2012 01:55
I expect lots of thing from the 2012. Education, life, health.. It is endless things we wish to happen and also we work for it. In this post I share short MATLAB script for new year message. In this script you will give a text file which containes your new year message and image file. (I resize my output file to hide my new year message
)
| % Onur Varol - 30.12.2011 % This script is written to convert images to any text ASCII art image. clear all % Read Image img = imread('input.jpg'); imGray = rgb2gray(img); pic = uint8(255*ones(size(imGray))); % Read Text fid = fopen('text.ov', 'r'); message = fread(fid, '*char'); fclose(fid); m = 8; % Bounding box of each letter (px) n = 8; h = figure; count = 0; imshow(pic) for j = 1:m:size(pic,1)-m for i= 1:n:size(pic,2)-n avg = floor(mean(mean(imGray(j:j+m,i:i+n)))); % Average color in bounding box rgbc = hsv2rgb([0 1-avg/255 1]); text('Units','Normalized','Position',... [i/size(pic,1) 1-j/size(pic,2)],... 'VerticalAlignment','bottom',... 'String',['\fontsize{4}\color[rgb]{'... num2str(rgbc(1)) ' ' num2str(rgbc(3)) ' '... num2str(rgbc(2)) '}' ... message(mod(count,length(message))+1)]); count = count + 1; end end print(h, '-djpeg', 'image'); close all |
5321280c-e130-4dfc-a63a-ac1acb657287|3|3.7
Tags: