Initialising an unweaver

void unweaverSetRowRGB24(SEAM_UNWEAVER *pic, int row, unsigned char *pixels);
void unweaverSetRowRGB32(SEAM_UNWEAVER *pic, int row, unsigned char *pixels);

Initialises one row of an unweaver's image data. The unweaverSetRowRGB24 function accepts byte aligned RGB triplets. The unweaverSetRowRGB32 function accepts 32 bit words containing RGB bytes in the least significant bits, and ignores the high byte of each word. You should feed the entire input image into the unweaver immediately after creating it and before you compute the energy.

pic
Pointer to the unweaver.
row
the zero-based row number to set.
pixels
pointer to the pixel data (aligned as described above) for the row.



Hayden Walles 2015-09-02
SourceForge.net Logo