Skip to content

Month: March 2012

Simple Download Monitor (mod) – Version 0.21.2

Hello, Recently I did some modifications to Simple Download Monitor. This modifications aloud the system to show a page “Your download will begin shortly” and…

Image convertion to GrayScale/Binary/R/G/B

Hello,

This is a small exercice of Multimedia class (INE5431). We need to implement:

1) Transform the image to GrayScale
2) Generate one image to each component color (R/G/B)
3) Transform the GrayScale image to binary

To transform RGB to GrayScale we need to use this expression:

Y = 0.3R + 0.59G + 0.11B;

And them, to convert the GrayScale to Binary

if (Y > 127) {b = 1; } else { b = 0; }

If we want just one color component, we need to get all image pixels and leave just the component that we want, or just copy the component to a new image.

In this project, we access an image and we have some functions to do what we want, convertion to GrayScale, Binary, and Component RGB. From the source image, we create a buffer image of the same size to all images and we create a for to go over all pixels and make the transformation and put it to the new buffer image.

Arduino Documentary (2010)

Hello, An interesting documentary that I just watched and recommend to curius about Arduino and Arduino enthusiast Arduino The Documentary (2010) English HD from gnd…

Brazilian “SOPA” canceled.

Good night On the 6th, Walter Feldman proposed a law project similar to SOPA on Brazil (PL 3336/2012). But that generated messages from users and…

Internet on Windows 8 Customer Preview using VirtualBox

Good afternoon, If you have any problem with the internet on Windows 8 Customer preview on VirtualBox, change your Virtual Machine settings as follow: Network…

Installing Windows 8 Preview on VirtualBox

Good Morning, A few weeks ago Microsoft released a new version of Windows, the Windows 8 Customer Preview. Probably you are curious to see what…

Installing Ubuntu 12.04 Beta 1 on VirtualBox

Good Night, Today I decided to try Ubuntu 12.04 (Precise Pangolin) Beta 1 on VirtualBox. This version will be a LTS version (Long term support)…

Law that wants to “prevent” the piracy on internet blocking websites.

Good Night, One more time the goverment are trying to “prevent” piracy on the internet blocking sites. The new Law Project PL 3336/2012 created by…