Friday, April 26, 2013

"<" will cause HTML format error --><


HTML: code "<":
==========================
 for(r=0;r&lt;rows;r++)
  {
   for(c=0;c&lt;cols;c++)
==========================
reference:
http://www.w3schools.com/html/html_entities.asp

+It is not possible to use the less than (<) or greater than (>) signs in your text, because the browser will mix them with tags.

+To display a less than sign we must write: &lt; or &#60;



result: it works now !
    // gray debug
       // gray debug
    // 2013/4/12: performance low
 public void RunDebug_1(Mat image)
 {
  Log.i(TAG,"+++RunDebug_1");
  
  int rows = image.rows();
  int cols = image.cols();
  
  //Log.i(TAG,"row:"+rows+"cols:"+cols);
  
  double [] d;
  int r,c;
  double g;
  
  //Log.i(TAG,"+++sslake check 1");
  for(r=0;r<rows;r++)
  {
   for(c=0;c<cols;c++)
   {
    d= image.get(r, c);
    //gray= 0.299*R+ 0.587*G + 0.114*B
    g = 0.299* d[0]+0.587*d[1] + 0.114*d[2];
    
    image.put(r,c,g,g,g,255);
    
   }
   if(r %50 ==0)
    Log.i(TAG,"+++sslake check 1 r:->"+r);
  }

 }
 //

No comments:

Post a Comment