From c502b20bac91ebc9128c2e3a586391fcabd84b6b Mon Sep 17 00:00:00 2001 From: pacien Date: Wed, 27 Dec 2017 17:25:53 +0100 Subject: Remove duplicates following merge Signed-off-by: pacien --- include/morpher/morpher.h | 79 ----------------------------------------------- src/morpher/morpher.c | 23 -------------- 2 files changed, 102 deletions(-) delete mode 100644 include/morpher/morpher.h delete mode 100644 src/morpher/morpher.c diff --git a/include/morpher/morpher.h b/include/morpher/morpher.h deleted file mode 100644 index 1a4bd66..0000000 --- a/include/morpher/morpher.h +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef UPEM_MORPHING_MORPHER -#define UPEM_MORPHING_MORPHER - -/** - * File: morpher.h - * Coordinate mapping for morphing transforms. - */ - -#include "common/geom.h" -#include "common/time.h" - -/** - * Type: Morphing - * Represents an abstract coordinate transform from a source to a destination coordinate matrix, - * constrained by a given set of points. - */ -typedef struct { - CartesianVector dim; -} Morphing; - -/** - * Function: morpher_init - * Initialises a morphing. - * - * Parameters: - * *morphing - pointer to the morphing to initialise - * width - coordinate matrix width in pixels - * height - coordinate matrix height in pixels - */ -void morpher_init(Morphing *morphing, IntVector width, IntVector height); - -/** - * Function: morpher_free - * Frees any resources allocated to a morphing. - * - * Parameters: - * *morphing - pointer to the morphing to destroy - */ -void morpher_free(Morphing *morphing); - -/** - * Function: morpher_add_constraint - * Adds a constraint point to a morphing. - * - * Parameters: - * *morphing - pointer to the morphing to alter - * origin - constraint point coordinates on the origin matrix - * destination - constraint point coordinates on the target matrix - */ -void morpher_add_constraint(Morphing *morphing, CartesianVector origin, CartesianVector destination); - -/** - * Function: morpher_get_point_mapping - * Computes and returns the coordinates of a given point at the given transform step - * in the origin and destination matrices. - * - * Parameters: - * *morphing - the base morphing - * point - point to map in cartesian coordinates - * frame - time coefficient corresponding to the transform state, [0;1] - * - * Returns: - * A cartesian coordinate mapping from the origin to the target matrix of the given point - */ -CartesianMapping morpher_get_point_mapping(Morphing *morphing, CartesianVector point, TimeVector frame); - -/** - * Function: morpher_get_dim - * Returns the dimension of the morphing. - * - * Parameters: - * *morphing - the morphing - * - * Returns: - * the dimension as a vector - */ -CartesianVector morpher_get_dim(Morphing *morphing); - -#endif diff --git a/src/morpher/morpher.c b/src/morpher/morpher.c deleted file mode 100644 index 8bb5427..0000000 --- a/src/morpher/morpher.c +++ /dev/null @@ -1,23 +0,0 @@ -#include "morpher/morpher.h" - -void morpher_init(Morphing *morphing, IntVector width, IntVector height) { - morphing->dim = (CartesianVector) {width, height}; -} - -void morpher_free(Morphing *morphing) { - -} - -void morpher_add_constraint(Morphing *morphing, CartesianVector origin, CartesianVector destination) { - -} - -CartesianMapping morpher_get_point_mapping(Morphing *morphing, CartesianVector point, TimeVector frame) { - // TODO - return (CartesianMapping) {point, - point}; -} - -CartesianVector morpher_get_dim(Morphing *morphing) { - return morphing->dim; -} -- cgit v1.2.3