示例#1
0
	def print_vertical_profile(self):
		def letter_row_callback(key, value):
			'''key is profile (Y) index, value is profile value'''
			return '  ' + self.pimage.debug_row_string(key, 40)
		
		callback = None
		profile = self.get_grayscale_vertical_profile()
		# This is only readable on single letters
		if print_vertical_profile_leading_image:
			callback = letter_row_callback
		profile.display_profile('vertical profile', 'Y', callback)
		profile.derrivative().display_profile('vertical derrivative profile', 'Y', callback)
示例#2
0
    def print_vertical_profile(self):
        def letter_row_callback(key, value):
            '''key is profile (Y) index, value is profile value'''
            return '  ' + self.pimage.debug_row_string(key, 40)

        callback = None
        profile = self.get_grayscale_vertical_profile()
        # This is only readable on single letters
        if print_vertical_profile_leading_image:
            callback = letter_row_callback
        profile.display_profile('vertical profile', 'Y', callback)
        profile.derrivative().display_profile('vertical derrivative profile',
                                              'Y', callback)
示例#3
0
 def print_horizontal_profile(self):
     profile = self.get_grayscale_horizontal_profile()
     profile.display_profile('horizontal profile', 'X')
示例#4
0
	def print_horizontal_profile(self):
		profile = self.get_grayscale_horizontal_profile()
		profile.display_profile('horizontal profile', 'X')