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.

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

Hayden Walles 2015-09-02 Logo