RFTester Tool for automated testing relevance feedback algorithms fro known-item search

Static Public Member Functions | Static Public Attributes | Properties | Static Private Member Functions | Static Private Attributes | List of all members
RFTesterBackend.ResourceManagers.Features Class Reference

Resource manager for loading and accessing image features. More...

## Static Public Member Functions
static void | InitFeatures ()
| Initializes image features. More...
static double | CosineDistance (double[] v1, int id2)
| Returns cosine distance between a vector v2 and feature vector of image with id2 More...
static double | CosineDistance (int id1, int id2)
| Returns cosine distance between feature vectors of images id1 and id2 More...
static double | ManhattanDistance (int id1, int id2)
| Returns L1 distance between feature vectors of images id1 and id2 More...
static double | L2SquereDistance (int id1, int id2)
| Returns L2 square distance between feature vectors of images id1 and id2 More...
static double | L2Distance (int id1, int id2)
| Returns L2 distance between feature vectors of images id1 and id2 More...
static double[] | Get (int i)
| Returns a copy of feature vector of image i More...

## Static Public Attributes
static Vector< double >[] | featMatrix
| Special copy of vector features for faster computing with library. More...

## Properties
static double[,] | Feats`[get]`
static ResourceState | FeaturesState`[get]`

## Static Private Member Functions
static T[,] | CreateRectangularArray< T > (IList< T[]> arrays)

## Static Private Attributes
static readonly log4net.ILog | log
static double[,] | features
| Feature matrix for images. More...
static int | featuresLen
| Length of feature vector for one image. More...
static double[] | featuresSquereSizes
| Squere sizes of feature vectors. More...
static ResourceState | featuresState = ResourceState.NOT_LOADED
| State of resource manager. More...

## Detailed Description

Resource manager for loading and accessing image features.

## Member Function Documentation

## ◆ CosineDistance() [1/2]

static double RFTesterBackend.ResourceManagers.Features.CosineDistance | ( | double[] | v1,
|  | int | id2
| ) |  |
| inlinestatic

Returns cosine distance between a vector v2 and feature vector of image with id2

Parameters

  v1 |
  id2 |

Returns

## ◆ CosineDistance() [2/2]

static double RFTesterBackend.ResourceManagers.Features.CosineDistance | ( | int | id1,
|  | int | id2
| ) |  |
| inlinestatic

Returns cosine distance between feature vectors of images id1 and id2

Parameters

  id1 |
  id2 |

Returns

## ◆ CreateRectangularArray< T >()

static T [,] RFTesterBackend.ResourceManagers.Features.CreateRectangularArray< T > | ( | IList< T[]> | arrays | ) |
| inlinestaticprivate

## ◆ Get()

static double [] RFTesterBackend.ResourceManagers.Features.Get | ( | int | i | ) |
| inlinestatic

Returns a copy of feature vector of image i

Parameters

  i |

Returns

## ◆ InitFeatures()

static void RFTesterBackend.ResourceManagers.Features.InitFeatures | ( |  | ) |
| inlinestatic

Initializes image features.

## ◆ L2Distance()

static double RFTesterBackend.ResourceManagers.Features.L2Distance | ( | int | id1,
|  | int | id2
| ) |  |
| inlinestatic

Returns L2 distance between feature vectors of images id1 and id2

Parameters

  id1 |
  id2 |

Returns

## ◆ L2SquereDistance()

static double RFTesterBackend.ResourceManagers.Features.L2SquereDistance | ( | int | id1,
|  | int | id2
| ) |  |
| inlinestatic

Returns L2 square distance between feature vectors of images id1 and id2

Parameters

  id1 |
  id2 |

Returns

## ◆ ManhattanDistance()

static double RFTesterBackend.ResourceManagers.Features.ManhattanDistance | ( | int | id1,
|  | int | id2
| ) |  |
| inlinestatic

Returns L1 distance between feature vectors of images id1 and id2

Parameters

  id1 |
  id2 |

Returns

## Member Data Documentation

## ◆ featMatrix

Vector<double> [] RFTesterBackend.ResourceManagers.Features.featMatrix
| static

Special copy of vector features for faster computing with library.

## ◆ features

double [,] RFTesterBackend.ResourceManagers.Features.features
| staticprivate

Feature matrix for images.

## ◆ featuresLen

int RFTesterBackend.ResourceManagers.Features.featuresLen
| staticprivate

Length of feature vector for one image.

## ◆ featuresSquereSizes

double [] RFTesterBackend.ResourceManagers.Features.featuresSquereSizes
| staticprivate

Squere sizes of feature vectors.

## ◆ featuresState

ResourceState RFTesterBackend.ResourceManagers.Features.featuresState = ResourceState.NOT_LOADED
| staticprivate

State of resource manager.

## ◆ log

readonly log4net.ILog RFTesterBackend.ResourceManagers.Features.log
| staticprivate

Initial value:
= log4net.LogManager.GetLogger(
System.Reflection.MethodBase.GetCurrentMethod().DeclaringType)

## Property Documentation

## ◆ Feats

double [,] RFTesterBackend.ResourceManagers.Features.Feats
| staticget

## ◆ FeaturesState

ResourceState RFTesterBackend.ResourceManagers.Features.FeaturesState
| staticget

The documentation for this class was generated from the following file:

- RFTesterBackend/ResourceManagers/Features.cs