TUTGAK-Stitcher
An image stitcher library written in python
 
Loading...
Searching...
No Matches
image_record.ImageRecord Class Reference

Represents a state of the stitcher. More...

Inheritance diagram for image_record.ImageRecord:
image_history.ImageHistory

Public Member Functions

None __init__ (self, np.ndarray original_image, np.ndarray warped_image, np.ndarray warped_gray, int x_warped, int y_warped, np.ndarray homography, Any metadata)
 Creates a new ImageRecord object.
 
str __str__ (self)
 Converts an ImageRecord object to a string.
 

Public Attributes

np.ndarray original_image
 
np.ndarray warped_image
 
np.ndarray warped_gray
 
int x_warped
 
int y_warped
 
np.ndarray homography
 
str metadata
 
dt.datetime datetime
 

Private Attributes

 __det
 

Detailed Description

Represents a state of the stitcher.

An ImageRecord object, holds some information about a particular state of the Stitcher, such as the homography matrix, the original image, etc.

Constructor & Destructor Documentation

◆ __init__()

None image_record.ImageRecord.__init__ ( self,
np.ndarray original_image,
np.ndarray warped_image,
np.ndarray warped_gray,
int x_warped,
int y_warped,
np.ndarray homography,
Any metadata )

Creates a new ImageRecord object.

Parameters
original_imageOriginal, untransformed image
warped_imageImage after warping
warped_grayImage after warping, gray
x_warpedX coordinate of the warped image on the final image
y_warpedY coordinate of the warped image on the final image
homographyThe homography matrix that is used to transform original image to warped_image
metadataExtra data to hold with the current state

Reimplemented in image_history.ImageHistory.

Member Function Documentation

◆ __str__()

str image_record.ImageRecord.__str__ ( self)

Converts an ImageRecord object to a string.

Returns
String representation of the ImageRecord object

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