plastimatch
Loading...
Searching...
No Matches
rasterize_slice.cxx File Reference
#include "plm_config.h"
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "itk_point.h"
#include "plm_image_header.h"
#include "rasterize_slice.h"

Typedefs

typedef struct edge Edge
 

Functions

void remove_old_edges (Edge **head, int y)
 
void insert_ordered_by_x (Edge **head, Edge *c)
 
void print_edges (Edge *p)
 
bool point_in_polygon (const float *x_in, const float *y_in, int num_vertices, float x_test, float y_test)
 
void rasterize_slice (unsigned char *acc_img, Plm_image_header *pih, size_t num_vertices, const float *x_in, const float *y_in, const float *z_in)
 

Typedef Documentation

◆ Edge

typedef struct edge Edge

Function Documentation

◆ insert_ordered_by_x()

void insert_ordered_by_x ( Edge ** head,
Edge * c )

◆ point_in_polygon()

bool point_in_polygon ( const float * x_in,
const float * y_in,
int num_vertices,
float x_test,
float y_test )

◆ print_edges()

void print_edges ( Edge * p)

◆ rasterize_slice()

void rasterize_slice ( unsigned char * acc_img,
Plm_image_header * pih,
size_t num_vertices,
const float * x_in,
const float * y_in,
const float * z_in )

◆ remove_old_edges()

void remove_old_edges ( Edge ** head,
int y )