Public Member Functions | Public Attributes | Private Member Functions | List of all members
preprocess_gray_image.PreprocessGrayImage Class Reference
Inheritance diagram for preprocess_gray_image.PreprocessGrayImage:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def subscribe (self)
 
def unsubscribe (self)
 
- Public Member Functions inherited from topic_tools::LazyTransport
def __init__ (self)
 
def advertise (self, *args, **kwargs)
 
def peer_subscribe (self, *args, **kwargs)
 
def peer_unsubscribe (self, *args, **kwargs)
 
def subscribe (self)
 
def unsubscribe (self)
 

Public Attributes

 bridge
 
 mean_spectrum
 
 noise_data_path
 
 pub
 
 pub_normalized
 
 sub
 
 train_dir
 

Private Member Functions

def _process (self, imgmsg)
 

Detailed Description

This class is to preprocess gray spectrogram for classifying.
1. Spectral subtraction by spectral subtraction method
# 2. Smooth spectrogram
# 3. Normalize spectrogram (32FC1 -> 8UC1, make each pixel value 0 ~ 255)

Definition at line 13 of file preprocess_gray_image.py.

Constructor & Destructor Documentation

◆ __init__()

def preprocess_gray_image.PreprocessGrayImage.__init__ (   self)

Definition at line 21 of file preprocess_gray_image.py.

Member Function Documentation

◆ _process()

def preprocess_gray_image.PreprocessGrayImage._process (   self,
  imgmsg 
)
private

Definition at line 48 of file preprocess_gray_image.py.

◆ subscribe()

def preprocess_gray_image.PreprocessGrayImage.subscribe (   self)

Definition at line 41 of file preprocess_gray_image.py.

◆ unsubscribe()

def preprocess_gray_image.PreprocessGrayImage.unsubscribe (   self)

Definition at line 45 of file preprocess_gray_image.py.

Member Data Documentation

◆ bridge

preprocess_gray_image.PreprocessGrayImage.bridge

Definition at line 35 of file preprocess_gray_image.py.

◆ mean_spectrum

preprocess_gray_image.PreprocessGrayImage.mean_spectrum

Definition at line 30 of file preprocess_gray_image.py.

◆ noise_data_path

preprocess_gray_image.PreprocessGrayImage.noise_data_path

Definition at line 27 of file preprocess_gray_image.py.

◆ pub

preprocess_gray_image.PreprocessGrayImage.pub

Definition at line 36 of file preprocess_gray_image.py.

◆ pub_normalized

preprocess_gray_image.PreprocessGrayImage.pub_normalized

Definition at line 37 of file preprocess_gray_image.py.

◆ sub

preprocess_gray_image.PreprocessGrayImage.sub

Definition at line 42 of file preprocess_gray_image.py.

◆ train_dir

preprocess_gray_image.PreprocessGrayImage.train_dir

Definition at line 25 of file preprocess_gray_image.py.


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


sound_classification
Author(s):
autogenerated on Fri May 16 2025 03:12:55