mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
Fix LineAA in case of 4 channel
Fix bug when enter 4 channel image to LineAA function.
This commit is contained in:
parent
8b33c6fa8f
commit
b23e536894
@ -608,12 +608,12 @@ LineAA( Mat& img, Point pt1, Point pt2, const void* color )
|
|||||||
ICV_PUT_POINT();
|
ICV_PUT_POINT();
|
||||||
ICV_PUT_POINT();
|
ICV_PUT_POINT();
|
||||||
|
|
||||||
tptr += step;
|
tptr += 4;
|
||||||
a = (ep_corr * FilterTable[dist] >> 8) & 0xff;
|
a = (ep_corr * FilterTable[dist] >> 8) & 0xff;
|
||||||
ICV_PUT_POINT();
|
ICV_PUT_POINT();
|
||||||
ICV_PUT_POINT();
|
ICV_PUT_POINT();
|
||||||
|
|
||||||
tptr += step;
|
tptr += 4;
|
||||||
a = (ep_corr * FilterTable[63 - dist] >> 8) & 0xff;
|
a = (ep_corr * FilterTable[63 - dist] >> 8) & 0xff;
|
||||||
ICV_PUT_POINT();
|
ICV_PUT_POINT();
|
||||||
ICV_PUT_POINT();
|
ICV_PUT_POINT();
|
||||||
|
Loading…
Reference in New Issue
Block a user