Monday, 4 December 2017

Week 11: Understand the math!

Hai guys, it has came to week 11 and things is really getting harder and harder now. But fortunately, I have got the help from the lecturer and senior and hopefully things will work out.

So, before begin to develop the code, first, of course we must know what to be included in the code, and also the rough plan on how to code. Back to week 9 update, it is mentioned that the resolution of an image whether it is brought to be focused enough or not can be determined by the "Sharpness Function". Therefore, week 11 is all about understanding equations! The sharpness function is as follow:

The rough explanation of this equation is that, assuming an image is made up of pixel with threes= sub components, that is, the red, green and blue (RGB) colour component, and the pixels are arranged in the form of array of x and y. The intensity of the RGB will light up differently and individually to give different colour on that particular pixel so that a desired colour is obtained. 

I(x,y) is the intensity value of an image pixel located at (x,y)
Parameter J and K is the height and width of focusing region in the image.

By inserting the sharpness function in the java code, it is believed that the software will detect the peak point when the specimen is brought to be focused and should stop when that particular point is reached. 

Next, on how to connect the Arduino to the Android Studio. This is definitely a hassle project because it involves manual configuration of a lot of stuff. The program flow is as follows

A lot of coding is involved in this process and should be included in week 12 where we start to program the app step by step. Hopefully it's a good and progressive week. Thanks for staying tuned! See ya guys next week!

No comments:

Post a Comment