Python Imaging Library(ImageStat Module)














































Python Imaging Library(ImageStat Module)



ImageStat Module The ImageStat module calculates global statistics for an image, or for a region of an image. class PIL.ImageStat.Stat(image_or_list, mask=None) Calculate statistics for the given image. If a mask is included, only the regions covered by that mask are included in the statistics. You can also pass in a previously calculated histogram. Parameters: image -: A PIL image, or a precalculated histogram. mask -: An optional mask. extrema Min/max values for each band in the image. count Total number of pixels for each band in the image. sum Sum of all pixels for each band in the image. sum2 Squared sum of all pixels for each band in the image. mean Average (arithmetic mean) pixel level for each band in the image. median Median pixel level for each band in the image. rms RMS (root-mean-square) for each band in the image. var Variance for each band in the image. stddev Standard deviation for each band in the image.

More Articles of Saurabh Sisodia:

Name Views Likes
Python Imaging Library(ExifTags Module) 413 13
Python Imaging Library(ImageTk Module) 579 20
Python Imaging Library(ImageStat Module) 560 29
Python Imaging Library(ImageSequence Module) 428 25
Python Imaging Library(ImagePath Module) 466 28
Python Imaging Library(ImageMath Module) 326 20
Python Imaging Library(ImageFont Module) 616 27
Python Imaging Library(ImageFilter Module) 472 21
Python Imaging Library(ImageFile Module) 323 11
Python Imaging Library(ImageEnhance Module) 364 12
Python program to check if a binary tree is subtree of another binary tree 598 14
Python Imaging Library(ImageDraw Module) 442 22
Python Imaging Library(ImageColor Module) 358 17
Python Imaging Library(Image Module) 404 20
Introduction Of Python Imaging Library (Pillow) 452 25
Python program to reverse a path in binary search tree using queue 423 19
Python program to find the maximum sum leaf to root path in a binary tree 434 27
Python program to find sum of all the numbers that are formed from root to leaf paths 315 11
Python program to find sum of leaf nodes at minimum level 344 16
Python program to print the path common to the two paths from the root to the two given nodes 390 20
Python program to find if there is a triplet in a Balanced binary search tree that adds to zero 466 14
Python program to find longest path with same values in a binary tree 385 14
Python program to find longest consecutive sequence in binary tree 448 27
Python program to find number of turns to reach from one node to other in binary tree 373 25
Python program to find the closest leaf in a binary tree 450 22
Python Program to find the closest leaf node to a given node 392 16
Python program to count pairs from two binary search trees whose sum is equal to a given value x 347 24
Python program to find pairs with given sum such that pair elements lie in different binary search trees 369 22
Python program to check whether a binary tree is a full binary tree or not without using recursion 283 15
Python program to find difference between sums of odd level and even level nodes of a binary tree 331 17
Python program to print duplicate elements from the binary search tree 337 15
Python program to print middle level of perfect binary tree without finding height 381 20
Python program to print path from root to a given node in a binary tree 857 23
Python program to find distance between two given keys of a binary tree 326 15
Python program to find distance from root to given node in a binary tree 320 15
Python program to check if given sorted sub-sequence exists in binary search tree 257 11
Python program to find kth ancestor of a node in binary tree 339 20
Python program to print ancestors of a given node in binary tree 430 22
Python program to find sum of value in each level of binary tree 386 16
Python program to check if a binary tree is sorted level-wise or not 328 14
Python program to get level of a node in binary tree using recursion 362 15
Python program to find successor for a given key in binary search tree without recursion 330 13
Python program to find k-th smallest element in binary search tree 353 24
Python program to convert binary tree to binary search tree 352 16
Python program to check if a binary tree has duplicate values 688 24

Comments