<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>my digital playground &#187; Java</title>
	<atom:link href="http://blog.vogel.vu/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vogel.vu</link>
	<description>photography &#124; computers &#124; daily things</description>
	<lastBuildDate>Wed, 12 Jan 2011 17:36:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Video processing</title>
		<link>http://blog.vogel.vu/2009/11/14/video-processing/</link>
		<comments>http://blog.vogel.vu/2009/11/14/video-processing/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 13:05:03 +0000</pubDate>
		<dc:creator>Reto Vogel</dc:creator>
				<category><![CDATA[HSLU]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Multimediatechnik]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.vogel.vu/?p=350</guid>
		<description><![CDATA[This post is all about video. I created a small video recorder and a tiny app which tracks brightness and a specific color. Video recorder For this simple video recorder, I took the animation from a previous exercise (confetti) and added a record an replay function. The programm makes a mov-File of the animation. The [...]]]></description>
			<content:encoded><![CDATA[<p>This post is all about video. I created a small video recorder and a tiny app which tracks brightness and a specific color.<span id="more-350"></span></p>
<h3>Video recorder</h3>
<p>For this simple video recorder, I took the animation from a previous exercise (confetti) and added a record an replay function. The programm makes a mov-File of the animation. The record starts by pressing &#8216;R&#8217; and stops after pressing &#8216;S&#8217;. After recording the file can be played/paused by pressing &#8216;P&#8217;.</p>
<p>Click <a href="http://blog.vogel.vu/wp-content/uploads/2009/11/aufgabe3.mov" class="lightview" title="Recorded animation with processing :: Compressed with H263 Codec :: width:500, height:300">here</a> to watch a recorded sample file.</p>
<p>Since the execution doesn&#8217;t work within the browser you can download the source code (pde-file) <a href="http://blog.vogel.vu/wp-content/uploads/2009/11/Aufgabe3.pde" class="lightview" title="Processing source code :: For animation recording. :: width: 400, height: 300" rel="iframe" target="_blank">here</a>.</p>
<h3>Brightness tracking</h3>
<p>The program two functions. Either recognize the brightest point in the webcam image or following a indivual definable color. This can easily be done by clicking somewhere inside the image. Then every pixel gets compared with the choosen color. If there&#8217;s a similarity, the pixel is going to be considered as a part of the object.</p>
<p><a href="http://blog.vogel.vu/wp-content/uploads/2009/11/aufgabe4.png" class="lightview" rel="gallery[350]" class="liimagelink" title="Aufgabe 4"><img class="size-medium wp-image-354 alignnone" title="Aufgabe 4" src="http://blog.vogel.vu/wp-content/uploads/2009/11/aufgabe4-300x118.png" alt="Aufgabe 4" width="300" height="118" /></a></p>
<p>By pressing UP or DOWN the tolerance value changes. Pressing the right mouse button resets the picked color and the brightest point is overlayed (yellow circle).</p>
<p>Try it out! You can view the <a href="http://blog.vogel.vu/wp-content/uploads/2009/11/Aufgabe4.pde" class="lightview" title="Processing source code :: For brightness and color tracking :: width: 400, height: 300" rel="iframe" target="_blank">source file</a> to compile (unfortunately it does not work within the browser).</p>


Bookmark, print, and share:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F11%2F14%2Fvideo-processing%2F&amp;partner=sociable" title="Print"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F11%2F14%2Fvideo-processing%2F&amp;partner=sociable" title="PDF"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="javascript:AddToFavorites();" title="Add to favorites"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/addtofavorites.png" title="Add to favorites" alt="Add to favorites" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F11%2F14%2Fvideo-processing%2F&amp;title=Video%20processing&amp;bodytext=This%20post%20is%20all%20about%20video.%20I%20created%20a%20small%20video%20recorder%20and%20a%20tiny%20app%20which%20tracks%20brightness%20and%20a%20specific%20color.%0D%0AVideo%20recorder%0D%0AFor%20this%20simple%20video%20recorder%2C%20I%20took%20the%20animation%20from%20a%20previous%20exercise%20%28confetti%29%20and%20added%20a%20record%20a" title="Digg"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.vogel.vu%2F2009%2F11%2F14%2Fvideo-processing%2F&amp;t=Video%20processing" title="Facebook"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F11%2F14%2Fvideo-processing%2F&amp;title=Video%20processing&amp;notes=This%20post%20is%20all%20about%20video.%20I%20created%20a%20small%20video%20recorder%20and%20a%20tiny%20app%20which%20tracks%20brightness%20and%20a%20specific%20color.%0D%0AVideo%20recorder%0D%0AFor%20this%20simple%20video%20recorder%2C%20I%20took%20the%20animation%20from%20a%20previous%20exercise%20%28confetti%29%20and%20added%20a%20record%20a" title="del.icio.us"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F11%2F14%2Fvideo-processing%2F&amp;title=Video%20processing" title="StumbleUpon"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fblog.vogel.vu%2F2009%2F11%2F14%2Fvideo-processing%2F&amp;t=Video%20processing" title="MySpace"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F11%2F14%2Fvideo-processing%2F&amp;title=Video%20processing" title="Live"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.vogel.vu%2F2009%2F11%2F14%2Fvideo-processing%2F&amp;title=Video%20processing&amp;annotation=This%20post%20is%20all%20about%20video.%20I%20created%20a%20small%20video%20recorder%20and%20a%20tiny%20app%20which%20tracks%20brightness%20and%20a%20specific%20color.%0D%0AVideo%20recorder%0D%0AFor%20this%20simple%20video%20recorder%2C%20I%20took%20the%20animation%20from%20a%20previous%20exercise%20%28confetti%29%20and%20added%20a%20record%20a" title="Google Bookmarks"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.vogel.vu/2009/11/14/video-processing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.vogel.vu/wp-content/uploads/2009/11/aufgabe3.mov" length="622500" type="video/quicktime" />
		</item>
		<item>
		<title>Pixel editing with Processing</title>
		<link>http://blog.vogel.vu/2009/10/31/pixel-editing-with-processing/</link>
		<comments>http://blog.vogel.vu/2009/10/31/pixel-editing-with-processing/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 13:11:37 +0000</pubDate>
		<dc:creator>Reto Vogel</dc:creator>
				<category><![CDATA[HSLU]]></category>
		<category><![CDATA[Multimediatechnik]]></category>
		<category><![CDATA[Processing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Editing]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Pixel]]></category>

		<guid isPermaLink="false">http://blog.vogel.vu/?p=275</guid>
		<description><![CDATA[According to Wikipedia, &#8220;Image editing&#8221; encompasses the processes of altering images, whether they be digital photographs, traditional analog photographs, or illustrations. Images are stored in a computer in the form of a grid of picture elements, or pixels. These pixels contain the image&#8217;s color and brightness information. In our case, we altered digital photos and [...]]]></description>
			<content:encoded><![CDATA[<p>According to <a href="http://en.wikipedia.org/wiki/Image_Editing" title="Image editing - Wikipedia" target="_blank" rel="nofollow" class="liwikipedia">Wikipedia</a>, &#8220;Image editing&#8221; <strong></strong> encompasses the processes of altering images, whether they be digital photographs, traditional analog photographs, or illustrations. Images are stored in a computer in the form of a grid of picture elements, or pixels<a href="http://en.wikipedia.org/wiki/Pixels" title="Pixels" rel="nofollow" class="liwikipedia"></a>. These pixels contain the image&#8217;s color and brightness information.</p>
<p>In our case, we altered digital photos and learned mor about how to manipulate pixels and techniques to overlay several images.<span id="more-275"></span></p>
<h3>Image manipulation</h3>
<p>I created several pixel manipulations with Processing.</p>
<p><a href="http://blog.vogel.vu/wp-content/uploads/2009/10/Aufg1_ImgMan.jpg" class="lightview" rel="gallery[275]" class="liimagelink" title="Image manipulation"><img class="alignnone size-medium wp-image-276" title="Image manipulation" src="http://blog.vogel.vu/wp-content/uploads/2009/10/Aufg1_ImgMan-300x208.jpg" alt="Image manipulation" width="300" height="208" /></a></p>
<p>You can see the result in this <a href="http://blog.vogel.vu/wp-content/uploads/2009/10/pictureprocessing/ImageMan/index.html" class="lightview" title="Applet Image Manipulation :: Please wait, until the Java Applet is loaded :: width: 750, height: 560" target="_blank">applet</a>.</p>
<h3>Pixel Image</h3>
<p>The tasks was about creating a &#8220;pixeling&#8221; effect. This can be achieved by several ways. I created a grid and took the very first point of each box. Then I filled the rest of the box with the first pixel&#8217;s color.</p>
<p><a href="http://blog.vogel.vu/wp-content/uploads/2009/10/Aufg2_PixImg-300x165.png" class="lightview" rel="gallery[275]" class="liimagelink" title="Pixel Image"><img class="alignnone size-full wp-image-300" title="Pixel Image" src="http://blog.vogel.vu/wp-content/uploads/2009/10/Aufg2_PixImg-300x165.png" alt="Pixel Image" width="300" height="164" /></a></p>
<p>The pixel-resolution can be adjusted whithin the <a href="http://blog.vogel.vu/wp-content/uploads/2009/10/pictureprocessing/PixelImage/index.html" class="lightview" title="Applet Pixel Image :: Press UP or DOWN to change the resolution (pixel size) :: width: 260, height: 320" target="_blank">applet</a> by pressing UP and DOWN.</p>
<h3>Threshold</h3>
<p>In order to get a pure black-and-white picture, you need to set a threshold. The threshold value determines, where the border between black and white is.</p>
<p><a href="http://blog.vogel.vu/wp-content/uploads/2009/10/Aufg3_Thres-300x168.png" class="lightview" rel="gallery[275]" class="liimagelink" title="Black-and-White threshold"><img class="alignnone size-full wp-image-301" title="Black-and-White threshold" src="http://blog.vogel.vu/wp-content/uploads/2009/10/Aufg3_Thres-300x168.png" alt="Black-and-White threshold" width="300" height="168" /></a></p>
<p>You can try it on your own with my <a href="http://blog.vogel.vu/wp-content/uploads/2009/10/pictureprocessing/BWThreshold/index.html" class="lightview" title="Applet B/W Threshold :: Press UP or DOWN to change the resolution and LEFT or RIGHT to set black-white threshold :: width: 260, height: 320" target="_blank">applet</a>. Press UP or DOWN to increase or decreasae the resolution and LEFT or RIGHT to change the threshold.</p>
<h3>Overlay Images</h3>
<p>This applet shows how to overlay two different images. The source are two pictures with the same size. You get different results by adding, subtracting or multiplying.</p>
<p><a href="http://blog.vogel.vu/wp-content/uploads/2009/10/Aufg4_Overlmg.png" class="lightview" rel="gallery[275]" class="liimagelink" title="Overlay and Blend effects"><img class="alignnone size-medium wp-image-279" title="Overlay and Blend effects" src="http://blog.vogel.vu/wp-content/uploads/2009/10/Aufg4_Overlmg-300x178.png" alt="Overlay and Blend effects" width="300" height="178" /></a></p>
<p>Check out the applet <a href="http://blog.vogel.vu/wp-content/uploads/2009/10/pictureprocessing/PictureOverlay/index.html" class="lightview" title="Applet Picture Overlay :: Press 0 to 9 to apply blend effects :: width: 600, height: 500" target="_blank">here</a>.</p>


Bookmark, print, and share:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F10%2F31%2Fpixel-editing-with-processing%2F&amp;partner=sociable" title="Print"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F10%2F31%2Fpixel-editing-with-processing%2F&amp;partner=sociable" title="PDF"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="javascript:AddToFavorites();" title="Add to favorites"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/addtofavorites.png" title="Add to favorites" alt="Add to favorites" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F10%2F31%2Fpixel-editing-with-processing%2F&amp;title=Pixel%20editing%20with%20Processing&amp;bodytext=According%20to%20Wikipedia%2C%20%22Image%20editing%22%20%20encompasses%20the%20processes%20of%20altering%20images%2C%20whether%20they%20be%20digital%20photographs%2C%20traditional%20analog%20photographs%2C%20or%20illustrations.%20Images%20are%20stored%20in%20a%20computer%20in%20the%20form%20of%20a%20grid%20of%20picture%20elements%2C%20o" title="Digg"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.vogel.vu%2F2009%2F10%2F31%2Fpixel-editing-with-processing%2F&amp;t=Pixel%20editing%20with%20Processing" title="Facebook"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F10%2F31%2Fpixel-editing-with-processing%2F&amp;title=Pixel%20editing%20with%20Processing&amp;notes=According%20to%20Wikipedia%2C%20%22Image%20editing%22%20%20encompasses%20the%20processes%20of%20altering%20images%2C%20whether%20they%20be%20digital%20photographs%2C%20traditional%20analog%20photographs%2C%20or%20illustrations.%20Images%20are%20stored%20in%20a%20computer%20in%20the%20form%20of%20a%20grid%20of%20picture%20elements%2C%20o" title="del.icio.us"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F10%2F31%2Fpixel-editing-with-processing%2F&amp;title=Pixel%20editing%20with%20Processing" title="StumbleUpon"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fblog.vogel.vu%2F2009%2F10%2F31%2Fpixel-editing-with-processing%2F&amp;t=Pixel%20editing%20with%20Processing" title="MySpace"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.vogel.vu%2F2009%2F10%2F31%2Fpixel-editing-with-processing%2F&amp;title=Pixel%20editing%20with%20Processing" title="Live"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fblog.vogel.vu%2F2009%2F10%2F31%2Fpixel-editing-with-processing%2F&amp;title=Pixel%20editing%20with%20Processing&amp;annotation=According%20to%20Wikipedia%2C%20%22Image%20editing%22%20%20encompasses%20the%20processes%20of%20altering%20images%2C%20whether%20they%20be%20digital%20photographs%2C%20traditional%20analog%20photographs%2C%20or%20illustrations.%20Images%20are%20stored%20in%20a%20computer%20in%20the%20form%20of%20a%20grid%20of%20picture%20elements%2C%20o" title="Google Bookmarks"><img src="http://blog.vogel.vu/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.vogel.vu/2009/10/31/pixel-editing-with-processing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

