Skip to content

Commit

Permalink
started with rtplan viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
brenthuisman committed Jul 5, 2019
1 parent 1543272 commit eabb456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ops_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def hu_to_density(self,hu2dens_table):

def ct_to_hu(self,intercept,slope):
'''Convert this image from CT numbers to Hounsdield units, using the intercept and slope you provide.'''
self.imdata = -intercept+slope*self.imdata
self.imdata = intercept+slope*self.imdata

def density_to_materialindex(self,dens2mat_table):
'''Convert this image from material densities to (continuous) materials indices, using the table you provide.'''
Expand Down

0 comments on commit eabb456

Please sign in to comment.