Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Calibrator only looks for left side marker #159

Merged
merged 1 commit into from
Apr 29, 2015
Merged

Calibrator only looks for left side marker #159

merged 1 commit into from
Apr 29, 2015

Conversation

scf2k
Copy link
Contributor

@scf2k scf2k commented Apr 29, 2015

Calibrator only looks for left side marker and does not crop from the right/bottom side

@@ -77,8 +74,8 @@ Calibrator.prototype.calibrate = function(browser) {
var calibration = {
top: start.pos.y,
left: start.pos.x,
right: width - 1 - end.pos.x,
bottom: height - 1 - end.pos.y
right: 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно вообще эти значения убрать и не учитывать их при кропе

if (!end.pos) {
checkPattern({x: width - x - 1, y: height - y - 1}, end, true);
(function () {
for (var y = 0; y < height && !start.pos; y++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Проверки на !start.pos не убрал

scf2k added a commit that referenced this pull request Apr 29, 2015
Calibrator only looks for left side marker
@scf2k scf2k merged commit 14ad755 into master Apr 29, 2015
@scf2k scf2k deleted the fix/calib-crop branch April 29, 2015 14:25
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 65.8% when pulling 90da220 on fix/calib-crop into 9dce719 on master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants