title: rotate image opencv
body: <p>I am trying to rotate the output of Hue-histogram which is (5*1) into another image which should have (1*5) dimension. </p>
  
  <p>I am using the following code but i am getting segmentation fault:</p>
  
  <pre><code>    MatND hist_input;
      calcHist( &amp;hsv_input, 1, channels, Mat(), hist_input, 1, histSize, ranges, true, false );
      normalize( hist_input, hist_input, 0, 1, NORM_MINMAX, -1, Mat() );
  
      MatND rotated_histogram;
      rotated_histogram.create( 0,  hist_input.rows, CV_32FC1);
  
      for (int i=0; i&lt;hist_input.rows; i++)
      {
          rotated_histogram.at&lt;float&gt;(0,i) = hist_input.at&lt;float&gt;(i,0);
      }
  </code></pre>