stillhq.com : Mikal, a geek from Canberra living in Silicon Valley (no blather posts) http://www.stillhq.com The life, times, travel and software of Michael Still (no blather posts) en Copyright (c) Michael Still 2000 - 2006 blosxom simplerss20 v20050208hh 180 http://blogs.law.harvard.edu/tech/rss Do you think there is something wrong with my FFT? /phd Tue, 26 Jul 2005 01:09:00 GMT I'm no genius, but I don't think FFTs are meant to look like this: <br/><br/> <div align="center"> <img src="/diary/pictures/fftbroken.png"> </div> <br/><br/><i>Tags for this post: phd(<a href="http://www.stillhq.com/phd"><img src="http://www.stillhq.com/tagicon.cgi?post=/phd/000017&tag=phd&format=.png" border="0" alt="S"></a>) </i> <br/><br/> <a href="http://www.stillhq.com/phd/000017.commentform.html">Comment</a> http://www.stillhq.com/phd/000017.html http://www.stillhq.com/phd/000017.html Bingo! /phd Tue, 28 Jun 2005 00:35:00 GMT So, the code for YUV420 to RGB24 conversion now works, which is good. It's a little embarrassing that this took a couple of hours. At one point I mistook y for Y, and had a sign error. Oh well... <br/><br/> <div align=center><img src="/diary/pictures/yuv-2.png"></div> <br/><br/> <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/opensource" rel="tag">opensource</a> <a href="http://technorati.com/tag/linux" rel="tag">linux</a> <a href="http://technorati.com/tag/video4linux" rel="tag">video4linux</a> <a href="http://technorati.com/tag/yuv" rel="tag">yuv</a> <a href="http://technorati.com/tag/rgb" rel="tag">rgb</a> <a href="http://technorati.com/tag/convert" rel="tag">convert</a> <a href="http://technorati.com/tag/color" rel="tag">color</a> <a href="http://technorati.com/tag/space" rel="tag">space</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000016.commentform.html">Comment</a> http://www.stillhq.com/phd/000016.html http://www.stillhq.com/phd/000016.html Ok, I've finally snapped /phd Mon, 27 Jun 2005 17:46:00 GMT I was just writing some code to manipulate a bitmap, something I need to do for my PhD (specifically, I'm converting YUV420P to RGB24). Anyhoo, the image isn't looking right, so before I go to sleep on it I thought I would dump the YUV values next to the RGB ones and see if I could eyeball the problem. <br/><br/> I swear that as I was writing this I was thinking -- "I'll let the compiler optimise and write for readability". Do you think I succeeded? <br/><br/> <ul><pre> for(x = 0; x < 320; x++) { for(y = 0; y < 240; y++) { raster[((y + 480) * 640 * 2 + x + 640) * 3] = realfile[640 * 480 + (y * 320 + x)]; raster[((y + 480) * 640 * 2 + x + 640) * 3 + 1] = realfile[640 * 480 + (y * 320 + x)]; raster[((y + 480) * 640 * 2 + x + 640) * 3 + 2] = realfile[640 * 480 + (y * 320 + x)]; raster[((y + 480) * 640 * 2 + x + 640 + 320) * 3] = realfile[640 * 480 + (320 * 240) + (y * 320 + x)]; raster[((y + 480) * 640 * 2 + x + 640 + 320) * 3 + 1] = realfile[640 * 480 + (320 * 240) + (y * 320 + x)]; raster[((y + 480) * 640 * 2 + x + 640 + 320) * 3 + 2] = realfile[640 * 480 + (320 * 240) + (y * 320 + x)]; } } </pre></ul> <br/><br/> Here's the image I get at the moment: <br/><br/> <div align=center><img src="/diary/pictures/yuv-1.png"></div> <br/><br/> See how the RGB image on the left isn't colorful enough? That pen there is lime green. Anyways, if anyone can see the problem and wants to give me a hint, that would be cool too. <br/><br/> <i>Update:</i> It would seem that the terms YUV420, YUV420P, iYUV, and I420 are all interchangeable, to add to the fun. <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/yuv" rel="tag">yuv</a> <a href="http://technorati.com/tag/rgb" rel="tag">rgb</a> <a href="http://technorati.com/tag/color" rel="tag">color</a> <a href="http://technorati.com/tag/space" rel="tag">space</a> <a href="http://technorati.com/tag/convert" rel="tag">convert</a> <a href="http://technorati.com/tag/code" rel="tag">code</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000015.commentform.html">Comment</a> http://www.stillhq.com/phd/000015.html http://www.stillhq.com/phd/000015.html Huffman coding /phd Tue, 07 Jun 2005 00:47:00 GMT Some links on Huffman coding: <br/><br/> <ul> <li><a href="http://en.wikipedia.org/wiki/Huffman_coding">Wikipedia entry</a> <li><a href="http://compression.graphicon.ru/download/articles/huff/huffman_1952_minimum-redundancy-codes.pdf">A PDF of the original paper</a> <li><a href="http://citeseer.ist.psu.edu/context/8864/0">It's certainly been cited a bit</a> <li><a href="http://www.cs.toronto.edu/~cosmin/pngtech/optipng.html">Oh, and PNG uses Huffman coding too</a> </ul> <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/huffman" rel="tag">huffman</a> <a href="http://technorati.com/tag/coding" rel="tag">coding</a> <a href="http://technorati.com/tag/theory" rel="tag">theory</a> <a href="http://technorati.com/tag/link" rel="tag">link</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000014.commentform.html">Comment</a> http://www.stillhq.com/phd/000014.html http://www.stillhq.com/phd/000014.html Random learning for the day /phd Tue, 07 Jun 2005 00:06:00 GMT So, I didn't realise that Group 3 Fax Compression, probably the most common compression applied to those little bits of paper a lot of people transmit around the planet, is just <a href="http://www.garretwilson.com/essays/computers/group3fax.html">run length compression</a>. I always assumed it was better than that, especially as the <a href="/libtiff/">libtiff</a> implementation differentiates between the two. <br/><br/> No matter where you go, there you are. <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/compression" rel="tag">compression</a> <a href="http://technorati.com/tag/group" rel="tag">group</a> <a href="http://technorati.com/tag/3" rel="tag">3</a> <a href="http://technorati.com/tag/fax" rel="tag">fax</a> <a href="http://technorati.com/tag/ccitt" rel="tag">ccitt</a> <a href="http://technorati.com/tag/tiff" rel="tag">tiff</a> <a href="http://technorati.com/tag/run" rel="tag">run</a> <a href="http://technorati.com/tag/length" rel="tag">length</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000013.commentform.html">Comment</a> http://www.stillhq.com/phd/000013.html http://www.stillhq.com/phd/000013.html The JPEG still picture compression standard /phd Thu, 02 Jun 2005 02:11:00 GMT PhD night this week is brought to you by an understanding wife and Cite-seer... <br/><br/> <a href="http://portal.acm.org/redirect.cfm?url=pubs/citations/journals/cacm/1991-34-4/p30-wallace">Original paper</a> discussing the JPEG standard and it's standardisation progress. <a href="http://citeseer.ist.psu.edu/context/25160/0">Citations</a>. Interesting looking citations include: <ul> <li><a href="http://citeseer.ist.psu.edu/provos01defending.html">Defending Against Statistical Steganalysis (2001)</a> <li><a href="http://citeseer.ist.psu.edu/avcibas01image.html">Image Quality Statistics and Their Use in Steganalysis and Compression (2001)</a> <li><a href="http://citeseer.ist.psu.edu/665610.html">Statistical Tools for Digital Forensics</a> <li><a href="http://citeseer.ist.psu.edu/722571.html">Trends and perspectives in image and video encoding (2005)</a> <li><a href="http://citeseer.ist.psu.edu/celandroni97bandwidth.html">A Bandwidth Assignment Algorithm On A Satellite Channel For VBR Traffic (1997)</a> <li><a href="http://citeseer.ist.psu.edu/108662.html">Methods for Encrypting and Decrypting MPEG Video Data Efficiently (1996)</a> <li><a href="http://citeseer.ist.psu.edu/aalmoes96video.html">Video Compression Techniques Over Low-Bandwidth Lines (1996)</a> <li><a href="http://citeseer.ist.psu.edu/aalmoes95overview.html">Overview of Still-picture and VideoCompression Standards (1995)</a> <li><a href="http://citeseer.ist.psu.edu/seales96content.html">Content Analysis of Compressed Video (1996)</a> <li><a href="http://citeseer.ist.psu.edu/233784.html">Multimedia Benchmarks: A Performance Comparison of Multimedia Programs on Different Architecture</a> <li><a href="http://citeseer.ist.psu.edu/236432.html">Characterization of Video Traffic (1995)</a> <li><a href="http://citeseer.ist.psu.edu/345417.html">Characterization of Video Traffic (1995)</a> </ul> <br/><br/> I can't provide a better link than the ACM redirect link, as the ACM portal seems to be suffering at the moment: <br/><br/> <ul><pre> Error Diagnostic Information An error occurred while attempting to establish a connection to the service. The most likely cause of this problem is that the service is not currently running. You can use the 'Services' Control Panel to verify that the service is running and to restart it if necessary. Windows NT error number 2 occurred. </pre></ul> <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/acm" rel="tag">acm</a> <a href="http://technorati.com/tag/jpeg" rel="tag">jpeg</a> <a href="http://technorati.com/tag/compression" rel="tag">compression</a> <a href="http://technorati.com/tag/image" rel="tag">image</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000012.commentform.html">Comment</a> http://www.stillhq.com/phd/000012.html http://www.stillhq.com/phd/000012.html My thesis worries are over /phd Wed, 25 May 2005 16:54:00 GMT Google has once again saved the day: <br/><br/> <div align="center"> <img src="/diary/pictures/thesis.png"> </div> <br/><br/> I can buy a thesis from at least five places, including the quite reputable Ebay! <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/thesis" rel="tag">thesis</a> <a href="http://technorati.com/tag/online" rel="tag">online</a> <a href="http://technorati.com/tag/purchase" rel="tag">purchase</a> <a href="http://technorati.com/tag/ebay" rel="tag">ebay</a> <a href="http://technorati.com/tag/google" rel="tag">google</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000011.commentform.html">Comment</a> http://www.stillhq.com/phd/000011.html http://www.stillhq.com/phd/000011.html First to publish, academic articles, and blogging /phd Mon, 23 May 2005 18:18:00 GMT So, I've been wondering about this for a little while. Where do I draw the line between blogging, and putting in jeopardy the first publication date for my academic papers? My understanding is that my thesis needs to be unique and original at the time of publication, but that if I blog bits of it before then, then I put that at risk because someone else might write a paper about it and publish it before me. Then again, how does blogging differ from progress seminars? <br/><br/> Discuss. <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/publication" rel="tag">publication</a> <a href="http://technorati.com/tag/blog" rel="tag">blog</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000010.commentform.html">Comment</a> http://www.stillhq.com/phd/000010.html http://www.stillhq.com/phd/000010.html Please be gentle /phd Mon, 23 May 2005 00:18:00 GMT I just submitted the first draft of my first academic paper to my PhD supervision team. I hope their gentle... <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/article" rel="tag">article</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000009.commentform.html">Comment</a> http://www.stillhq.com/phd/000009.html http://www.stillhq.com/phd/000009.html PhD night /phd Thu, 19 May 2005 02:28:00 GMT My loving and very patient wife Catherine decided after the conference was finished that I should continue to use the organising night (Thursdays) to hang around university, but this time for my PhD. I liked the idea, so here I am on my first night in the office at ANU plodding away. I'm actually being fairly productive, which is nice. <br/><br/> For my PhD I agreed to do 20 hours of study a week. To be honest I do more some weeks, and less others, but I'm pretty sure without having tracked it at all that I'm doing more than the 20 hours. This evening will just mean that I can spend some more time with the kids on the weekends, which will be nice. <br/><br/> I suspect that one of the reasons it doesn't feel like I'm progressing a lot at the moment is that I am in a writing up stage, and I'm working at approximately half the rate of a normal PhD student. I'm a little over a year in, which means that I've done the equivalent of six months for a full time PhD student. I wonder how much they've got done within their first six months? <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/progress" rel="tag">progress</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000008.commentform.html">Comment</a> http://www.stillhq.com/phd/000008.html http://www.stillhq.com/phd/000008.html Fast Fourier transforms for gnuplot /phd Thu, 12 May 2005 00:12:00 GMT Does anyone know of a good way of doing Fast Fourier Transforms with gnuplot? I can't find anything online which implies that it's possible, so I'm feeling a bit sad at the moment. <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/fast" rel="tag">fast</a> <a href="http://technorati.com/tag/fourier" rel="tag">fourier</a> <a href="http://technorati.com/tag/transform" rel="tag">transform</a> <a href="http://technorati.com/tag/fft" rel="tag">fft</a> <a href="http://technorati.com/tag/gnuplot" rel="tag">gnuplot</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000007.commentform.html">Comment</a> http://www.stillhq.com/phd/000007.html http://www.stillhq.com/phd/000007.html Argh! CVS! /phd Wed, 11 May 2005 00:45:00 GMT So, after fighting CVS for the afternoon I now have all the data back into a consistent state (most of the data is generated on my research machine in my office at university, whilst the editing of reports is done on my laptop where it happens to be). Now I'm seriously considering changing from CVS as it was a total pain... Then again, there are a lot of tools that I have hanging off CVS now, so perhaps I'll wait just a little bit longer. <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/cvs" rel="tag">cvs</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000006.commentform.html">Comment</a> http://www.stillhq.com/phd/000006.html http://www.stillhq.com/phd/000006.html Thunk /phd Tue, 10 May 2005 16:51:00 GMT That's the sound of me dropping in new data for my PhD report that I am working on. I discovered that a bunch of my colour data wasn't being generated properly, which put a bunch of my conclusions into doubt. I've spent a bunch of time regenerating gigabytes of images so that I can rerun my analysis scripts, and now I just need to make sure that I am still making conclusions which are justified. I'm hoping to have a first draft of some form to my PhD supervision team by the end of the week. Famous last words. <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000005.commentform.html">Comment</a> http://www.stillhq.com/phd/000005.html http://www.stillhq.com/phd/000005.html Getting back into it /phd Wed, 04 May 2005 23:54:00 GMT Realistically I lost about four months of this year on my PhD to running <a href="http://lca2005.linux.org.au">linux.conf.au</a>. Now I need to get back into things. I currently in the process of writing up my first academic paper, and need to make sure that my results, and more importantly the analysis of those results is correct. So, back so staring at a monitor I suppose. <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000004.commentform.html">Comment</a> http://www.stillhq.com/phd/000004.html http://www.stillhq.com/phd/000004.html More academic paper progress /phd Mon, 21 Mar 2005 01:38:00 GMT Well, I've been a little too slack recently on working on my first academic paper for my PhD thesis. This is mainly because I've been distracted helping run <a href="http://lca2005.linux.org.au">linux.conf.au 2005</a>, but it's also been because I've been grappling with issues of style for an academic paper, of which I have not written many in the past. <a href="http://www.samba.org/tridge/">One of my supervisors, Tridge</a> had an interesting suggestion -- just go with plain English. It's much easier to read, and coveys the information better as well. <br/><br/> Anyways, I was strong and sat down for three or four hours this afternoon and got some serious writing in. It helped a lot, as I think I've finally broken the writers block which was holding me up. Ironically for a computer science paper, I wrote it on a piece of dead tree. There's something daunting about a big pad of blank paper which makes it much more motivational to at least get something down -- even if it's wrong. You can always change it later. <br/><br/> Don't get me wrote though. I had actually written some stuff before, about eight or so formatted pages. It's just than in one day I think I'll have come close to doubling that length, and got much closer to a completed document. <br/><br/> Why the first paper of my thesis? Well, I'm going for the American style of thesis, where you take a series of papers you've written during your studies and got published in peer reviewed journals, and you staple them together to produce a thesis. This is a lot safer than the more traditional style of big bang thesis, as the uniqueness test occurs at the time of individual paper publication, not later when the whole thesis comes out. This mitigates a lot of the risk of spending a big chunk of your life producing something which isn't unique enough to count. <br/><br/><i>Technorati tags for this post: <a href="http://technorati.com/tag/phd" rel="tag">phd</a> <a href="http://technorati.com/tag/academic" rel="tag">academic</a> <a href="http://technorati.com/tag/paper" rel="tag">paper</a> <a href="http://technorati.com/tag/author" rel="tag">author</a> </i> <br/><br/> <a href="http://www.stillhq.com/phd/000003.commentform.html">Comment</a> http://www.stillhq.com/phd/000003.html http://www.stillhq.com/phd/000003.html SnoopyPro vs Sniff 2000 /phd Mon, 13 Dec 2004 02:26:00 GMT I've been playing with SnoopyPro again, after having put it on the shelf for about six months. Anyways, I needed to compile it again to make <a href="/extracted/usblogdump/">usblogdump</a> work with some URBs I hadn't implemented the first time around. I can't get it to compile with the latest version of the Windows Device Driver toolkit. Now I'm playing with Sniff 2000, which seems to be the next iteration of the code base. I'll let you know how things go... <br/><br/> <a href="http://www.stillhq.com/phd/000002.commentform.html">Comment</a> http://www.stillhq.com/phd/000002.html http://www.stillhq.com/phd/000002.html Started writing up my compression stuff /phd Mon, 13 Dec 2004 02:24:00 GMT Well, I finally started writing up my compression stuff the other day. It's a little bit exciting, as there are a bunch of tools to learn on the way. I've conquered gnu plot, resizing eps (try hacking the postscript with a sed script is my advice), and now I'm onto an extended battle with latex. My newfound ACM membership helps here though -- there are a bunch of latex tutorial articles from Linux Journal in the ACM archive. <br/><br/> <a href="http://www.stillhq.com/phd/000001.commentform.html">Comment</a> http://www.stillhq.com/phd/000001.html http://www.stillhq.com/phd/000001.html