Showing posts with label CST205. Show all posts
Showing posts with label CST205. Show all posts
Tuesday, April 18, 2017
CST 205 Module 7
This class was overall quite enjoyable. We learned through hands on projects by manipulating and using pictures, sounds, and even some html, all while learning about the python programming language in the JES. Perhaps the most rewarding aspect of the course was the group projects in which we learned through experience what it takes for a team to plan, execute and accomplish programming tasks. I believe the practice working with others programming is very applicable to a career in computer science, as it will be necessary to review and rewrite programs together with co-worker to achieve the desired results. To any future students who take this course, I would suggest that they keep on top of the workload, as the fast pace nature of the course can leave you feeling overwhelmed if you are not careful.
Tuesday, April 11, 2017
CST Module 6
This week we went over lists, dictionaries and working with files. It was interesting to study these and the projects we did were quite fun. We created a madlib, sorted through a txt file and an html file. I also got the chance to create my video for the lab presentation and I enjoyed the process of writing up and presenting my information.
Tuesday, April 4, 2017
CST 205 Module 5
This week was very interesting. Most of our efforts were devoted to working on the group project. It was interesting and fun to work on the project, a text based game, and I enjoyed the group aspect of it. Using the kobra editor was an interesting break from the JES environment for us to work together in and I am interested in learning about similar collaborative online editors. I’m still very glad I got such a good group of motivated individuals who work well together in the group.
Tuesday, March 28, 2017
CST 205 Module 4
This week we finished and submitted our Midterm projects. I worked on a CSUMBerize and a Spring themed photo filter. We also took an interesting look into audio files, and worked with .wav file to make our own new noise files. It was relatively simple to change the sequence, volume and even the order of the different audio files. It was also nice to get the opportunity to work in a subgroup with A this week, as we worked on labs 8 and 10 together. Lab 8 was more work in the audio department while lab 10 was creating a text-based hangman game using loops we went over.
Tuesday, March 21, 2017
CST 205 Module 3
This week we reviewed some interesting material. We began by taking our first foray into git and github, setting up accounts and going over the basics of the system. I look forward to using git more often as we collaborate more on larger projects in the future. I was able to work on creating a St. Patrick’s Day card for the holiday, and quite enjoyed working with the skills I’ve learned thus far in creating the card. We also spent time going over what we will be doing for our midterm project in this course. I plan on working on my CSUMB filter and a Spring themed filter for my project. Besides this we finished our peer and self reviews this week, which helped me to look at my limits and see where I can improve in the weeks ahead.
CST 205 Image Portfolio
Rose-colored glasses
The roseColoredGlasses function takes a picture, cycles through all the pixels and decreases that pixels green and blue values. The result is that the picture takes a pinkish tint as if looking through rose colored glass.
Before
|
After
|
Code
|
Negative
The makeNegative function takes the red, green and blue values and subtracts them from the max rgb value of 255 so that the color of each pixel is switched. The result is the creation of an image that looks like the negative of the original image.
Before
|
After
|
Code
|
Better black and white
The betterBnW function cycles through the pixels of a picture and balances the rgb values to get the luminance of each pixels. This value is then set to the individual rgb values of the target pixels resulting in a very clean black and white image.
Before
|
After
|
Code
|
Bottom-to-top mirror
The bottomToTop function takes an image and cycles through the bottom of the image. It then copies the color of each pixel and sets that color to the pixel opposite it on the top half of the image. This results in a mirroring of the image about the center.
Before
|
After
|
Code
|
Shrink
The shrink function takes an image and creates a blank image that is half the length and width of the original image. It then copies every other pixel from the original to the copy resulting in a shrunken copy of the original.
Before
|
After
|
Code
|
Collage
The collage allows you to choose images that will be modified using previously created functions and places these images throughout a page sized image.
Results
|
Code
|
Red-eye Reduction
The removeRedEyeFromPicture function cycles through the pixels in an image and compares the pixel to a few different red colors. If the color is close enough to the red we are looking for, the original pixels color is changed to black, thus fixing the red eye.
Before
|
After
|
Code
|
Color Art-i-fy
The artify function takes the pixels from an image and checks their individual rgb values. Depending on the original values, it will then set the pixels to either a low, medium, or high rgb value. This results in an artistic image in which the colors take on an intense appearance.
Before
|
After
|
Code
|
Green screen
The greenScreen function takes a front image and a background image. It then cycles through the front image and if the pixels is close to a green color, it does not copy that pixel onto the background image. If the pixel is not green however, then it will copy the pixel at the same location onto the background image, thus combining the two.
Before
|
After
|
Code
|
Homemade St. Patrick's Day
The stPatrickCard function takes three images, it first goes through the clover image and if the individual pixel is green, then it copies the pixel into the top right corner of the base image. After that it goes through the cat picture and if the individual pixel in the cat is not white copies the pixel into the bottom left of the base picture. After that the function writes a “Happy St. Patrick’s Day!” into the center of the image. The resulting card is written into the directory and displayed.
Card
|
Code
|
Line Drawing
For the lineDrawing program I used two functions, one to figure out and return the luminance of an individual pixel and the other to actually do the line drawing modification. After cycling through the pixels in the picture we check the pixel to the right and under the pixel we grabbed, we then use the luminance function to compare the luminance of the pixels and decide whether to make the pixel we are focused on black or white.One problem I faced while working on this function was to be sure and check if we had reached the greatest x or y value possible for the picture, otherwise we would be attempting to grab pixels that did not exist for comparison. If this occurred, I made the non-existent pixel point to the pixel we were currently looking at since there would be no difference in luminance.
Before
|
After
|
Code
|
Tuesday, March 7, 2017
CST 205 Module 1
This week marked the first week of CST 205, our course in multimedia design using Python. It was interesting to take our first dive into Python programming by first working through a few of the Codecademy exercises available online. We learned about some basic Python syntax for creating functions and loops. Using these, we later worked on our group lab on a number of different problems relating to picture manipulation, such as increasing the red in a picture or making a picture into a negative of itself. Together we went through lab #3 and modified, improved, and clarified any problems we had in our programs. One of the highlights personally was the group photo that one of our teammates created for the Silicon Bay team featuring all of us as superheroes with an explosion going off behind us.
Subscribe to:
Posts (Atom)