27 #include "giextraction.h"
49 giraffe_extraction_new(
void)
52 GiExtraction*
self = cx_malloc(
sizeof *
self);
57 self->centroid = NULL;
83 giraffe_extraction_create(GiImage* spectra, GiImage* error, GiImage* npixels,
84 GiImage* centroid, GiImage* model)
87 GiExtraction*
self = giraffe_extraction_new();
90 if (spectra != NULL) {
91 self->spectra = spectra;
98 if (npixels != NULL) {
99 self->npixels = npixels;
102 if (centroid != NULL) {
103 self->centroid = centroid;
132 giraffe_extraction_delete(GiExtraction* extraction)
135 if (extraction != NULL) {
158 giraffe_extraction_destroy(GiExtraction* extraction)
161 if (extraction != NULL) {
163 if (extraction->spectra != NULL) {
165 extraction->spectra = NULL;
168 if (extraction->error != NULL) {
170 extraction->error = NULL;
173 if (extraction->npixels != NULL) {
175 extraction->npixels = NULL;
178 if (extraction->centroid != NULL) {
180 extraction->centroid = NULL;
183 if (extraction->model != NULL) {
185 extraction->model = NULL;
void giraffe_image_delete(GiImage *self)
Destroys an image.