#include "../include/ImageLoader.h" #include "../include/ImageOperations.h"int main() { ImageLoader im1(100,100); im1.displayImage(); return 0; }
|
אני מקבל:
definitely lost: 38,833 bytes in 1,023 blocks
==3502== indirectly lost: 54,159 bytes in 964 blocks
==3502== possibly lost: 411,591 bytes in 4,720 blocks
==3502== still reachable: 514,041 bytes in 4,514 blocks
==3502== suppressed: 0 bytes in 0 blocksואז ניסתי ע"י imshow ישירות(חשבתי אולי הבעיה בdisplayImage):
#include "../include/ImageLoader.h" #include "../include/ImageOperations.h"int main() { ImageLoader im1(100,100); cvNamedWindow("CS", CV_WINDOW_AUTOSIZE); imshow("CS",im1.getImage()); cvDestroyAllWindows(); return 0; }
|
מקבל:
definitely lost: 38,833 bytes in 1,023 blocks
==3423== indirectly lost: 54,159 bytes in 964 blocks
==3423== possibly lost: 402,933 bytes in 4,666 blocks
==3423== still reachable: 482,716 bytes in 4,347 blocks
==3423== suppressed: 0 bytes in 0 blocks
אז חשבתי אולי הבעיה היא כללית יותר, במחלקה שלי ImageLoader ו-ImageOperations, אז ניסיתי בלעדיהם הרצתי עם הקוד הבא:
#include "cv.h" #include "highgui.h" int main() { IplImage* img2=0; img2=cvCreateImage(cvSize(640,480),IPL_DEPTH_32F,3); cvNamedWindow("MyWindow", CV_WINDOW_AUTOSIZE); cvReleaseImage(&img2); cvDestroyWindow("MyWindow"); return 0; }
|
מקבל:
definitely lost: 38,833 bytes in 1,023 blocks
==3356== indirectly lost: 54,159 bytes in 964 blocks
==3356== possibly lost: 400,937 bytes in 4,657 blocks
==3356== still reachable: 484,712 bytes in 4,356 blocks
==3356== suppressed: 0 bytes in 0 blocks
מה אתם אומרים?