src.tests.fps_decorator_test

Classes

FPSDecoratorTest()

class src.tests.fps_decorator_test.FPSDecoratorTest
Author:

Alberto M. Esmoris Pena

FPS decorator test that checks the FPS representation of point clouds is correctly computed.

__init__()

Basic configuration for any VL3D test.

Parameters:

name (str) – Test name

run()

Run FPS decorator test.

Returns:

True if the FPS decorator works as expected for the test cases, False otherwise.

Return type:

bool

static validate_transformer(fpsdt, X, F, ErepF, EproF)

Check whether the given FPSDecoratorTransformer yields the expected output.

Parameters:
  • fpsdt (FPSDecoratorTransformer) – The FPSDecoratorTransformer to be validated.

  • X (np.ndarray) – The input structure space matrix (i.e., matrix of point-wise coordinates).

  • F (np.ndarray) – The input feature space matrix (i.e., matrix of point-wise features).

  • ErepF (np.ndarray) – The expected features in the FPS representation space.

  • EproF (np.ndarray) – The expected features after propagating the features in the representation space back to the original space.

Returns:

True if the FPSDecoratorTransformer yielded the expected output, False otherwise.

Return type:

bool