ICSV - Image Color Similarity Visualization
Vienna Technical University - Course 'Visualization 2'. Author: Stefan Spelitz (0925601)
ICSV.Server.ImageContainer Class Reference

This class holds all relevant information about an image, before distances are calculated and a position is applied. More...

Public Member Functions

 ImageContainer (string id, Signature sig, string uri, Color firstColor)
 To construct an object all parameters are considered to be mandatory. More...
 
override bool Equals (System.Object obj)
 Whether or not this object is equal to the given object. Two objects are equal if the ids are equal. More...
 
bool Equals (ImageContainer p)
 Whether or not this object is equal to the given object. Two objects are equal if the ids are equal. More...
 
override int GetHashCode ()
 The hashcode of the object. I.e. the hashcode of the identifier. More...
 

Public Attributes

readonly string Identifier
 A unique identifier for each image. More...
 
readonly Signature Signature
 The signature of the image. It contains color clusters with weights (i.e. the count of pixels in the cluster). More...
 
readonly string DataURI
 The data URI for the image in the format 'data:image/...' More...
 
readonly Color FirstRGBcolor
 The RGB color of the first pixel of the image. This is useful for the axes of the color space, which are initially represented by images, consisting only of one color. More...
 

Detailed Description

This class holds all relevant information about an image, before distances are calculated and a position is applied.

Constructor & Destructor Documentation

ICSV.Server.ImageContainer.ImageContainer ( string  id,
Signature  sig,
string  uri,
Color  firstColor 
)

To construct an object all parameters are considered to be mandatory.

Parameters
idthe unique id
sigthe calculated signature
urithe data URI
firstColorthe color of the first pixel

Member Function Documentation

override bool ICSV.Server.ImageContainer.Equals ( System.Object  obj)

Whether or not this object is equal to the given object. Two objects are equal if the ids are equal.

Parameters
objthe object to check equality with
Returns
true if equal, false otherwise
bool ICSV.Server.ImageContainer.Equals ( ImageContainer  p)

Whether or not this object is equal to the given object. Two objects are equal if the ids are equal.

Parameters
objthe object to check equality with
Returns
true if equal, false otherwise
override int ICSV.Server.ImageContainer.GetHashCode ( )

The hashcode of the object. I.e. the hashcode of the identifier.

Returns
the hashcode

Member Data Documentation

readonly string ICSV.Server.ImageContainer.DataURI

The data URI for the image in the format 'data:image/...'

Data URI scheme: http://en.wikipedia.org/wiki/Data_URI_scheme

readonly Color ICSV.Server.ImageContainer.FirstRGBcolor

The RGB color of the first pixel of the image. This is useful for the axes of the color space, which are initially represented by images, consisting only of one color.

readonly string ICSV.Server.ImageContainer.Identifier

A unique identifier for each image.

readonly Signature ICSV.Server.ImageContainer.Signature

The signature of the image. It contains color clusters with weights (i.e. the count of pixels in the cluster).