swtloc.utils
Description
Functions
|
Autocanny Function. |
|
A decorator to mark the deprecated functions and give the reason of deprecation. Alongside the reason, also inform in which version will the function be removed. If the function is being relocated then also inform in favour of which function will this function will be relocated :param reason: Reason for relocation/deprecation :type reason: str :param in_favour_of: If relocated, in favour of which function is this function being relocated :type in_favour_of: str :param removed_in: In which version will the function be removed :type removed_in: str :param relocated: Is the deprecation for being relocated :type relocated: Optional[bool]. |
Generates random image names made of random numbers :param n: Number of names to generate :type n: int |
|
Function to find the connected components alongside their stats using oepncv's connectedComponentWithStats function for any given image. |
|
|
Prepare the RGB channel image from a single channel image (gray-scale). |
|
Perform type sanity checks for the values provided in cfg for a particular cfg_of configuration type. |
|
Print a red color text. |
|
Display n (<=4) images in a grid. |
|
Calculate unique integers in an image and their counts |
Exceptions
Raised when functions don't follow a proper flow for SWTImage |
|
Base class for SWTLoc Exceptions |
|
Raised when wrong input is provided to the SWTLocalizer class |
|
Raised when non-acceptable type is received in the parameters |
|
Raised when non-acceptable value is received in the parameters |