Ignore:
Timestamp:
Apr 3, 2012, 10:58:14 PM (12 years ago)
Author:
plg
Message:

coding guidelines: indentation is made of spaces, not tabs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/image.class.php

    r13843 r13882  
    288288  static function get_sharpen_matrix($amount)
    289289  {
    290                 // Amount should be in the range of 28-10
    291                 $amount = round(abs(-28 + ($amount * 0.18)), 2);
    292 
    293                 $matrix = array
    294                 (
    295                         array(-1,   -1,    -1),
    296                         array(-1, $amount, -1),
    297                         array(-1,   -1,    -1),
    298                 );
     290    // Amount should be in the range of 28-10
     291    $amount = round(abs(-28 + ($amount * 0.18)), 2);
     292
     293    $matrix = array(
     294      array(-1,   -1,    -1),
     295      array(-1, $amount, -1),
     296      array(-1,   -1,    -1),
     297      );
    299298
    300299    $norm = array_sum(array_map('array_sum', $matrix));
     
    304303      $line = & $matrix[$i];
    305304      for ($j=0; $j<3; $j++)
     305      {
    306306        $line[$j] /= $norm;
    307     }
    308 
    309                 return $matrix;
     307      }
     308    }
     309
     310    return $matrix;
    310311  }
    311312
     
    461462  {
    462463    $m = pwg_image::get_sharpen_matrix($amount);
    463                 return  $this->image->convolveImage($m);
     464    return  $this->image->convolveImage($m);
    464465  }
    465466
     
    730731  {
    731732    $m = pwg_image::get_sharpen_matrix($amount);
    732                 return imageconvolution($this->image, $m, 1, 0);
     733    return imageconvolution($this->image, $m, 1, 0);
    733734  }
    734735
Note: See TracChangeset for help on using the changeset viewer.