Skip to content

Commit

Permalink
Merge pull request #638 from sorewanya/patch-1
Browse files Browse the repository at this point in the history
Update tutorial.md
  • Loading branch information
brendan-duncan authored Apr 9, 2024
2 parents 7e8a1f6 + 975edd0 commit 8889d7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ List<img.Image> splitImage(img.Image inputImage, int horizontalPieceCount, int v
final pieceHeight = (image.height / verticalPieceCount).round();
final pieceList = List<imglib.Image>.empty(growable: true);
for (var y = 0; y < image.height; y += pieceHieght) {
for (var y = 0; y < image.height; y += pieceHeight) {
for (var x = 0; x < image.width; x += pieceWidth) {
pieceList.add(img.copyCrop(image, x: x, y: y, width: pieceWidth, height: pieceHeight));
}
}
return outputImageList;
return pieceList;
}
```

0 comments on commit 8889d7e

Please sign in to comment.