Wednesday, August 08, 2012

Lytro Camera and Light Field Pictures (LFP)

Finally got my Lytro camera two month ago and have already filled up my Lytro photo library with more than one thousand pictures, which stores more than 20GB wroth of data on my hard driver. Of course I keep a backup on my Dropbox folder, which means another 20GB on my hard driver and my paid cloud storage service.

Light field cameras are new technologies, as well as light field pictures. Lytro, Inc. has developed a new file format, called LFP (which is short for Light Field Photography or Light Field Pictures), that is used for almost everything, let it be storing some (about 1GB) mixture of text and binary data about the camera, including the lens array calibration information and wifi MAC address, or storing the raw data and/or the processed data for a light field picture. Now, the best thing about the Lytro, Inc. is that, besides developing this new file format (which is simple enough to reverse-engineer quickly), they are keeping everything transparent, making it easy to understand the logic behind their software and be able to liberate our own data. More importantly, this method allows using common technologies to develop for the Lytro camera, the Lytro Desktop application, and the light field pictures.

Since Lytro released a Windows version of the Lytro Desktop application a couple of weeks ago, I was able to play with my photo library and LFP files. The result is two new pet projects.

Lytro Library Merger

This small Python application lets you merge any Lytro Desktop photo library to your main photo library. For example, if you have a photo library on a Mac OS X machine and have created another one on a Windows machine, now you can merge these two and get all your photos in one place.

More on Lytro Library Merger at http://behnam.github.com/lytro_library_merger/

python-lfp-reader

This is small Python library that comes with some very useful command-line scripts for working with LFP files. But the more interesting feature for some users can be lfp_picture_viewer which displays any processed LFP image and allows you to refocus the image; and it works (almost) any platform that supports Python, including Linux, Windows, and Mac OS X.

Download it at http://pypi.python.org/pypi/lfp-reader or if you prefer the command-line, try "easy_install lfp-reader".

More on http://behnam.github.com/python-lfp-reader/

Moving to zwnj.behnam.es

It was eight years ago that I registered the domain zwnj.org and began writing about software engineering, the Internet and the Persian language. I am still going to do the same, more or less, but I have decided to move this blog to a new address, zwnj.behnam.es, as I'm moving my whole digital identity to one place, behnam.es.

Wednesday, July 01, 2009

First release of Persian Mozilla Firefox ever!

Download Persian Mozilla Firefox 3.5 now! This is the first time Firefox is released in Persian. The number of supported languages has raised to 70 this time!

I started the Mozilla Persian localization team back in 2002 and after almost 7 years, this is our first release, which is very very close to perfect! I should thank Ehsan Akhgari for his great help to the Persian team and the Mozilla project generally in the past couple of years.

Sunday, February 15, 2009

Gmail Wish

Wish Gears had GPG integrity so Gmail could sign and encrypt emails via the web UI...

Sunday, February 08, 2009

RIRA.IRAN (ری‌را.ایران)

We got a new Persian domain name (IDN) for RiRa, the free Persian digital library. It's وب.ری‌را.ایران.ir. (translation: web.rira.iran.ir ;)

UDHR in Persian

Finally the Persian translation of the Universal Declaration of Human Rights is available on the UDHR in Unicode project. (get the PDF)

This Persian (Farsi) version is an encoding of this old printed version. If you know any newer translation available in public domain please inform us.

Jalali GCal 3.0 & Greasefire


Jalali GCal has a major update, version 3.0.
  • It's updated to recent changes by Google on the Calendars's HTML code;
  • now uses jQuery for some operations, which makes it somehow faster now and later updates will be easier as well;
Get the new English and Persian edition from the Google Code download page. If you cannot access Google Code, or have problems with Persian text, please try the userscripts.org mirror; English and Persian.

OTOH I found this handy Firefox/Greasemonkey extension named Greasefire, which lists all available user-scripts (from userscripts.org) for current site in just one click, and you can install them rightaway!

The exciting news is that Jalali GCal has the 6th place in the list of scripts for Google Calendar in Greasefire (actually userscripts.org)!