Fix motion tracking not tracking at all
A mistake in the recent ImBuf API refactor: the Libmv image accessor was copying destination to destination (possibly using the wrong number of channels as well). Pull Request: https://projects.blender.org/blender/blender/pulls/108070
This commit is contained in:
committed by
Sergey Sharybin
parent
9af19822f0
commit
9e5e06136a
@@ -630,7 +630,7 @@ static ImBuf *make_grayscale_ibuf_copy(ImBuf *ibuf)
|
||||
IMB_assign_float_buffer(grayscale, rect_float, IB_TAKE_OWNERSHIP);
|
||||
|
||||
for (int i = 0; i < grayscale->x * grayscale->y; i++) {
|
||||
const float *pixel = rect_float + ibuf->channels * i;
|
||||
const float *pixel = ibuf->float_buffer.data + ibuf->channels * i;
|
||||
|
||||
rect_float[i] = 0.2126f * pixel[0] + 0.7152f * pixel[1] + 0.0722f * pixel[2];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user