User login |
Using Scala with HadoopJonhnny Weslley gave an interesting post about how to use Scala with Hadoop. However, due to Hadoop API changes and other reasons, the codes from Weslley can not work as I tried for hadoop-0.20.0. I have tried a version that works with hadoop-0.20.0. The most tricky part is the generics of Java in Scala. package shadoop import SHadoop._ import java.util.Iterator import org.apache.hadoop.fs._ import org.apache.hadoop.io._ import org.apache.hadoop.conf.Configuration import org.apache.hadoop.mapred.OutputCollector import org.apache.hadoop.mapred.Reporter; import org.apache.hadoop.mapreduce.Job import org.apache.hadoop.mapreduce.Mapper import org.apache.hadoop.mapreduce.MapContext By viirya at 2009-08-31 17:15 | read more
A PHP extension for PageRank algorithmIn order to support one of our ongoing projects, I developed a PHP extension for PageRank algorithm to conduct search result re-ranking from a PHP frontend. Using pure PHP to do the algorithm is consuming too much time for real-time response when the scale of re-ranking becomes larger. This PHP extension uses cblas and atblas libraries to speed up matrix computing. It also applies OpenMP on few places. After installing the .so file of this extension, you have a pagerank function in PHP to use. Usage example:
$array = array( By viirya at 2009-08-19 11:04 | read more
An Android weather widget using Google Weather APIBased on Jeff Sharkey's android-sky codes, there is a Chinese weather widget on android. I have changed the weather information source from National Weather Service NDFD API to Google Weather API for global weather information (I suppose it is). The configuration interface is not changed at all. Installing it will replace Jeff Sharkey's original package installed already. You can download the APK file here.
By viirya at 2009-06-30 08:50
The critiques & summaries of "Contour and Texture Analysis for Image Segmentation""Contour and Texture Analysis for Image Segmentation" By JITENDRA MALIK, SERGE BELONGIE, THOMAS LEUNG AND JIANBO SHI -- This paper focuses on the image segmentation problem. It tries to partition grayscale images into disjoint regions of coherent brightness and texture. The novelty of the proposed algorithm falls considering both texture and contour for image segmentation. They apply the approach of textons, the prototypes of linear filter outputs, to map each pixel to the texton nearest to its vector of filter response. The adopt the approach to convolve the image with a bank of linear spatial filters. The oriented filterbank used in this work is based on rotated copies of a Gaussian derivative and its Hilbert transform. By viirya at 2009-03-24 09:11 | read more
The critiques & summaries of "Shape matching and object recognition using shape contexts""Shape matching and object recognition using shape contexts" By Serge Belongie, Jitendra Malik and Jan Puzicha -- The authors in this work try to operationalize the notion of shape similarity. The way they approach this problem is to find correspondences between shapes. First they represent shapes as a set of points sampled from shape contours. They introduce a shape descriptor, shape context, to describe a given point on a shape by the coarse distribution of the rest of the shape. Finding correspondences between two shapes is equivalent to finding the point that has the most similar shape context on one shape with respect to each point on the other shape. By viirya at 2009-03-24 07:55 | read more
The critiques & summaries of "Nonlinear dimensionality reduction by locally linear embedding""Nonlinear dimensionality reduction by locally linear embedding" By Sam T. Roweis and Lawrence K. Saul -- The high-dimensional data cause problems in data analysis and visualization in many areas of science. We need an efficient and effective approach to reduce dimensionality for a compact representation of high-dimensional data. In this paper, locally linear embedding (LLE) has been proposed as an unsupervised learning algorithm that computes low-dimensional, neighborhood-preserving embeddings of high-dimensional inputs. By viirya at 2009-03-10 08:09 | read more
The critiques & summaries of "Eigenfaces for recognition""Eigenfaces for recognition" By Matthew Turk, Alex Pentland -- Computational models for face recognition contribute not only to theoretical insights but also practical application. However, it is a difficult problem. The eigenface approach proposed by Matthew Turk and Alex Pentland in this paper contributes a simple yet mathematically well-formed model based on solving eigenvectors of covariance matrix obtained from training face images. This work turns its attention to the information content of face images, emphasizing the significant local and global features that may not be directly related to our intuitive notion of face features such as the eyes, nose, lip, and hair. By viirya at 2009-03-10 07:28 | read more
The critiques & summaries of "Scale & Affine Invariant Interest Point Detectors""Scale & Affine Invariant Interest Point Detectors" By KRYSTIAN MIKOLAJCZYK AND CORDELIA SCHMID -- In this paper, the authors propose a novel approach to detect interest points invariant to scale and affine transformations. Their scale and affine invariant detectors are based on three results: 1. Interest points detected by Harris detector can be adapted to affine transformation. By viirya at 2009-03-06 11:42 | read more
The critiques & summaries of "Distinctive Image Features from Scale-Invariant Keypoints""Distinctive Image Features from Scale-Invariant Keypoints" By David G. Lowe -- This paper proposes the Scale Invariant Feature Transform (SIFT) approach for image matching problem. It is widely used in computer vision and image retrieval related fields. It is a method to extract local interest points from images. Importantly, these feature points are invariant to image scale, rotation. It includes four main stages: 1. Scale-space extrema detection *Scale-space extrema detection By viirya at 2009-03-06 11:08 | read more
The critiques & summaries of "Image Retrieval: Ideas, Influences, and Trends of the New Age""Image Retrieval: Ideas, Influences, and Trends of the New Age" By RITENDRA DATTA, DHIRAJ JOSHI, JIA LI, and JAMES Z. WANG, 2008 -- This is a comprehensive paper in which the authors review the theoretical and empirical contributions related to image retrieval. The article consists of several sections. First it discusses critical aspects of the design of real-world image retrieval systems. For these aspects, some key approaches and techniques of the current decade are presented. As the research of CBIR evolves in the decade, new problems and applications related to image retrieval are brought out. Two intrinsic problems are derived from the nature of CBIR task: 1. How to represent an image mathematically By viirya at 2009-03-06 10:42 | read more
|