Skip to content

Commit

Permalink
Undo changes of commit 64c1e06 for the PR to fix issue smistad#53
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdefrutos committed May 10, 2023
1 parent 6952e65 commit 863e069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
3 changes: 1 addition & 2 deletions annotationweb/static/annotationweb/annotationweb.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ function loadSequence(image_sequence_id, start_frame, nrOfFrames, show_entire_se
}
g_startFrame = start;
g_sequenceLength = end-start;
console.log("Start frame = " + toString(g_startFrame) + ", sequence length = " + toString(g_sequenceLength));

// Create slider
$("#slider").slider(
Expand Down Expand Up @@ -570,4 +569,4 @@ function zoomAtMousePosition(mouseX, mouseY) {
// Have to convert imagedata to canvas for this to work
let background = g_context.getImageData(mouseX - 50, mouseY - 50, 100, 100);
g_context.drawImage(imageDataToCanvas(background), mouseX - 100, mouseY - 100, 200, 200);
}
}
20 changes: 1 addition & 19 deletions boundingbox/static/boundingbox/boundingbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,22 +258,4 @@ function redrawSequence() {
var index = g_currentFrameNr - g_startFrame;
g_context.drawImage(g_sequence[index], 0, 0, g_canvasWidth, g_canvasHeight);
redraw();
}

function copyToNext() {
// TODO: Check content of g_boxes[g_currentFrameNr+1] -> Is it empty/exist? Overwrite?
if (g_currentFrameNr < g_sequenceLength + 1) {
var boxes_to_copy = g_boxes[g_currentFrameNr];
for (var i = 0; i < boxes_to_copy.length; i++) {
addBox(g_currentFrameNr + 1, boxes_to_copy[i].x, boxes_to_copy[i].y,
boxes_to_copy[i].x + boxes_to_copy[i].width,
boxes_to_copy[i].y + boxes_to_copy[i].height,
boxes_to_copy[i].label_id);
}
//console.log(boxes_to_copy)
// Uncomment the next two lines if you want a confirmation message.
// Note that this message will stay until the site is refreshed
// var messageBox = document.getElementById("message");
// messageBox.innerHTML = '<span class="info">Content copied to the next frame!</span>';
}
}
}

0 comments on commit 863e069

Please sign in to comment.