Skip to content

Matheus Bratfisch Posts

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…

Continue reading Simple Download Monitor (mod) – Version 0.21.2

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.

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

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…

Continue reading Arduino Documentary (2010)

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…

Continue reading Brazilian “SOPA” canceled.

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…

Continue reading Internet on Windows 8 Customer Preview using VirtualBox

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…

Continue reading Installing Windows 8 Preview on VirtualBox

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)…

Continue reading Installing Ubuntu 12.04 Beta 1 on VirtualBox

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…

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

Remove or Disable Overlay Scrollbar – Ubuntu 11.10

Good Night, Sadly (for me) the Scroll bar on Ubuntu 11.10 are still the same as Ubuntu 11.04. I particularly don't like it. So I…

Continue reading Remove or Disable Overlay Scrollbar – Ubuntu 11.10

Changing the menu buttons positions on Ubuntu 11.10

Hello I'm still setting up my Ubuntu 11.10 (Oneiric Ocelot). Let's change the menu buttons (minimize, maximize, close) position to the right (again). Open your…

Continue reading Changing the menu buttons positions on Ubuntu 11.10