Google
 

9/30/09

"arguments too long" error

http://en.wikipedia.org/wiki/Xargs

Use xargs to deal with "arguments too long" error.

9/29/09

use python to manipulate large number of files in a directory.

When you have tons of files in a folder and want to manipulate them together, you will have trouble. For example if you use "mv" or "cp", you will get "Arguments are too long". You can use python to do this.

here is how to do it.

invoke python first.

>>> import os, glob, shutil
>>> for file in glob.glob('./directory1/*.tif'):
                     shutil.copy(file, './temp')

this should work.

9/17/09

debian (5.0) install more languages.

as root

>> dpkg-reconfigure locales

Use the above to install more locales.

9/14/09

Image processing libraries!


PL,IPP,openCV,ITK,VTK,visDSK(转)
2009-03-02 09:18
IPL---INTEL 图象处理库 免费 源代码不公开
openCV--INTEL 图象处理库 免费 源代码公开
IPP--IPP--INTEL 集成开发环境库(图象处理、信号处理等) 收费 源代码不公开
visDSK---MICROSOFT 图象处理库 免费 源代码公开
ITK(Insight Segmentation and Registration ToolKit)提供了一个医学图像分割与配准的算法平台,它源于美国的可视人体项目(The Visual Human Project)[3]。同样地,ITK也支持跨平台开发,以开放源代码的形式发布,目前其稳定版本为1.6,提供了几乎所有主流的医学图像分割与配准算法。
VTK(The Visualization Toolkit)是美国Kitware公司的一个开放源码的自由软件(open source)。可以应用于图像处理、计算机图形学和科学计算可视化。它在科学计算可视化尤其是三维重建功能如面绘制和体绘制方面具有强大的功能,使其在可视化,尤其是在医学图像领域得到广泛应用。VTK完全采用面向对象的设计思想来设计与开发,提供了超过300个C++类,支持Window,Unix与Linux等多种平台,支持C,C++,Java,Tcl/Tk以及Python等编程语言,目前已发布的稳定版本是4.2。
Advanced Digital Imaging Solutions Laboratory (ADISL)
Image Apprentice is a C/C++ based Image Processing Learner’s Toolkit. Students use it as a companion to their favourite Image Processing Textbook. It allows one to use self-written image processing algorithms as plugins. 
It comes with a Plugin Development Kit (PDK) that has a skeleton code having a simple coding style. A student who has attended a 101-level course in C/C++ programming is well-equipped to write an Image Processing plugin for Image Apprentice using Visual C++.
AllSeeingI
AllSeeingI (ASI) is the codename for a computer vision and visualization framework. It is a visual programming environment for rapid development and easy reusability.
Editor's Note - This project is just getting started but may be a chance for developers to contribute to a brand new vision system.
CamCap and CLAG
Links to the Nottingham video processing environment otherwise known collectively as CamCap, for camera and video processing work and CLAG, for command line based image processing/display and prototyping. The environment is windows based and makes use of DirectShow and the intel open source computer vision library (OpenCV).
CImg
The CImg Library is an open source C++ toolkit for image processing. It provides simple classes and functions to load, save, process and display images in your own C++ code. CImg stands for "Cool Image" : It is simple to use and efficient. It's like a STL for image processing!
CMVision
Project goal was to create a simple, robust vision system suitable for real time robotics applications. The system aims to perform global low level color vision at video rates without the use of special purpose harware.
CVIPtools
One of the primary purposes of the CVIPtools development is to allow students, faculty, and other researchers to explore the power of computer processing of digital images. 
The newest version of CVIPtools, version 4.3, developed at the Computer Vision and Image Processing Laboratory at Southern Illinois University at Edwardsville, under the continuing direction of Dr. Scott E Umbaugh is currently available with the new textbook, Computer Imaging: Digital Image Analysis and Processing.
EDISON
Code for the Edge Detection and Image SegmentatiON system. This system is a low-level feature extraction tool that integrates confidence based edge detection and mean shift based image segmentation. It was developed by the Robust Image Understanding Laboratory at Rutgers University.
FILTERS
Filters is a library (not an application) implementing image filters and image processing functions.
Gandalf
The Fast Computer Vision and Numerical Library. Gandalf is a C library designed to support the development of computer vision applications. Gwyddion
Gwyddion is a modular program for SPM (scanning probe microscopy) data analysis. Primarily it is supposed to be used for analysis of height fields obtained by means of scanning probe microscopy techniques (AFM, MFM, STM, NSOM), but generally it can be used for any other height field analysis or image analysis.
Gluas plus GIMP - GNU Image Manipulation Program
Gluas is a GIMP plug-in providing a enviroment for testing algorithms for image processing. The environment contains a simple editor for entering the algorithms. It uses the lua interpreter.
Hornets Eye
HornetsEye also is an attempt to trim down the Mimas library and create a minimalistic and consistent C++/Ruby real-time computer vision library with an interface to Ruby.
iLab Neuromorphic Vision C++ Toolkit (iNVT)
The iLab Neuromorphic Vision C++ Toolkit is a comprehensive set of C++ classes for the development of neuromorphic models of vision. Neuromorphic models are computational neuroscience algorithms whose architecture and function is closely inspired from biological brains. The iLab Neuromorphic Vision C++ Toolkit comprises not only base classes for images, neurons, and brain areas, but also fully-developed models such as our model of bottom-up visual attention and of Bayesian surprise.
IM Toolkit
Windows and UNIX - The idea behind IM was to create a toolkit that was not so complex as OpenCV, neither so big as VTK, but that can be used as a solid base to the development of thesis and dissertations, as for commercial applications.
ImageJ
ImageJ is a public domain Java image processing program inspired by NIH Image for the Macintosh. It runs, either as an online applet or as a downloadable application, on any computer with a Java 1.1 or later virtual machine. Downloadable distributions are available for Windows, Mac OS, Mac OS X and Linux.
Editor's Note - This project is geared towards medical image analysis. If you need to analyze image cross-sections, break/create image stacks, then this package is worth some attention!
ImLib3D
ImLib3D is a C++ library and visualisation system for 3D image processing. It contains most basic image processing algorithms, and some more sophisticated ones. ImLib3D images are STL-compliant templated containers.
Imalab
Imalab is a powerful development environment for complex applications in computer vision. It allows for flexible interactive experimentation with the vision modules developed in the Prima team, and can be dynamically extended with new modules. A versatile scripting mechanism provides for fast and convenient interactive development.
Editor's Note - Most of the documentation is in French.
IMLAB
IMLAB is a free open source graphical application for Scientific Image Processing that runs in Windows, Linux and many other UNIX systems. It supports multiple windows, data types including 32 bit integers, 32 bit real numbers and complex numbers. It is implemented in C++ and also in C to provide a very simple way to add new functions. It has many image operations and supports several file formats.
IPL
Intel® Integrated Performance Primitives (Intel® IPP) is a software library of highly optimized functions for multimedia, audio, video, speech, computer vision, image and signal processing.
IMPROMPTU
IMPROMPTU, which stands for IMage PROcessing Module for the Prototyping, Testing, and Utilization of image analysis processes, is a software package for multi-dimensional image processing. With IMPROMPTU, a user can construct an arbitrary sequence of operations to run automatically on an input volume. This sequence, referred to as a process, can be made up of operations selected from any of several categories. Each category, which represents one general type of image-processing operation, contains a number of functions.
JHLabs
Jerry's Java Image Processing Pages. A great way to explore many image processing filters by experimenting with Java applets. 
Java Advanced Imaging (JAI) API
The Java Advanced Imaging API provides a set of object-oriented interfaces that support a simple, high-level programming model which lets you manipulate images easily.
MegaWave
MegaWave2 is a free software intended for image processing. It is made of a C library of modules, that contains original algorithms written by researchers and a Unix/Linux package designed for the fast developpement of new image processing algorithms.
Leptonica Library
This site contains well-tested C code for some basic image processing operations, along with a description of the functions and some design methods. A full set of affine transformations (translation, shear, rotation, scaling) on images of all depths is included, with the exception that some of the scaling methods do not work at all depths. There are also implementations of binary morphology, grayscale morphology, convolution and rank order filters, and applications such as jbig2 image processing and color quantization.
LTI-Lib
The LTI-Lib is an object oriented library with algorithms and data structures frequently used in image processing and computer vision. It has been developed at the Chair of Technical Computer Science (Lehrstuhl fuer Technische Informatik) LTI at the Aachen University of Technology, as part of many research projects in computer vision dealing with robotics, object recognition and sign language and gesture recognition.
Lispix
Lispix is a public domain image analysis program for Microsoft Windows (PC), written and maintained by David Bright. It features a collection of special purpose research tools for electron microscopy and spectral imaging at NIST. Most of Lispix is written in Common Lisp.
LuaMat
LuaMat aims to provide a easy to use language to create visual effects and to modify images. LuaMat is a fast way to use the most popular algorithms of Image Processing and Computer Vision. As Lua, becoming the standard for video-game scripting engines, LuaMat is fast and has a simple syntax.
The Mimas toolkit
Mimas was originally conceived as a platform for real-time machine vision research. Its aim was and still is to reduce the turnaround time of new research into the application workspace. It is written in C++ and is released in source code form subject to the GNU Lesser General Public License (LGPL).
Mavis
Mavis is computer vision software for mobile robots. It's part of an ongoing, group robotics project, called Leaf.
MIRIAD
MIRIAD (Multichannel Image Reconstruction, Image Analysis and Display) is a toolbox, in the form of an environment with a large set of moderate-sized program which perform individual tasks, involving calibration, mapping, deconvolution and image analysis of interferometric data. MIRIAD software is also part of the Hat Creek telescope control software; data obtained from the telescopes is directly written into MIRIAD format with a MIRIAD user interface.
Motion
Motion is a program that monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed; in other words, it can detect motion.
tnimage
tnimage is a scientific image analysis program that allows you to create, edit, analyze, and produce color prints of images. It is particularly useful for analyzing images of SDS and agarose gels and X-ray or MRI images.
NeatVision
NeatVision is a free Java based image analysis and software development environment, which provides high level access to a wide range of image processing algorithms through well defined and easy to use graphical interface. NeatVision is in its second major release.
NIH IMAGE
NIH Image is a public domain image processing and analysis program for the Macintosh. It was developed at the Research Services Branch (RSB) of the National Institute of Mental Health (NIMH), part of the National Institutes of Health (NIH).
Editor's Note - The NIH IMAGE project is similar to ImageJ. In fact they are documented side by side. ImageJ is recommended to be used by PC based users as NIH IMAGE is a Mac based program.
OpenCV
OpenCV is an extensive open-source image processing library, built on the Intel Image Processing Library (IPL). OpenCV aids commercial uses of computer vision in human-computer interface, robotics, monitoring, biometrics and security by providing a free and open infrastructure where the distributed efforts of the vision community can be consolidated and performance optimized.
Peter Kovesi Research
MATLAB and Octave Functions for Computer Vision and Image Processing.
Projective Vision Toolkit
The Projective Vision Toolkit (PVT) is a series of utilities that allows one to take an image sequence and compute the fundamental matrix and trilinear tensor.
This can be used for such problems as camera selfcalibration, structure from motion, camera motion annotation, image stabilization, 3D tracking and recognition, etc.
RAVL - Recognition And Vision Library
RAVL provides a base C++ class library, together with a range of computer vision, pattern recognition and supporting tools. The aim of RAVL is to move software developed within the Centre for Vision, Speech and Signal Processing at the University of Surrey, England for research purposes into the public domain and to support its use in a wider community.
RoboRealm
Using RoboRealm you can create a low cost vision software solution with a standard webcam that allows you to explore the very complex world of image analysis and image processing. Through an easy to use analysis pipeline you can add image processing filters to translate an image into robotic movements, computer actions, or just plain fun! RoboRealm is free to download!
RobotVisionCAD
RobotVisionCAD or in short RvCAD is a computer aided design for Image Processing and Computer Vision. RvCAD's GUI presents users with a view where users drag and drop Image Processor Elements, and visually connecting them to form Image Processing Pipeline. RvCAD supports real-time live video processing from VideoForWindow, DirectShow(WDM) and Video4Linux on linux, compatible capture device.
SPIDER
SPIDER (System for Processing Image Data from Electron microscopy and Related fields) is an image processing system for electron microscopy.
TINA
TINA (TINA Is No Acronym) is an open source environment developed to accelerate the process of image analysis research. TINA provides functionality to assist in all areas of image analysis including handling of image, image feature and geometrical data; statistical and numerical analysis of data; GUI development as well as transmission and containment of data. TINA also provides a range of high-level analysis techniques for both machine vision (3D object location, 2D object recognition, temporal-stereo depth estimation, etc) and medical image analysis (MR tissue segmentation, blood flow analysis, etc).
Tekkotsu
Exploring Tekkotsu Programming on the Sony AIBO. Tekkotsu (see www.Tekkotsu.org) is an application development framework for the Sony AIBO robot dog. ("Tekkotsu" literally means iron bones in Japanese, and refers to a metal framework, such as the skeleton of a building.) At its lowest level, Tekkotsu provides primitives for sensory processing, smooth control of effectors, and event-based communication.
Torch3vision
It's a machine vision library, written in simple C++ and based on the Torch machine-learning library. This package contains Basic image processing and feature extraction algorithms such as rotation, flip, photometric normalizations (Histogram Equalization, Multiscale Retinex, Self-Quotient Image or Gross-Brajovic), edge detection, 2D DCT, 2D FFT, 2D Gabor, PCA to do Eigen-Faces, LDA to do Fisher-Faces
UTHSCSA ImageTool
UTHSCSA ImageTool (IT) is a free image processing and analysis program for Microsoft Windows 9x, Windows ME or Windows NT. IT can acquire, display, edit, analyze, process, compress, save and print gray scale and color images.IT can read and write over 22 common file formats including BMP, PCX, TIF, GIF and JPEG.
VXL
VXL (the Vision-something-Libraries) is a collection of C++ libraries designed for computer vision research and implementation. It was created from TargetJr and the IUE with the aim of making a light, fast and consistent system. VXL is written in ANSI/ISO C++ and is designed to be portable over many platforms. There are libraries covering numerical algorithms, image processing, co-ordinate systems, camera geometry, stereo, video manipulation, structure recovery from motion, probability modelling, GUI design, classification, robust estimation, feature tracking, topology, structure manipulation, 3d imaging, and much more.
XMegaWave
XMegaWave (XMW) is a freeware graphical windows environment oriented towards image processing. The development of XMW has been based on the collaboration between researchers from the University of the Balearic Islands (Spain), the University of Las Palmas de Gran Canaria (Spain) and the University of Paris IX Dauphine (France).
XVision
XVision provides an application independent set of tools for visual feature tracking optimized to be simple to configure at the user level, yet extremely fast to execute.

9/11/09

Matlab memory management.

Here is the office site describing how to use memory efficiently with Matlab.
One common pit is the following:

>> a=rand(100e6,1);

The above command will generate vector a; now if you want to generate another set of random numbers and store in a, you may think you just type in:

>> a = rand(100e6, 1)

This will not work!!!

You need to do the following:
>> a = rand(100e6, 1);
>> clear;
>> a= rand(100e6, 1);

This way, basically you clear out the old variable "a" first, then you generate a new one and store it in a. Basically the biggest memory to use to allocate the variable is half of your memory in this case.

9/9/09

Mac keynote 2009 format.

he new iWork '09 suite includes a new file format that packs all the data into a single file, rather than using a package bundle, as did iWork '08.


To get the folder, just change the extension of the file from .key to .zip. Then you can just unzip it to a folder. Change back from .zip to .key will give you the intact keynote file. 


To get the old formats back, simply go into Preferences in each iWork application, and under the General tab, check the box that says Save new documents as packages