mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
avoid Ptr<> == NULL checks
This commit is contained in:
@@ -500,7 +500,7 @@ int main(int argc, char *argv[])
|
||||
vector<vector <Point> > region;
|
||||
Mat desc;
|
||||
|
||||
if (b.dynamicCast<MSER>() != NULL)
|
||||
if (b.dynamicCast<MSER>().get())
|
||||
{
|
||||
Ptr<MSER> sbd = b.dynamicCast<MSER>();
|
||||
sbd->detectRegions(img, region, zone);
|
||||
|
||||
Reference in New Issue
Block a user