projects
/
experiments
/
opencv.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a couple of typos
[experiments/opencv.git]
/
perspective-transform
/
opencv-perspective-transform.c
diff --git
a/perspective-transform/opencv-perspective-transform.c
b/perspective-transform/opencv-perspective-transform.c
index
55d8c24
..
fd78c36
100644
(file)
--- a/
perspective-transform/opencv-perspective-transform.c
+++ b/
perspective-transform/opencv-perspective-transform.c
@@
-54,14
+54,14
@@
int main(int argc, char *argv[])
cvNamedWindow("Viewport", 0);
cvResizeWindow("Viewport", WIDTH, HEIGHT);
cvNamedWindow("Viewport", 0);
cvResizeWindow("Viewport", WIDTH, HEIGHT);
- /* Trasform only a part of the whole image */
+ /* Tra
n
sform only a part of the whole image */
viewport.x = 0;
viewport.y = 0;
viewport.width = WIDTH;
viewport.height = HEIGHT;
cvSetImageROI(image, viewport);
viewport.x = 0;
viewport.y = 0;
viewport.width = WIDTH;
viewport.height = HEIGHT;
cvSetImageROI(image, viewport);
- /* Calculate the p
rospective tranformation
*/
+ /* Calculate the p
erspective transform
*/
src[0].x = 0;
src[0].y = 0;
src[1].x = WIDTH;
src[0].x = 0;
src[0].y = 0;
src[1].x = WIDTH;
@@
-90,11
+90,11
@@
int main(int argc, char *argv[])
perspective_matrix = cvGetPerspectiveTransform(src, dst,
perspective_matrix);
perspective_matrix = cvGetPerspectiveTransform(src, dst,
perspective_matrix);
- /* Create a new image and apply the p
rospective transformation
*/
+ /* Create a new image and apply the p
erspective transform
*/
transformed_image = cvCreateImage(cvSize(WIDTH, HEIGHT), image->depth,
image->nChannels);
if (!transformed_image) {
transformed_image = cvCreateImage(cvSize(WIDTH, HEIGHT), image->depth,
image->nChannels);
if (!transformed_image) {
- fprintf(stderr, "Cannot create tra
sn
formed image\n");
+ fprintf(stderr, "Cannot create tra
ns
formed image\n");
ret = -EINVAL;
goto out_release_mat;
}
ret = -EINVAL;
goto out_release_mat;
}