Data representation

This chapter aims at explaining how images are stored and which objects compose an image in Milena. We will start to talk about the localization of a pixel and then the image itself which stores the values.




Sites

A pixel is an element having both information, localization and value. In Milena, we make a difference between a pixel, a pixel value and a pixel location. Thus, in order to refer to a pixel location, we have the site concept. A site can be any kind of localization element. For instance, in an image defined on a 2D regular grid, it is a 2D point with row and col coordinates.

  point2d p(3,3);
  std::cout << p << std::endl;

The image site type is defined by its underlying site set.




Sites

Site sets are mainly used to define image domains. They hold all the available sites in an image, consequently they do not store any values.

Site sets can used as standalone containers.

A list of available site sets is available in section ??.

Creating a site set

In this section, we will detail how to create common site sets.

This is actually simple.

Getting access to sites




Sites

In milena, an image is seen as a composition of both a site set and a function mapping a site to a value.

Creating an image

In this section, we will detail how to create common images.

Reading an image from a file

Accessing data







←— Go to Getting started with Milena     |     Go to Load and save images   —→


Generated on Tue Jul 14 16:30:21 2009 for Milena (Olena) by  doxygen 1.5.9