Initialising an unpicker

void unpickerSetRowRGB24(SEAM_UNPICKER *pic, int row, unsigned char *pixels);
void unpickerSetRowRGB32(SEAM_UNPICKER *pic, int row, unsigned char *pixels);

Initialises one row of an unpicker's image data. The unpickerSetRowRGB24 function accepts byte aligned RGB triplets. The unpickerSetRowRGB32 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 unpicker immediately after creating it and before you compute the energy.

pic
Pointer to the unpicker.
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