#includeMatrixWorkspace_sptr workspace = MatrixWorkspace_sptr(new MatrixWorkspace(100, 100));
#includeIn this example, the second MatrixWorkspace object is created by copying the first one using MatrixWorkspace_sptr. The smart pointer ensures that both objects are correctly managed and cleaned up when they are no longer needed. Package/Library: OpenCV MatrixWorkspace_sptr is a part of the OpenCV library which is a cross-platform computer vision and machine learning software library. It provides many common algorithms and tools for image and video processing in real-time.MatrixWorkspace_sptr workspace1 = MatrixWorkspace_sptr(new MatrixWorkspace(100, 100)); MatrixWorkspace_sptr workspace2 = workspace1;