MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.common.SsdSampler< T > Class Template Reference

The SsdSampler is used by the SSD algorithm to sample BBoxes. More...

Inheritance diagram for MyCaffe.common.SsdSampler< T >:

Public Member Functions

 SsdSampler (CudaDnn< T > cuda, Log log)
 The constructor. More...
 
void Dispose ()
 Free all resources used. More...
 
List< NormalizedBBoxGroupObjectBBoxes (SimpleDatum anno_datum)
 Find all annotated NormalizedBBox. More...
 
bool SatisfySampleConstraint (NormalizedBBox sampledBBox, List< NormalizedBBox > rgObjectBboxes, SamplerConstraint sampleConstraint)
 Check if the sampled bbox satisfies the constraints with all object bboxes. More...
 
List< NormalizedBBoxGenerateSamples (NormalizedBBox sourceBBox, List< NormalizedBBox > rgObjectBboxes, BatchSampler batchSampler)
 Generate samples from the NormalizedBBox using the BatchSampler. More...
 
List< NormalizedBBoxGenerateBatchSamples (SimpleDatum anno_datum, List< BatchSampler > rgBatchSamplers)
 Generate samples from the annotated Datum using the list of BatchSamplers. More...
 

Detailed Description

The SsdSampler is used by the SSD algorithm to sample BBoxes.

See also
SSD: Single Shot MultiBox Detector by Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, Alexander C. Berg, 2016.
GitHub: SSD: Single Shot MultiBox Detector, by weiliu89/caffe, 2016

Definition at line 20 of file SsdSampler.cs.

Constructor & Destructor Documentation

◆ SsdSampler()

MyCaffe.common.SsdSampler< T >.SsdSampler ( CudaDnn< T >  cuda,
Log  log 
)

The constructor.

Definition at line 31 of file SsdSampler.cs.

Member Function Documentation

◆ Dispose()

void MyCaffe.common.SsdSampler< T >.Dispose ( )

Free all resources used.

Definition at line 42 of file SsdSampler.cs.

◆ GenerateBatchSamples()

List< NormalizedBBox > MyCaffe.common.SsdSampler< T >.GenerateBatchSamples ( SimpleDatum  anno_datum,
List< BatchSampler rgBatchSamplers 
)

Generate samples from the annotated Datum using the list of BatchSamplers.

Parameters
anno_datum
rgBatchSamplers
Returns
All samples bboxes that satisfy the constraints defined in the BatchSampler are returned.

Definition at line 236 of file SsdSampler.cs.

◆ GenerateSamples()

List< NormalizedBBox > MyCaffe.common.SsdSampler< T >.GenerateSamples ( NormalizedBBox  sourceBBox,
List< NormalizedBBox rgObjectBboxes,
BatchSampler  batchSampler 
)

Generate samples from the NormalizedBBox using the BatchSampler.

Parameters
sourceBBoxSpecifies the source BBox.
rgObjectBboxesSpecifies the object normalized BBoxes.
batchSamplerSpecifies the batch sampler.
Returns
The list of normalized BBoxes generated is returned.

Definition at line 203 of file SsdSampler.cs.

◆ GroupObjectBBoxes()

List< NormalizedBBox > MyCaffe.common.SsdSampler< T >.GroupObjectBBoxes ( SimpleDatum  anno_datum)

Find all annotated NormalizedBBox.

Parameters
anno_datumSpecifies the annotated datum.
Returns
The grouped object BBoxes are returned.

Definition at line 56 of file SsdSampler.cs.

◆ SatisfySampleConstraint()

bool MyCaffe.common.SsdSampler< T >.SatisfySampleConstraint ( NormalizedBBox  sampledBBox,
List< NormalizedBBox rgObjectBboxes,
SamplerConstraint  sampleConstraint 
)

Check if the sampled bbox satisfies the constraints with all object bboxes.

Parameters
sampledBBoxSpecifies the sampled BBox.
rgObjectBboxesSpecifies the list of object normalized BBoxes.
sampleConstraintSpecifies the sample constraint.
Returns
Returns whether or not the sample constraints are satisfied.

Definition at line 84 of file SsdSampler.cs.


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