-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patht4kBinaryImage.cpp
More file actions
executable file
·32 lines (26 loc) · 1.16 KB
/
t4kBinaryImage.cpp
File metadata and controls
executable file
·32 lines (26 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
/*----------------------------------------------------------------------------*/
#include "t4kBinaryImage.h"
//#include "WPIErrors.h"
//#include <cstring>
/** Private NI function needed to write to the VxWorks target */
//IMAQ_FUNC int Priv_SetWriteFileAllowed(uint32_t enable);
t4kBinaryImage::t4kBinaryImage()
: BinaryImage()
{
}
t4kBinaryImage::~t4kBinaryImage()
{
}
int t4kBinaryImage::ParticleFilter(ParticleFilterCriteria2 *criteria, int criteriaCount, t4kBinaryImage& iResult)
{
//t4kBinaryImage *result = new t4kBinaryImage();
int numParticles;
ParticleFilterOptions2 filterOptions = {0, 0, 0, 1};
int success = imaqParticleFilter4(iResult.GetImaqImage(), m_imaqImage, criteria, criteriaCount, &filterOptions, NULL, &numParticles);
wpi_setImaqErrorWithContext(success, "Error in particle filter operation");
return success;
}