Monday, September 19, 2016

Exercise 3

The exercise that week was about Filtering images. The exercise required us to make a medianBlur filtering function. The exercise was rather easy, however my partner and I had some troubles.

First off, the function we made only catered to kernels with only 1 as their values. The function wouldn't work well on kernels with different cell values. Second, because of the first problem, we couldn't test other kernels such as the Gaussian Kernel.

While we both learned how filtering works, it was such a shame that we weren't able to do the exercise correctly.

Exercise 4 was rather a mix of easy and hard, unlike the other exercises. The exercise was all about binarization and edge detection. Binarization is a process of turning the photo foreground to black, then the background would be white, or vice versa, given a threshold. Edge Detection simply means detecting the edges or outlines of the foreground of the photo.

Now why did I thought it was a mix of easy and hard? That's because the difficulty of these two processes depends on the photo one is working with. For example, in the Binarization part, we found the quote.jpg and magazin1.jpg easier to binarize, while magazin2.jpg was harder to binarize. My partner and I used brute force to get rid of the annoying background so it would be easier to make the text appear.


Original quote.jpg.

Binarized quote.jpg where the the letters of the image are all in black.

Original magazin1.jpg.

Binarized magazin1.jpg.

Original magazin2.jpg.

Binarized magazin2.jpg. Notice how the photo is still not clean and still has the noise from the original photo.

As for the Edge Detection part, the photo was really hard to work on with, since one part looked illuminated while the other didn't. While I was able to (somehow) get the edges, the algorithm we did may not be correct as we still used brute force to binarize the photo.


Original source.png.


Binarized source.png.

While I understood the purpose of Binarization, I didn't appreciate the Edge Detection much, since it invloved a lot of steps compared to Binarization. I still understood the two concepts nonetheless. Hopefully I would get to appreciate Edge Detection when we get to the later exercises.

Monday, August 29, 2016

Exercise 1

I never really thought image processing would involve so much Math and everything. Of course I expected Math since this is a CMSC course, but I didn't anticipate the first exercise would have a formula for it to be solved.
The first exercise involved two photos of teachers, A and B. We have to manipulate teacher A and turn it to teacher B by using a certain formula that will transform all pixels until A transforms to B. Pretty cool if you'd ask me, but formulating an algorithm is a bit tricky, in my opinion. When I finally thought I got how to solve the exercise, it was already time...
While what my partner and I did on the exercise didn't came out right, at least we now know that image transformations are performed and manipulated using formulas, and each formula gives the image a different transformation.

Wednesday, November 28, 2012

A Certain Subject - Expectations

There's a certain subject (CMSC 2)that I know that I have expectations with. Given the title, I expect that subject to be cool and easy. Expect ko sa Lab instructor ko na mas magiging masaya pa ang mga susunod na sessions, and I expect that my classmates would be mabait(of course) and friendly. :D