Apr 26

The semester slowly moves to its logical ending - the summer, and the only question I have is, if I’m going to use Matlab after finishing Data Image Processing lectures or not.

But since, I’m still using , here is going to be one of the last projects for DIP lesson - offset changes of an image, with later on processing of histograms.

Comparing erode and dilate functions - offset procedure doesn’t effect the neighbouring pixels - all the actions are performed on each pixel respectively.

For changing offset value of an image we need to:

  1. Create a matrix of an initial image;
  2. Create a colour array for mapping pixels of the same colours (will be used for histogram);
  3. Accept the offset value from the user;
  4. And, of course, recalculate all!

Since we’re going to work with grey scale image, we have up to 255 colours from black to white. Later on, I’ll use the picture which was taken close to the institute.

%Reading the image
Ia = imread(’a.jpg’);
disp(’..Image “A” is loaded’)

%Initializing the colour array

arrA = zeros([1 255]);

Since the image has 683×1024 size, we’re going to use the nested loop to match all the colours and store its pixels into the array:

for m=1: 683
for n=1: 1024
%Storing repetetive color indexes in color array.
for i=1: 255
%Placing colors into color arrays for 3 respectively.
if i == Ia(m,n)
arrA(1,i) = arrA(1,i) +1;
end
end
end
end

After eliminating the matrix picture, and entering the offset value, we can create an offset.m function file, where the rest of the calculations will take place. For , we’ll need to initiate a new matrix, of the same size, and another colour array, which will hold transformed pixel colours, and their quantities, to show the difference in the histograms:

for i=1: 683
for j=1: 1024
for k=1: 255
if k == Mtrx(i,j)
newArr(1,k) = newArr(1,k) + 1;
end
end
end
end
%…
disp(’Resulting …’)
figure,imshow(y); title(’Initial Image’);
figure,imshow(Mtrx); title(’Result of Offset.jpg’);
disp(’Histograms…’)
figure,plot(z);title(’Initial Histogram’);
figure,plot(newArr); title(’Resulting Histogram’);

I’ve mentioned the main states of the calculation, but if you need to get really into the sources, simply download the source files, where three have been processed, and enhanced with scaling function source files. For more complicated offset functionality, you may be interested in the offset filter made in Boston University.

Apr 23

300 movie: Sparta kick

Apr 16

was too hard for me to choose which one is better, an original version, or the remix of Above & Beyond. So you better judge yourself:

[]http://www..com/watch?v=92LHXv6N1ow[/]

For RSS-readers: ’s right here

And remix version is right after the jump:

Read the rest of this entry »

Apr 15

Working on the diagrams and digging through different , I’ve found a nice quote, which can be applied not only for :

Anything humans do well they do by taking tiny little steps and then evaluating what they have done. The things that
humans do not do well are things that they do in great leaps.We desire to create useful
diagrams. Therefore we will create them in tiny little steps.

was taken from the book of “UML for Java Programmers” by Robert Cecil Martin .

Apr 10

The polemics on the topic of ’s death reached its more less structured level even though in many different portals like Slashdot, Techmeme etc. this subject has been discussed in any possible way, but let’s get a bit detailed about .

Paul Graham in his article says that:

When did die, and of what? I know they seemed dangerous as late as 2001, because I wrote an essay then about how they were less dangerous than they seemed.I’d guess they were dead by 2005.

So, how dead is ? Giving his opinion, Duncan Riley wrote an article in 901am blog:

Micorsoft is alive and mostly well. Has clearly failed in a range of endevours? absolutely, ’s internet strategy sucks and most people will take that for a given. Zune? do most people even know what a Zune is? probably not. Was the Vista program a shambles? yes.

Main reasons, Paul mentioned in the post were:

So lets check out step-by-step.

, Ajax and dead

didn’t pose itself as leading web company, and the rise of killed not only with its msn.com search engine, became the leading search engine on the Web, and was one of the first companies pushing the idea of Web applications and promoting Ajax. Definitely, Web 2.0 bubble moved desktop apps in the shade, giving more opportunities for the developers to launch their start-up companies. At some point, ’s easier to create a web application with less OS or hardware dependencies. Everything is based on the Web standards and your own Broadband. Since I’ve mentioned Ajax here, the XMLHttpRequests was originally implemented by , but only now they got involved in Ajax community.

Products vs.

. What’s about Mac computers? Or all the services Inc. produces. Yesterday, Store declared that they’ve sold the 100 millionth iPod. Of course, ’s an impressive number for this market, where iPod dominates without no doubts, and the Zune mp3 player couldn’t equally compete with ’s product. For sure, ’s hard to produce devices which do more less the same things and differ at few dozen dollars and the company label at the back. The simplicity of the device was the key of success for iPod.

Talking about OS X killing Windows - you must be kidding me! According to the stats, ’s hard to say that Mac really made worrying about OS domination on the market:
CFT0409_07185804E37

would be more correct to say, that other Operating Systems got more attention because of overestimated expectations for Windows Vista and the increase of antitrust policy in the EU about Microsoft. Other operating systems just increased their market share, like .Nix based Os, BSD based OS X, at the same way not counting the number of PC’s which has two or more OS installed.

Broadband and Web mess

’s really hard to believe that strategic management of couldn’t expect the growth of Internet Broadband. But, I assume that focusing on the OS they’ve underestimated , and lost the Web Browser market with IE 6.x, which they’re trying to get back with the Internet Explorer 7. Web is all about standards and compatibility, which couldn’t admit with IE 6. Always coming up with alternative solutions like ASP versus Perl/PHP, or ISS vs. Apache servers, they were continuously cleaving the Web, while they could have got more income on implementing some support services for existing Web solutions in my opinion.

Going back to the main question of ’s death, you can see that they aren’t so true. has a huge financial potential and ability of winning back lost positions at the market, but will be harder year after year.

Apr 10

The Real Reason Aliens Won't Contact Us

« Previous Entries Next Entries »