How can I access CvFileStorage* from FileStorage so that I can still use cvWriteComments from opecv4.1?

Detailed description

It seems like the operator * API has been removed from FileStorage. How can I use cvWriteComments with FileStorage?
It works in OpenCV3.4.1.
Now it shows error illegal indirection and “cvWriteComment” identifier not found

Steps to reproduce
FileStorage outFile(outfilepath, FileStorage::WRITE);
cvWriteComment(*outFile, "Vertices data of the Triangulation", 0);

the old c-api is dead and gone.

have a look at the docs, FileStorage has a writeComments() method

2 Likes

cv::FileStorage have method writeComment.

1 Like

Thanks. I found it but not able to pull back my question yesterday cuz it was under review haha