Digital Half-toning is a technique to convert the gray scale / color image (in the range 0-255) to binary images (in the range 0-1) that is useful for printing (especially black and white printers). Though at first glance dots are clearly visible, as Human Vision System is a low pass filter, when dots are printed closely and viewed from the specific distance it can be perceived as a continuous tone image (i.e. gray scale). In general, half toning techniques is widely used in newspapers, journals and magazines printing. Halftoning algorithms aims for better #Image Quality #Low Complexity #Optimal ink usage Coming to the topic, Ordered dithering is one of the standard technique to produce halftone image from continuous (gray scale) images. Let us assume, the first block containing 'B' is an image matrix and the 'H' is the threshold matrix. And the process is simply a element wise (pixel wise) comparison; if element of B > H (g
First let us start with dictionary.. The dictionary is defined in the format: key:value For example, dict={'name' : 'Python', 'version' : 2.7, 'new version' : 3.5} In the dictionary, name is associated to python, version is associated to 2.7 and so on. Now we start with definition of MODULES.. Modules are like dictionaries, we can think module is a python file (*.py) and then it can be imported and used. The modules can contain some functions and variables. For example, if i have a dictionary like this mydict={'Job' : "Research"} then its module can be created as #this file need to be saved as mydict.py def Job(): print("Research") #let also define a variable domain="Image Processing" Now we can access the file (technically module need to be imported) import mydict mydict.Job() print (mydict.domain) Lets go to CLASSES now.. Class is an another construct to create a functi