int yDiff = yCoord - mYCenter;
if (Math.abs(yDiff) > IRIS_BOUNDARY_SEARCH_RANGE * mRadius) {
return false;
}
int expectedXDistance = (int) Math.round(Math.sqrt(mRadius * mRadius - yDiff * yDiff));
<BUG>double brightnessSum = 0;
</BUG>
int leftBoundary = Math.max(mXCenter - expectedXDistance - xDistanceRange, 0);
int rightBoundary = Math.min(mXCenter - expectedXDistance + xDistanceRange, (int) mImage.getWidth() - 1);
for (int x = leftBoundary; x <= rightBoundary; x++) {

int yDiff = yCoord - mYCenter;
if (Math.abs(yDiff) > IRIS_BOUNDARY_SEARCH_RANGE * mRadius) {
return false;
}
int expectedXDistance = (int) Math.round(Math.sqrt(mRadius * mRadius - yDiff * yDiff));
float brightnessSum = 0;
int leftBoundary = Math.max(mXCenter - expectedXDistance - xDistanceRange, 0);
int rightBoundary = Math.min(mXCenter - expectedXDistance + xDistanceRange, (int) mImage.getWidth() - 1);
for (int x = leftBoundary; x <= rightBoundary; x++) {
