Hi,
i have a class CVImage
and its subclass CVImageLabelator,
I want to instantiate a CVImageLabelator from a CVImage but I am getting errors and I think is because this new instance is not well initialized.
So, what is the correct way to implement a copy constructor that takes as argument a super class object.
I have this:
Where Set() is a method where I initialize private members that are needed to call CVImageLabelator public methods.Code:CVImageLabelator(CVImage image):CVImage(image) { Set(image.GetW(), image.GetH(), image.GetDepth(), image.GetChannel()); };



LinkBack URL
About LinkBacks



