Fixing the old C-style API in C++ samples as mentioned in feature 1631
small fix
Try new fix
Update linemod.cpp

Due to removing an IplImage constructor, a temp Mat needed to be created for the filterPlane function.
Update linemod.cpp

Wrong declaration of Mat element in function
Update linemod.cpp

Cheating to get it fixed :)
Hopefully fixed linemod.cpp now