I have two projects in my solution: 1. Project1, containing camera code which captures image frames 2. Project2, which takes input image and does processing on it. I would like to share/provide the image generated in project1 to the project2. I am trying to use Project references to share data between projects.
I created a class(with namespace) containing the required data members(to be shared) and member functions(populating the data members) in Project1. I am not able to use this class in Project2 despite adding Project Reference in Project2.
Project1:
namespace TheImagingSource
{
class Images {
public:
UINT8 input_image1[IMAGE_SIZE];
UINT8 input_image2[IMAGE_SIZE];
void upload_image(Mat);
} TIS;
void Images::upload_image(Mat m)
{
memcpy(input_image1, m.data, IMAGE_SIZE);
memcpy(input_image2, m.data, IMAGE_SIZE);
}
}
The 'using Project1' statement in Project2 gives error: identifier 'Project1' is undefined.