segment_handler.h File Reference

a file that includes the definitions for the functions used in segment handling using peak groups as queries More...

Go to the source code of this file.

Data Structures

struct  SegmentHandler

Defines

#define SEGMENT_HANDLER_MAX_NO_TILES   3
#define MAX_NO_PG_FPEAKS   1000

Typedefs

typedef SegmentHandler SegmentHandler

Enumerations

enum  { SEGMENT_HANDLER_TILE, SEGMENT_HANDLER_SEAM }

Functions

void SegmentHandler_init (SegmentHandler *sh, char *szExperimnet, char *szSession, char *szFPeaksSource)
void SegmentHandler_destroy (SegmentHandler *sh)
void SegmentHandler_updateSourceStencil (SegmentHandler *sh, struct PeakGroup *pg_prev, struct PeakGroup *pg_curr)
int SegmentHandler_update (SegmentHandler *sh, PeakGroup *pg_prev, PeakGroup *pg_curr)
Map2DSegmentHandler_getSourcePointerForTile (SegmentHandler *sh, MQTileID tile)
Map2DSegmentHandler_getStencilPointerForTile (SegmentHandler *sh, MQTileID tile)
int SegmentHandler_extractPeakGroupMapFPeaks (SegmentHandler *sh, struct PeakGroup *peakgroup, FPeak2i *pfpeaks, int *nfpeaks)


Detailed Description

a file that includes the definitions for the functions used in segment handling using peak groups as queries

Author:
Kyriacos C. Leptos
Date:
2004-05-04
Details.

Function Documentation

int SegmentHandler_extractPeakGroupMapFPeaks SegmentHandler *  sh,
PeakGroup peakgroup,
FPeak2i pfpeaks,
int *  nfpeaks
 

Extracts all the fpeaks that are found in the segments that are spanned by the peak group. The maximum number of peaks is defined my the constant MAX_NO_PG_FPEAKS.

Parameters:
sh segment handler
peakgroup peakgroup
pfpeaks fill in an already allocated array with the peaks
nfpeaks the number of peaks that the array was filled with
Returns:
Returns the value of the status of the function

Possible return values:

0 = OK,

1 = Peaks are over the maximum allowed by MAX_NO_PG_FPEAKS


Generated on Tue Feb 7 11:54:36 2006 for libmqfileio by  doxygen 1.4.6