Anda di halaman 1dari 11

./multi/GenericMultipleBarcodeReader.

cpp: float minX = float(width);


./multi/GenericMultipleBarcodeReader.cpp: float minY = float(height);
./multi/GenericMultipleBarcodeReader.cpp: float maxX = 0.0f;
./multi/GenericMultipleBarcodeReader.cpp: float maxY = 0.0f;
./multi/GenericMultipleBarcodeReader.cpp: float x = point->getX();
./multi/GenericMultipleBarcodeReader.cpp: float y = point->getY();
./multi/qrcode/detector/MultiFinderPatternFinder.h: static const float MAX_MO
DULE_COUNT_PER_EDGE;
./multi/qrcode/detector/MultiFinderPatternFinder.h: static const float MIN_MO
DULE_COUNT_PER_EDGE;
./multi/qrcode/detector/MultiFinderPatternFinder.h: static const float DIFF_M
ODSIZE_CUTOFF_PERCENT;
./multi/qrcode/detector/MultiFinderPatternFinder.h: static const float DIFF_M
ODSIZE_CUTOFF;
./multi/qrcode/detector/MultiFinderPatternFinder.cpp:const float MultiFinderPatt
ernFinder::MAX_MODULE_COUNT_PER_EDGE = 180;
./multi/qrcode/detector/MultiFinderPatternFinder.cpp:const float MultiFinderPatt
ernFinder::MIN_MODULE_COUNT_PER_EDGE = 9;
./multi/qrcode/detector/MultiFinderPatternFinder.cpp:const float MultiFinderPatt
ernFinder::DIFF_MODSIZE_CUTOFF_PERCENT = 0.05f;
./multi/qrcode/detector/MultiFinderPatternFinder.cpp:const float MultiFinderPatt
ernFinder::DIFF_MODSIZE_CUTOFF = 0.5f;
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float value = a->getEstim
atedModuleSize() - b->getEstimatedModuleSize();
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float vModSize12 = (p
1->getEstimatedModuleSize() - p2->getEstimatedModuleSize()) / min(p1->getEstimat
edModuleSize(), p2->getEstimatedModuleSize());
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float vModSize12A = a
bs(p1->getEstimatedModuleSize() - p2->getEstimatedModuleSize());
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float vModSize23 =
(p2->getEstimatedModuleSize() - p3->getEstimatedModuleSize()) / min(p2->getEstim
atedModuleSize(), p3->getEstimatedModuleSize());
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float vModSize23A =
abs(p2->getEstimatedModuleSize() - p3->getEstimatedModuleSize());
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float dA = FinderPa
tternFinder::distance(info->getTopLeft(), info->getBottomLeft());
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float dC = FinderPa
tternFinder::distance(info->getTopRight(), info->getBottomLeft());
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float dB = FinderPa
tternFinder::distance(info->getTopLeft(), info->getTopRight());
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float estimatedModu
leCount = (dA + dB) / (p1->getEstimatedModuleSize() * 2.0f);
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float vABBC = abs((
dA - dB) / min(dA, dB));
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float dCpy = (float
) sqrt(dA * dA + dB * dB);
./multi/qrcode/detector/MultiFinderPatternFinder.cpp: float vPyC = abs((d
C - dCpy) / min(dC, dCpy));
./ZXing.h:#include <float.h>
./ZXing.h:inline bool isnan(float v) {return _isnan(v) != 0;}
./ZXing.h:inline float nan() {return std::numeric_limits<float>::quiet_NaN();}
./ZXing.h:inline bool isnan(float v) {return std::isnan(v);}
./ZXing.h:inline float nan() {return std::numeric_limits<float>::quiet_NaN();}
./ResultPoint.h: const float posX_;
./ResultPoint.h: const float posY_;
./ResultPoint.h: ResultPoint(float x, float y);
./ResultPoint.h: virtual float getX() const;
./ResultPoint.h: virtual float getY() const;
./ResultPoint.h: static float distance(Ref<ResultPoint> point1, Ref<ResultPoint
> point2);
./ResultPoint.h: static float distance(float x1, float x2, float y1, float y2);
./ResultPoint.h: static float crossProductZ(Ref<ResultPoint> pointA, Ref<Result
Point> pointB, Ref<ResultPoint> pointC);
./aztec/detector/Detector.h: return Ref<ResultPoint>(new ResultPoint(float(x)
, float(y)));
./aztec/detector/Detector.h: static float distance(Ref<Point> a, Ref<Point> b);
./aztec/detector/Detector.cpp: float ratio = (2 * nbLayers_ + (nbLayers_ > 4 ?
1 : 0) + (nbLayers_ - 4) / 8) / (2.0f * nbCenterLayers_);
./aztec/detector/Detector.cpp: returnValue.push_back(Ref<ResultPoint>(new Resul
tPoint(float(targetax), float(targetay))));
./aztec/detector/Detector.cpp: returnValue.push_back(Ref<ResultPoint>(new Resul
tPoint(float(targetbx), float(targetby))));
./aztec/detector/Detector.cpp: returnValue.push_back(Ref<ResultPoint>(new Resul
tPoint(float(targetcx), float(targetcy))));
./aztec/detector/Detector.cpp: returnValue.push_back(Ref<ResultPoint>(new Resul
tPoint(float(targetdx), float(targetdy))));
./aztec/detector/Detector.cpp: float q = distance(poutd, pouta) * nbCenterL
ayers_ / (distance(pind, pina) * (nbCenterLayers_ + 2));
./aztec/detector/Detector.cpp: float ratio = 0.75f*2 / (2*nbCenterLayers_-3);
./aztec/detector/Detector.cpp: float d = distance(p1, p2);
./aztec/detector/Detector.cpp: float moduleSize = d / (size-1);
./aztec/detector/Detector.cpp: float dx = moduleSize * float(p2->getX() - p1->g
etX())/d;
./aztec/detector/Detector.cpp: float dy = moduleSize * float(p2->getY() - p1->g
etY())/d;
./aztec/detector/Detector.cpp: float px = float(p1->getX());
./aztec/detector/Detector.cpp: float py = float(p1->getY());
./aztec/detector/Detector.cpp: float d = distance(p1, p2);
./aztec/detector/Detector.cpp: float dx = (p2->getX() - p1->getX()) / d;
./aztec/detector/Detector.cpp: float dy = (p2->getY() - p1->getY()) / d;
./aztec/detector/Detector.cpp: float px = float(p1->getX());
./aztec/detector/Detector.cpp: float py = float(p1->getY());
./aztec/detector/Detector.cpp: float errRatio = (float)error/d;
./aztec/detector/Detector.cpp:float Detector::distance(Ref<zxing::aztec::Point>
a, Ref<zxing::aztec::Point> b) {
./aztec/detector/Detector.cpp: return sqrtf((float)((a->getX() - b->getX()) * (
a->getX() - b->getX()) + (a->getY() - b->getY()) * (a->getY() - b->getY())));
./oned/ITFReader.cpp: Ref<OneDResultPoint>(new OneDResultPoint(float(startR
ange[1]), float(rowNumber)));
./oned/ITFReader.cpp: Ref<OneDResultPoint>(new OneDResultPoint(float(endRan
ge[0]), float(rowNumber)));
./oned/OneDResultPoint.h: OneDResultPoint(float posX, floa
t posY);
./oned/UPCEANReader.cpp: float left = (float) (startGuardRange[1] + startGuardR
ange[0]) / 2.0f;
./oned/UPCEANReader.cpp: float right = (float) (endRange[1] + endRange[0]) / 2.
0f;
./oned/UPCEANReader.cpp: resultPoints[0] = Ref<ResultPoint>(new OneDResultPoint
(left, (float) rowNumber));
./oned/UPCEANReader.cpp: resultPoints[1] = Ref<ResultPoint>(new OneDResultPoint
(right, (float) rowNumber));
./oned/Code128Reader.cpp: float left = (float) (startPatternInfo[1] + startPatt
ernInfo[0]) / 2.0f;
./oned/Code128Reader.cpp: float right = lastStart + lastPatternSize / 2.0f;
./oned/Code128Reader.cpp: Ref<OneDResultPoint>(new OneDResultPoint(left, (f
loat) rowNumber));
./oned/Code128Reader.cpp: Ref<OneDResultPoint>(new OneDResultPoint(right, (
float) rowNumber));
./oned/Code93Reader.cpp: float left = (float) (start[1] + start[0]) / 2.0f;
./oned/Code93Reader.cpp: float right = lastStart + lastPatternSize / 2.0f;
./oned/Code93Reader.cpp: Ref<OneDResultPoint>(new OneDResultPoint(left, (floa
t) rowNumber));
./oned/Code93Reader.cpp: Ref<OneDResultPoint>(new OneDResultPoint(right, (flo
at) rowNumber));
./oned/OneDReader.cpp: // We're going to fake floating-point math in integers.
We just need to use more bits.
./oned/OneDResultPoint.cpp: OneDResultPoint::OneDResultPoint(float p
osX, float posY) : ResultPoint(posX,posY) {
./oned/CodaBarReader.cpp: float left = (float) runningCount;
./oned/CodaBarReader.cpp: float right = (float) runningCount;
./oned/CodaBarReader.cpp: Ref<OneDResultPoint>(new OneDResultPoint(left, (flo
at) rowNumber));
./oned/CodaBarReader.cpp: Ref<OneDResultPoint>(new OneDResultPoint(right, (fl
oat) rowNumber));
./oned/Code39Reader.cpp: float left = (float) (start[1] + start[0]) / 2.0f;
./oned/Code39Reader.cpp: float right = lastStart + lastPatternSize / 2.0f;
./oned/Code39Reader.cpp: Ref<OneDResultPoint>(new OneDResultPoint(left, (floa
t) rowNumber));
./oned/Code39Reader.cpp: Ref<OneDResultPoint>(new OneDResultPoint(right, (flo
at) rowNumber));
./qrcode/detector/Detector.h: float moduleSize);
./qrcode/detector/Detector.h: float calculateModuleSize(Ref<ResultPoint> topLef
t, Ref<ResultPoint> topRight, Ref<ResultPoint> bottomLeft);
./qrcode/detector/Detector.h: float calculateModuleSizeOneWay(Ref<ResultPoint>
pattern, Ref<ResultPoint> otherPattern);
./qrcode/detector/Detector.h: float sizeOfBlackWhiteBlackRunBothWays(int fromX,
int fromY, int toX, int toY);
./qrcode/detector/Detector.h: float sizeOfBlackWhiteBlackRun(int fromX, int fro
mY, int toX, int toY);
./qrcode/detector/Detector.h: Ref<AlignmentPattern> findAlignmentInRegion(float
overallEstModuleSize, int estAlignmentX, int estAlignmentY,
./qrcode/detector/Detector.h: float allowanceFactor);
./qrcode/detector/AlignmentPattern.cpp:AlignmentPattern::AlignmentPattern(float
posX, float posY, float estimatedModuleSize) :
./qrcode/detector/AlignmentPattern.cpp:bool AlignmentPattern::aboutEquals(float
moduleSize, float i, float j) const {
./qrcode/detector/AlignmentPattern.cpp: float moduleSizeDiff = abs(moduleSize
- estimatedModuleSize_);
./qrcode/detector/AlignmentPattern.cpp:Ref<AlignmentPattern> AlignmentPattern::c
ombineEstimate(float i, float j, float newModuleSize) const {
./qrcode/detector/AlignmentPattern.cpp: float combinedX = (getX() + j) / 2.0f;
./qrcode/detector/AlignmentPattern.cpp: float combinedY = (getY() + i) / 2.0f;
./qrcode/detector/AlignmentPattern.cpp: float combinedModuleSize = (estimatedMo
duleSize_ + newModuleSize) / 2.0f;
./qrcode/detector/AlignmentPattern.h: float estimatedModuleSiz
e_;
./qrcode/detector/AlignmentPattern.h: AlignmentPattern(float p
osX, float posY, float estimatedModuleSize);
./qrcode/detector/AlignmentPattern.h: bool aboutEquals(float m
oduleSize, float i, float j) const;
./qrcode/detector/AlignmentPattern.h: Ref<AlignmentPattern> combineEstimate
(float i, float j,
./qrcode/detector/AlignmentPattern.h:
float newModuleSize) const;
./qrcode/detector/Detector.cpp: float moduleSize = calculateModuleSize(topLeft,
topRight, bottomLeft);
./qrcode/detector/Detector.cpp: float bottomRightX = topRight->getX() - topLe
ft->getX() + bottomLeft->getX();
./qrcode/detector/Detector.cpp: float bottomRightY = topRight->getY() - topLe
ft->getY() + bottomLeft->getY();
./qrcode/detector/Detector.cpp: float correctionToTopLeft = 1.0f - 3.0f / (fl
oat)modulesBetweenFPCenters;
./qrcode/detector/Detector.cpp: alignmentPattern = findAlignmentInRegion(
moduleSize, estAlignmentX, estAlignmentY, (float)i);
./qrcode/detector/Detector.cpp: float dimMinusThree = (float)dimension - 3.5f;
./qrcode/detector/Detector.cpp: float bottomRightX;
./qrcode/detector/Detector.cpp: float bottomRightY;
./qrcode/detector/Detector.cpp: float sourceBottomRightX;
./qrcode/detector/Detector.cpp: float sourceBottomRightY;
./qrcode/detector/Detector.cpp: float moduleSize)
{
./qrcode/detector/Detector.cpp:float Detector::calculateModuleSize(Ref<ResultPoi
nt> topLeft, Ref<ResultPoint> topRight, Ref<ResultPoint> bottomLeft) {
./qrcode/detector/Detector.cpp:float Detector::calculateModuleSizeOneWay(Ref<Res
ultPoint> pattern, Ref<ResultPoint> otherPattern) {
./qrcode/detector/Detector.cpp: float moduleSizeEst1 = sizeOfBlackWhiteBlackRun
BothWays((int)pattern->getX(), (int)pattern->getY(),
./qrcode/detector/Detector.cpp: float moduleSizeEst2 = sizeOfBlackWhiteBlackRun
BothWays((int)otherPattern->getX(), (int)otherPattern->getY(),
./qrcode/detector/Detector.cpp:float Detector::sizeOfBlackWhiteBlackRunBothWays(
int fromX, int fromY, int toX, int toY) {
./qrcode/detector/Detector.cpp: float result = sizeOfBlackWhiteBlackRun(fromX,
fromY, toX, toY);
./qrcode/detector/Detector.cpp: float scale = 1.0f;
./qrcode/detector/Detector.cpp: scale = (float) fromX / (float) (fromX - othe
rToX);
./qrcode/detector/Detector.cpp: scale = (float) (image_->getWidth() - 1 - fro
mX) / (float) (otherToX - fromX);
./qrcode/detector/Detector.cpp: scale = (float) fromY / (float) (fromY - othe
rToY);
./qrcode/detector/Detector.cpp: scale = (float) (image_->getHeight() - 1 - fr
omY) / (float) (otherToY - fromY);
./qrcode/detector/Detector.cpp:float Detector::sizeOfBlackWhiteBlackRun(int from
X, int fromY, int toX, int toY) {
./qrcode/detector/Detector.cpp:Ref<AlignmentPattern> Detector::findAlignmentInRe
gion(float overallEstModuleSize, int estAlignmentX, int estAlignmentY,
./qrcode/detector/Detector.cpp:
float allowanceFactor) {
./qrcode/detector/FinderPattern.cpp:FinderPattern::FinderPattern(float posX, flo
at posY, float estimatedModuleSize)
./qrcode/detector/FinderPattern.cpp:FinderPattern::FinderPattern(float posX, flo
at posY, float estimatedModuleSize, int count)
./qrcode/detector/FinderPattern.cpp:float FinderPattern::getEstimatedModuleSize(
) const {
./qrcode/detector/FinderPattern.cpp: bool FinderPattern::aboutEquals(float modu
leSize, float i, float j) const {
./qrcode/detector/FinderPattern.cpp:bool FinderPattern::aboutEquals(float module
Size, float i, float j) const {
./qrcode/detector/FinderPattern.cpp: float moduleSizeDiff = abs(moduleSize -
estimatedModuleSize_);
./qrcode/detector/FinderPattern.cpp:Ref<FinderPattern> FinderPattern::combineEst
imate(float i, float j, float newModuleSize) const {
./qrcode/detector/FinderPattern.cpp: float combinedX = (count_ * getX() + j) /
combinedCount;
./qrcode/detector/FinderPattern.cpp: float combinedY = (count_ * getY() + i) /
combinedCount;
./qrcode/detector/FinderPattern.cpp: float combinedModuleSize = (count_ * getEs
timatedModuleSize() + newModuleSize) / combinedCount;
./qrcode/detector/FinderPatternFinder.cpp: const float averageModuleSize_;
./qrcode/detector/FinderPatternFinder.cpp: FurthestFromAverageComparator(float
averageModuleSize) :
./qrcode/detector/FinderPatternFinder.cpp: float dA = abs(a->getEstimatedModu
leSize() - averageModuleSize_);
./qrcode/detector/FinderPatternFinder.cpp: float dB = abs(b->getEstimatedModu
leSize() - averageModuleSize_);
./qrcode/detector/FinderPatternFinder.cpp: const float averageModuleSize_;
./qrcode/detector/FinderPatternFinder.cpp: CenterComparator(float averageModule
Size) :
./qrcode/detector/FinderPatternFinder.cpp: float dA = abs(a->getEstimatedMo
duleSize() - averageModuleSize_);
./qrcode/detector/FinderPatternFinder.cpp: float dB = abs(b->getEstimatedMo
duleSize() - averageModuleSize_);
./qrcode/detector/FinderPatternFinder.cpp:float FinderPatternFinder::centerFromE
nd(int* stateCount, int end) {
./qrcode/detector/FinderPatternFinder.cpp: return (float)(end - stateCount[4] -
stateCount[3]) - stateCount[2] / 2.0f;
./qrcode/detector/FinderPatternFinder.cpp: float moduleSize = (float)totalModul
eSize / 7.0f;
./qrcode/detector/FinderPatternFinder.cpp: float maxVariance = moduleSize / 2.0
f;
./qrcode/detector/FinderPatternFinder.cpp:float FinderPatternFinder::crossCheckV
ertical(size_t startI, size_t centerJ, int maxCount, int originalStateCountTotal
) {
./qrcode/detector/FinderPatternFinder.cpp:float FinderPatternFinder::crossCheckH
orizontal(size_t startJ, size_t centerI, int maxCount,
./qrcode/detector/FinderPatternFinder.cpp: float centerJ = centerFromEnd(stateC
ount, j);
./qrcode/detector/FinderPatternFinder.cpp: float centerI = crossCheckVertical(i
, (size_t)centerJ, stateCount[2], stateCountTotal);
./qrcode/detector/FinderPatternFinder.cpp: float estimatedModuleSize = (flo
at)stateCountTotal / 7.0f;
./qrcode/detector/FinderPatternFinder.cpp: float totalModuleSize = 0.0f;
./qrcode/detector/FinderPatternFinder.cpp: float average = totalModuleSize / ma
x;
./qrcode/detector/FinderPatternFinder.cpp: float totalDeviation = 0.0f;
./qrcode/detector/FinderPatternFinder.cpp: float totalModuleSize = 0.0f;
./qrcode/detector/FinderPatternFinder.cpp: float square = 0.0f;
./qrcode/detector/FinderPatternFinder.cpp: float size = possibleCenters_[i]
->getEstimatedModuleSize();
./qrcode/detector/FinderPatternFinder.cpp: float average = totalModuleSize /
(float) startSize;
./qrcode/detector/FinderPatternFinder.cpp: float stdDev = (float)sqrt(square
/ startSize - average * average);
./qrcode/detector/FinderPatternFinder.cpp: float limit = max(0.2f * average,
stdDev);
./qrcode/detector/FinderPatternFinder.cpp: float totalModuleSize = 0.0f;
./qrcode/detector/FinderPatternFinder.cpp: float size = possibleCenters_[i]
->getEstimatedModuleSize();
./qrcode/detector/FinderPatternFinder.cpp: float average = totalModuleSize /
(float) possibleCenters_.size();
./qrcode/detector/FinderPatternFinder.cpp: float abDistance = distance(patterns
[0], patterns[1]);
./qrcode/detector/FinderPatternFinder.cpp: float bcDistance = distance(patterns
[1], patterns[2]);
./qrcode/detector/FinderPatternFinder.cpp: float acDistance = distance(patterns
[0], patterns[2]);
./qrcode/detector/FinderPatternFinder.cpp:float FinderPatternFinder::distance(Re
f<ResultPoint> p1, Ref<ResultPoint> p2) {
./qrcode/detector/FinderPatternFinder.cpp: float dx = p1->getX() - p2->getX();
./qrcode/detector/FinderPatternFinder.cpp: float dy = p1->getY() - p2->getY();
./qrcode/detector/FinderPatternFinder.cpp: return (float)sqrt(dx * dx + dy * dy
);
./qrcode/detector/AlignmentPatternFinder.cpp:float AlignmentPatternFinder::cente
rFromEnd(vector<int>& stateCount, int end) {
./qrcode/detector/AlignmentPatternFinder.cpp: return (float)(end - stateCount[2
]) - stateCount[1] / 2.0f;
./qrcode/detector/AlignmentPatternFinder.cpp: float maxVariance = moduleSize_ /
2.0f;
./qrcode/detector/AlignmentPatternFinder.cpp:float AlignmentPatternFinder::cross
CheckVertical(int startI, int centerJ, int maxCount,
./qrcode/detector/AlignmentPatternFinder.cpp: float centerJ = centerFromEnd(sta
teCount, j);
./qrcode/detector/AlignmentPatternFinder.cpp: float centerI = crossCheckVertica
l(i, (int)centerJ, 2 * stateCount[1], stateCountTotal);
./qrcode/detector/AlignmentPatternFinder.cpp: float estimatedModuleSize = (fl
oat)(stateCount[0] + stateCount[1] + stateCount[2]) / 3.0f;
./qrcode/detector/AlignmentPatternFinder.cpp:
int height, float moduleSize,
./qrcode/detector/FinderPattern.h: float estimatedModuleSiz
e_;
./qrcode/detector/FinderPattern.h: FinderPattern(float posX
, float posY, float estimatedModuleSize, int count);
./qrcode/detector/FinderPattern.h: FinderPattern(float posX
, float posY, float estimatedModuleSize);
./qrcode/detector/FinderPattern.h: float getEstimatedModule
Size() const;
./qrcode/detector/FinderPattern.h: bool aboutEquals(float m
oduleSize, float i, float j) const;
./qrcode/detector/FinderPattern.h: Ref<FinderPattern> combi
neEstimate(float i, float j, float newModuleSize) const;
./qrcode/detector/FinderPatternFinder.h: static float centerFromEnd(int* stateC
ount, int end);
./qrcode/detector/FinderPatternFinder.h: float crossCheckVertical(size_t startI
, size_t centerJ, int maxCount, int originalStateCountTotal);
./qrcode/detector/FinderPatternFinder.h: float crossCheckHorizontal(size_t star
tJ, size_t centerI, int maxCount, int originalStateCountTotal);
./qrcode/detector/FinderPatternFinder.h: static float distance(Ref<ResultPoint>
p1, Ref<ResultPoint> p2);
./qrcode/detector/AlignmentPatternFinder.h: float moduleSize_;
./qrcode/detector/AlignmentPatternFinder.h: static float centerFromEnd(std::vec
tor<int> &stateCount, int end);
./qrcode/detector/AlignmentPatternFinder.h: float crossCheckVertical(int startI
, int centerJ, int maxCount, int originalStateCountTotal);
./qrcode/detector/AlignmentPatternFinder.h: float module
Size, Ref<ResultPointCallback>const& callback);
./ResultPoint.cpp:ResultPoint::ResultPoint(float x, float y) : posX_(x), posY_(y
) {}
./ResultPoint.cpp:ResultPoint::ResultPoint(int x, int y) : posX_(float(x)), posY
_(float(y)) {}
./ResultPoint.cpp:float ResultPoint::getX() const {
./ResultPoint.cpp:float ResultPoint::getY() const {
./ResultPoint.cpp: float zeroOneDistance = distance(patterns[0]->getX(), patt
erns[1]->getX(),patterns[0]->getY(), patterns[1]->getY());
./ResultPoint.cpp: float oneTwoDistance = distance(patterns[1]->getX(), patte
rns[2]->getX(),patterns[1]->getY(), patterns[2]->getY());
./ResultPoint.cpp: float zeroTwoDistance = distance(patterns[0]->getX(), patt
erns[2]->getX(),patterns[0]->getY(), patterns[2]->getY());
./ResultPoint.cpp: float ResultPoint::distance(Ref<ResultPoint> pattern1, Ref<R
esultPoint> pattern2) {
./ResultPoint.cpp:float ResultPoint::distance(float x1, float x2, float y1, floa
t y2) {
./ResultPoint.cpp: float xDiff = x1 - x2;
./ResultPoint.cpp: float yDiff = y1 - y2;
./ResultPoint.cpp: return (float) sqrt((double) (xDiff * xDiff + yDiff * yDiff)
);
./ResultPoint.cpp:float ResultPoint::crossProductZ(Ref<ResultPoint> pointA, Ref<
ResultPoint> pointB, Ref<ResultPoint> pointC) {
./ResultPoint.cpp: float bX = pointB->getX();
./ResultPoint.cpp: float bY = pointB->getY();
./pdf417/detector/Detector.h: static float computeModuleWidth(ArrayRef< Ref<Res
ultPoint> >& vertices);
./pdf417/detector/Detector.h: float moduleWidth);
./pdf417/detector/Detector.h: float moduleWidth);
./pdf417/detector/LinesSampler.cpp:vector<float> LinesSampler::init_ratios_table
() {
./pdf417/detector/LinesSampler.cpp: vector<vector<float> > table (BitMatrixPars
er::SYMBOL_TABLE_LENGTH);
./pdf417/detector/LinesSampler.cpp: vector<float> RATIOS_TABLE (BitMatrixParser
::SYMBOL_TABLE_LENGTH * LinesSampler::BARS_IN_SYMBOL);
./pdf417/detector/LinesSampler.cpp: float size = 0.0f;
./pdf417/detector/LinesSampler.cpp:const vector<float> LinesSampler::RATIOS_TABL
E = init_ratios_table();
./pdf417/detector/LinesSampler.cpp: vector<float> symbolWidths;
./pdf417/detector/LinesSampler.cpp:void LinesSampler::computeSymbolWidths(vector
<float> &symbolWidths, const int symbolsPerLine, Ref<BitMatrix> linesMatrix)
./pdf417/detector/LinesSampler.cpp: const float symbolWidth = symbolsPerLine >
0 ? (float)linesMatrix->getWidth() / (float)symbolsPerLine : (float)linesMatrix-
>getWidth();
./pdf417/detector/LinesSampler.cpp: float currentWidth = (float)(x - symb
olStart);
./pdf417/detector/LinesSampler.cpp: float currentWidth = (float)(linesMatrix->g
etWidth() - symbolStart);
./pdf417/detector/LinesSampler.cpp: con
st vector<float>& symbolWidths,
./pdf417/detector/LinesSampler.cpp: if ((float)cwWidth > symbolWidths[cwCou
nt - 1]) {
./pdf417/detector/LinesSampler.cpp: vector<vector<float> > cwRatios(symbolsPe
rLine);
./pdf417/detector/LinesSampler.cpp: float cwWidth = 0;
./pdf417/detector/LinesSampler.cpp: cwWidth += (float)barWidths[cwStart +
j];
./pdf417/detector/LinesSampler.cpp: cwRatios[i][j] = (float)barWidths[c
wStart + j] / symbolWidths[i];
./pdf417/detector/LinesSampler.cpp: cwRatios[i][j] = (float)barWidths[c
wStart + j] / cwWidth;
./pdf417/detector/LinesSampler.cpp: float bestMatchError = std::numeric_lim
its<float>::max();
./pdf417/detector/LinesSampler.cpp: float error = 0.0f;
./pdf417/detector/LinesSampler.cpp: float diff = RATIOS_TABLE[j * BARS_
IN_SYMBOL + k] - cwRatios[i][k];
./pdf417/detector/LinesSampler.cpp:int LinesSampler::round(float d)
./pdf417/detector/LinesSampler.cpp: float dxa = a.start.x - a.end.x;
./pdf417/detector/LinesSampler.cpp: float dxb = b.start.x - b.end.x;
./pdf417/detector/LinesSampler.cpp: float dya = a.start.y - a.end.y;
./pdf417/detector/LinesSampler.cpp: float dyb = b.start.y - b.end.y;
./pdf417/detector/LinesSampler.cpp: float p = a.start.x * a.end.y - a.start.y *
a.end.x;
./pdf417/detector/LinesSampler.cpp: float q = b.start.x * b.end.y - b.start.y *
b.end.x;
./pdf417/detector/LinesSampler.cpp: float denom = dxa * dyb - dya * dxb;
./pdf417/detector/LinesSampler.cpp: return Point(std::numeric_limits<float>::
infinity(),
./pdf417/detector/LinesSampler.cpp: std::numeric_limits<float>::
infinity());
./pdf417/detector/LinesSampler.cpp: float x = (p * dxb - dxa * q) / denom;
./pdf417/detector/LinesSampler.cpp: float y = (p * dyb - dya * q) / denom;
./pdf417/detector/LinesSampler.h: static const std::vector<float> RATIOS_TABLE;
./pdf417/detector/LinesSampler.h: static std::vector<float> init_ratios_table()
;
./pdf417/detector/LinesSampler.h: static float computeModuleWidth(std::vector<R
ef<ResultPoint> > &vertices);
./pdf417/detector/LinesSampler.h: float moduleWidth
);
./pdf417/detector/LinesSampler.h: float moduleWidth);
./pdf417/detector/LinesSampler.h: static void computeSymbolWidths(std::vector<f
loat>& symbolWidths,
./pdf417/detector/LinesSampler.h: const std:
:vector<float> &symbolWidths,
./pdf417/detector/LinesSampler.h: static int round(float d);
./pdf417/detector/Detector.cpp: float moduleWidth = computeModuleWidth(vertices
);
./pdf417/detector/Detector.cpp: result[0] = new ResultPoint((float)loc[0],
(float)i);
./pdf417/detector/Detector.cpp: result[4] = new ResultPoint((float)loc[1],
(float)i);
./pdf417/detector/Detector.cpp: result[1] = new ResultPoint((float)loc[0]
, (float)i);
./pdf417/detector/Detector.cpp: result[5] = new ResultPoint((float)loc[1]
, (float)i);
./pdf417/detector/Detector.cpp: result[2] = new ResultPoint((float)loc[1]
, (float)i);
./pdf417/detector/Detector.cpp: result[6] = new ResultPoint((float)loc[0]
, (float)i);
./pdf417/detector/Detector.cpp: result[3] = new ResultPoint((float)loc[1]
, (float)i);
./pdf417/detector/Detector.cpp: result[7] = new ResultPoint((float)loc[0]
, (float)i);
./pdf417/detector/Detector.cpp: result[0] = new ResultPoint((float)loc[1],
(float)i);
./pdf417/detector/Detector.cpp: result[4] = new ResultPoint((float)loc[0],
(float)i);
./pdf417/detector/Detector.cpp: result[1] = new ResultPoint((float)loc[1]
, (float)i);
./pdf417/detector/Detector.cpp: result[5] = new ResultPoint((float)loc[0]
, (float)i);
./pdf417/detector/Detector.cpp: result[2] = new ResultPoint((float)loc[0]
, (float)i);
./pdf417/detector/Detector.cpp: result[6] = new ResultPoint((float)loc[1]
, (float)i);
./pdf417/detector/Detector.cpp: result[3] = new ResultPoint((float)loc[0]
, (float)i);
./pdf417/detector/Detector.cpp: result[7] = new ResultPoint((float)loc[1]
, (float)i);
./pdf417/detector/Detector.cpp: // We're going to fake floating-point math in i
ntegers. We just need to use more bits.
./pdf417/detector/Detector.cpp: float barDiff = verticeEnd->getX() - verticeSta
rt->getX();
./pdf417/detector/Detector.cpp: float barStart = verticeStart->getX() + barDiff
* (float)startWideBar / (float)lenPattern;
./pdf417/detector/Detector.cpp: float barEnd = verticeStart->getX() + barDiff *
(float)endWideBar / (float)lenPattern;
./pdf417/detector/Detector.cpp: vertices[offsetVertice + 8] = new ResultPoint((
float)x, (float)y);
./pdf417/detector/Detector.cpp: if (result.x == numeric_limits<float>::infinity
() ||
./pdf417/detector/Detector.cpp: result.y == numeric_limits<float>::infinity
()) {
./pdf417/detector/Detector.cpp: float dxa = a.start.x - a.end.x;
./pdf417/detector/Detector.cpp: float dxb = b.start.x - b.end.x;
./pdf417/detector/Detector.cpp: float dya = a.start.y - a.end.y;
./pdf417/detector/Detector.cpp: float dyb = b.start.y - b.end.y;
./pdf417/detector/Detector.cpp: float p = a.start.x * a.end.y - a.start.y * a.e
nd.x;
./pdf417/detector/Detector.cpp: float q = b.start.x * b.end.y - b.start.y * b.e
nd.x;
./pdf417/detector/Detector.cpp: float denom = dxa * dyb - dya * dxb;
./pdf417/detector/Detector.cpp: return Point(numeric_limits<float>::infinity(
),
./pdf417/detector/Detector.cpp: numeric_limits<float>::infinity(
));
./pdf417/detector/Detector.cpp: float x = (p * dxb - dxa * q) / denom;
./pdf417/detector/Detector.cpp: float y = (p * dyb - dya * q) / denom;
./pdf417/detector/Detector.cpp:float Detector::computeModuleWidth(ArrayRef< Ref<
ResultPoint> >& vertices) {
./pdf417/detector/Detector.cpp: float pixels1 = ResultPoint::distance(vertices[
0], vertices[4]);
./pdf417/detector/Detector.cpp: float pixels2 = ResultPoint::distance(vertices[
1], vertices[5]);
./pdf417/detector/Detector.cpp: float moduleWidth1 = (pixels1 + pixels2) / (17
* 2.0f);
./pdf417/detector/Detector.cpp: float pixels3 = ResultPoint::distance(vertices[
6], vertices[2]);
./pdf417/detector/Detector.cpp: float pixels4 = ResultPoint::distance(vertices[
7], vertices[3]);
./pdf417/detector/Detector.cpp: float moduleWidth2 = (pixels3 + pixels4) / (18
* 2.0f);
./pdf417/detector/Detector.cpp: float moduleWidth)
./pdf417/detector/Detector.cpp: float moduleWidth
)
./pdf417/detector/Detector.cpp: (float)sampleDimensionX, 0.0f,
./pdf417/detector/Detector.cpp: 0.0f, (float)sampleDimensionY,
./pdf417/detector/Detector.cpp: (float)sampleDimensionX, (float)sampleD
imensionY,
./common/PerspectiveTransform.h: float a11, a12, a13, a21, a22, a23, a31, a32,
a33;
./common/PerspectiveTransform.h: PerspectiveTransform(float a11, float a21, flo
at a31, float a12, float a22, float a32, float a13, float a23,
./common/PerspectiveTransform.h: float a33);
./common/PerspectiveTransform.h: quadrilateralToQuadrilateral(float x0, float y
0, float x1, float y1, float x2, float y2, float x3, float y3,
./common/PerspectiveTransform.h: float x0p, float
y0p, float x1p, float y1p, float x2p, float y2p, float x3p, float y3p);
./common/PerspectiveTransform.h: static Ref<PerspectiveTransform> squareToQuadr
ilateral(float x0, float y0, float x1, float y1, float x2, float y2,
./common/PerspectiveTransform.h: float x3, float y3);
./common/PerspectiveTransform.h: static Ref<PerspectiveTransform> quadrilateral
ToSquare(float x0, float y0, float x1, float y1, float x2, float y2,
./common/PerspectiveTransform.h: float x3, float y3);
./common/PerspectiveTransform.h: void transformPoints(std::vector<float> &point
s);
./common/GridSampler.cpp: vector<float> points(dimension << 1, (const float)0.0
f);
./common/GridSampler.cpp: float yValue = (float)y + 0.5f;
./common/GridSampler.cpp: points[x] = (float)(x >> 1) + 0.5f;
./common/GridSampler.cpp: vector<float> points(dimensionX << 1, (const float)0.
0f);
./common/GridSampler.cpp: float yValue = (float)y + 0.5f;
./common/GridSampler.cpp: points[x] = (float)(x >> 1) + 0.5f;
./common/GridSampler.cpp:Ref<BitMatrix> GridSampler::sampleGrid(Ref<BitMatrix> i
mage, int dimension, float p1ToX, float p1ToY, float p2ToX,
./common/GridSampler.cpp: float p2ToY, flo
at p3ToX, float p3ToY, float p4ToX, float p4ToY, float p1FromX, float p1FromY, f
loat p2FromX,
./common/GridSampler.cpp: float p2FromY, f
loat p3FromX, float p3FromY, float p4FromX, float p4FromY) {
./common/GridSampler.cpp:void GridSampler::checkAndNudgePoints(Ref<BitMatrix> im
age, vector<float> &points) {
./common/GridSampler.cpp: points[offset] = float(width - 1);
./common/GridSampler.cpp: points[offset + 1] = float(height - 1);
./common/GridSampler.h: Ref<BitMatrix> sampleGrid(Ref<BitMatrix> image, int dim
ension, float p1ToX, float p1ToY, float p2ToX, float p2ToY,
./common/GridSampler.h: float p3ToX, float p3ToY, flo
at p4ToX, float p4ToY, float p1FromX, float p1FromY, float p2FromX,
./common/GridSampler.h: float p2FromY, float p3FromX,
float p3FromY, float p4FromX, float p4FromY);
./common/GridSampler.h: static void checkAndNudgePoints(Ref<BitMatrix> image, s
td::vector<float> &points);
./common/PerspectiveTransform.cpp:PerspectiveTransform::PerspectiveTransform(flo
at inA11, float inA21,
./common/PerspectiveTransform.cpp: flo
at inA31, float inA12,
./common/PerspectiveTransform.cpp: flo
at inA22, float inA32,
./common/PerspectiveTransform.cpp: flo
at inA13, float inA23,
./common/PerspectiveTransform.cpp: flo
at inA33) :
./common/PerspectiveTransform.cpp:Ref<PerspectiveTransform> PerspectiveTransform
::quadrilateralToQuadrilateral(float x0, float y0, float x1, float y1,
./common/PerspectiveTransform.cpp: float x2, float y2, float x3, float y3, fl
oat x0p, float y0p, float x1p, float y1p, float x2p, float y2p,
./common/PerspectiveTransform.cpp: float x3p, float y3p) {
./common/PerspectiveTransform.cpp:Ref<PerspectiveTransform> PerspectiveTransform
::squareToQuadrilateral(float x0, float y0, float x1, float y1, float x2,
./common/PerspectiveTransform.cpp: float y2, float x3, float y3) {
./common/PerspectiveTransform.cpp: float dx3 = x0 - x1 + x2 - x3;
./common/PerspectiveTransform.cpp: float dy3 = y0 - y1 + y2 - y3;
./common/PerspectiveTransform.cpp: float dx1 = x1 - x2;
./common/PerspectiveTransform.cpp: float dx2 = x3 - x2;
./common/PerspectiveTransform.cpp: float dy1 = y1 - y2;
./common/PerspectiveTransform.cpp: float dy2 = y3 - y2;
./common/PerspectiveTransform.cpp: float denominator = dx1 * dy2 - dx2 * dy1;
./common/PerspectiveTransform.cpp: float a13 = (dx3 * dy2 - dx2 * dy3) / deno
minator;
./common/PerspectiveTransform.cpp: float a23 = (dx1 * dy3 - dx3 * dy1) / deno
minator;
./common/PerspectiveTransform.cpp:Ref<PerspectiveTransform> PerspectiveTransform
::quadrilateralToSquare(float x0, float y0, float x1, float y1, float x2,
./common/PerspectiveTransform.cpp: float y2, float x3, float y3) {
./common/PerspectiveTransform.cpp:void PerspectiveTransform::transformPoints(vec
tor<float> &points) {
./common/PerspectiveTransform.cpp: float x = points[i];
./common/PerspectiveTransform.cpp: float y = points[i + 1];
./common/PerspectiveTransform.cpp: float denominator = a13 * x + a23 * y + a3
3;
./common/detector/WhiteRectangleDetector.cpp: float aX = float(aX_), aY = float
(aY_), bX = float(bX_), bY = float(bY_);
./common/detector/WhiteRectangleDetector.cpp: float xStep = (bX - aX) / dist;
./common/detector/WhiteRectangleDetector.cpp: float yStep = (bY - aY) / dist;
./common/detector/WhiteRectangleDetector.cpp: Ref<ResultPoint> point(new Re
sultPoint(float(x), float(y)));
./common/detector/WhiteRectangleDetector.cpp: float yi = y->getX();
./common/detector/WhiteRectangleDetector.cpp: float yj = y->getY();
./common/detector/WhiteRectangleDetector.cpp: float zi = z->getX();
./common/detector/WhiteRectangleDetector.cpp: float zj = z->getY();
./common/detector/WhiteRectangleDetector.cpp: float xi = x->getX();
./common/detector/WhiteRectangleDetector.cpp: float xj = x->getY();
./common/detector/WhiteRectangleDetector.cpp: float ti = t->getX();
./common/detector/WhiteRectangleDetector.cpp: float tj = t->getY();
./common/detector/WhiteRectangleDetector.cpp: if (yi < (float)width_/2.0f) {
./common/detector/MathUtils.h: * Ends up being a bit faster than {@link Math#r
ound(float)}. This merely rounds its
./common/detector/MathUtils.h: static inline int round(float d) {
./common/detector/MathUtils.h: static inline float distance(float aX, float aY,
float bX, float bY) {
./common/detector/MathUtils.h: float xDiff = aX - bX;
./common/detector/MathUtils.h: float yDiff = aY - bY;
./common/detector/MathUtils.h: static inline float distance(int aX, int aY, int
bX, int bY) {
./common/detector/MathUtils.h: return sqrt(float(xDiff * xDiff + yDiff * yDif
f));
./common/detector/MonochromeRectangleDetector.h: int max(int a, float b) { retu
rn (float) a > b ? a : (int) b;};
./common/detector/JavaMath.h: static inline int round(float a) {
./common/Point.h: Point(float x_, float y_) : x(x_), y(y_) {};
./common/Point.h: float x;
./common/Point.h: float y;
./datamatrix/detector/Detector.h: int round(float d) {
./datamatrix/detector/CornerPoint.h: CornerPoint(float posX,
float posY);
./datamatrix/detector/Detector.cpp: float corr = distance(bottomLeft, bottomRig
ht) / (float) dimensionTop;
./datamatrix/detector/Detector.cpp: float cos = (topRight->getX() - topLeft->ge
tX()) / norm;
./datamatrix/detector/Detector.cpp: float sin = (topRight->getY() - topLeft->ge
tY()) / norm;
./datamatrix/detector/Detector.cpp: corr = distance(bottomLeft, topLeft) / (flo
at) dimensionRight;
./datamatrix/detector/Detector.cpp: float corr = distance(bottomLeft, bottomRig
ht) / (float) dimension;
./datamatrix/detector/Detector.cpp: float cos = (topRight->getX() - topLeft->ge
tX()) / norm;
./datamatrix/detector/Detector.cpp: float sin = (topRight->getY() - topLeft->ge
tY()) / norm;
./datamatrix/detector/Detector.cpp: corr = distance(bottomLeft, topLeft) / (flo
at) dimension;
./datamatrix/detector/CornerPoint.cpp: CornerPoint::CornerPoint(float p
osX, float posY) :

Anda mungkin juga menyukai