Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'm guessing you're trying to get this:

for (int i=0; i < 4; i++){         
                 for(int j=0; j < 3; j++){
                   k++;
                   Mat temp_small_image = small_image.clone();
                   putText(temp_small_image, print_name(k), Point(45, 180),
                          FONT_HERSHEY_SCRIPT_SIMPLEX, 1,
                          Scalar::all(255), 1,CV_AA);
                  temp_small_image.copyTo(im_out(Rect(i*200,j*200,small_image.cols,
                         small_image.rows)));
                 }
             }

I'm guessing you're trying to get this:

 for (int i=0; i < 4; i++){         
                 for(int j=0; j < 3; j++){
                   k++;
                   Mat temp_small_image = small_image.clone();
                   putText(temp_small_image, print_name(k), Point(45, 180),
                          FONT_HERSHEY_SCRIPT_SIMPLEX, 1,
                          Scalar::all(255), 1,CV_AA);
                  temp_small_image.copyTo(im_out(Rect(i*200,j*200,small_image.cols,
                         small_image.rows)));
                 }
             }

I'm guessing you're trying to get this:

 

for (int i=0; i < 4; i++){
for(int j=0; j < 3; j++){ k++; Mat temp_small_image = small_image.clone(); putText(temp_small_image, print_name(k), Point(45, 180), 180), FONT_HERSHEY_SCRIPT_SIMPLEX, 1, 1, Scalar::all(255), 1,CV_AA); temp_small_image.copyTo(im_out(Rect(i*200,j*200,small_image.cols, small_image.rows))); temp_small_image.copyTo(im_out(Rect(i200,j200,small_image.cols,small_image.rows))); } }

}

I'm guessing you're trying to get this:

for (int i=0; i < 4; i++){ 
for(int j=0; j < 3; j++){ k++; Mat temp_small_image = small_image.clone(); putText(temp_small_image, print_name(k), Point(45, 180), FONT_HERSHEY_SCRIPT_SIMPLEX, 1, Scalar::all(255), 1,CV_AA); temp_small_image.copyTo(im_out(Rect(i200,j200,small_image.cols,small_image.rows))); temp_small_image.copyTo(im_out(Rect(i*200,j*200,small_image.cols,small_image.rows))); } }

}

I'm guessing you're trying to get this:

for (int i=0; i < 4; i++){         
  for(int j=0; j < 3; j++){
    k++;
    Mat temp_small_image = small_image.clone();
    putText(temp_small_image, print_name(k), Point(45, 180),  FONT_HERSHEY_SCRIPT_SIMPLEX, 1, Scalar::all(255), 1,CV_AA);
    temp_small_image.copyTo(im_out(Rect(i*200,j*200,small_image.cols,small_image.rows)));
temp_small_image.copyTo(im_out(Rect(i*200,j*200,
   small_image.cols,small_image.rows)));
  }
}