My Project
Loading...
Searching...
No Matches
ver3.ImageIO Class Reference

Public Member Functions

 __init__ (self, shared_data)
 @breif initializator for whole method.
 
 load_image (self, path)
 @breif function for loading image
 
 write_image (self, img, fileName="image.png")
 function to manipulate the image
 
 show_image (self, img, title="Image Title", canvas=None)
 @breif function to print image through the projector
 

Public Attributes

 shared_data = shared_data
 

Constructor & Destructor Documentation

◆ __init__()

ver3.ImageIO.__init__ ( self,
shared_data )

@breif initializator for whole method.

get parsed config.cfg data from the class 'SharedData'

Parameters
selfthe class itself
shared_dataparsed config.cfg data
Returns
None

Member Function Documentation

◆ load_image()

ver3.ImageIO.load_image ( self,
path )

@breif function for loading image

Parameters
pathpath of the image
Returns
numpy array, image

◆ show_image()

ver3.ImageIO.show_image ( self,
img,
title = "Image Title",
canvas = None )

@breif function to print image through the projector

Parameters
imgnumpy array, image matrix
titletitle of the window. 'Image Title' will be the default value when there is no input.
canvasparameter needed for library 'Tinker Canvas'. None is default value.
Returns
None

◆ write_image()

ver3.ImageIO.write_image ( self,
img,
fileName = "image.png" )

function to manipulate the image

Parameters
img,loadedimage, numpy matrix
fileName,nameof the image. "image.png" will be the default value if there are no input
Returns
None

The documentation for this class was generated from the following file: