Fix a couple of typos
authorAntonio Ospite <ospite@studenti.unina.it>
Sat, 14 Sep 2013 15:32:36 +0000 (17:32 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Sat, 14 Sep 2013 15:33:23 +0000 (17:33 +0200)
perspective-transform/opencv-perspective-transform.c

index 55d8c24..fd78c36 100644 (file)
@@ -54,14 +54,14 @@ int main(int argc, char *argv[])
        cvNamedWindow("Viewport", 0);
        cvResizeWindow("Viewport", WIDTH, HEIGHT);
 
-       /* Trasform only a part of the whole image */
+       /* Transform only a part of the whole image */
        viewport.x = 0;
        viewport.y = 0;
        viewport.width = WIDTH;
        viewport.height = HEIGHT;
        cvSetImageROI(image, viewport);
 
-       /* Calculate the prospective tranformation */
+       /* Calculate the perspective transform */
        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);
 
-       /* Create a new image and apply the prospective transformation */
+       /* Create a new image and apply the perspective transform */
        transformed_image = cvCreateImage(cvSize(WIDTH, HEIGHT), image->depth,
                                          image->nChannels);
        if (!transformed_image) {
-               fprintf(stderr, "Cannot create trasnformed image\n");
+               fprintf(stderr, "Cannot create transformed image\n");
                ret = -EINVAL;
                goto out_release_mat;
        }