Tiny Image Segmentation:
A program to segment an image into _K_>1 regions, where _K_ is a user parameter.
-> Program Input: A single bitmap RGB image in jpg or png formats. A positive integer _K_ > 1, i.e., the number of final regions.
Program output: A list of regions ordered from large to small (pixel count). Each line of the terminal output (System. Out) contains:
1. size of the region, this is the number of pixels in the region
2. color of the region, this color is the average color of all pixels in the region
->An image file, in which, all pixels in the same region are assigned the average color of the region.
->Data structures used: Priority queue_ (binary heap) and _disjoint sets_ (union-find data structure), TreeSet, Array List, Arrays.