Dear Daniel,
Thank you so much for your kind concern and valuable information.
As you suggested, I tried the old software for the Bayer filter transformation.
However, I could not use it to process images from miniscopeV4.
Therefore, I used the new one by adding the old source code for the transformation part.
QT-Software)
I explained the details of how I added the code at the end of the email.
Next, I tested this modified code for images from MiniscopeV4 (with the original monochrome sensor). By doing so, I expected that the pseudo-color on the monochrome image. Attached are the resulted images from the original and the modified codes. It seems that black lines (enlarged in the figures) show some trace of colorization.
Would you please let me know what you think whether it is working or not? Alternatively, would it be possible to send some original images from the color CMOS so that I could test them using the modified code, please? I am asking you this because it seems to cost more than 10K$ to test-order PCB for the color CMOS sensor via OpenEphys, so I would like to be sure before ordering.
Thank you so much again for your great help!
I am looking forward to hearing from you.
Details of the code modification:
The test code changes lines 247 to 253 of "videostreamocv.cpp".
The test code I added
if (m_isColor) {
QString str2 = "miniscopeDeviceName";
if (m_deviceName.compare(str2, Qt::CaseInsensitive) == 0) {
if (true) {
cv::cvtColor(frame, frame, cv::COLOR_BGR2GRAY);
cv::cvtColor(frame, frame, cv::COLOR_BayerRG2BGR);
}else {
//
}
frame.copyTo(frameBuffer[idx%frameBufferSize]);
}else {
frame.copyTo(frameBuffer[idx%frameBufferSize]);
}
}else {
// frame = cv::repeat(frame,4,4);
cv::cvtColor(frame, frameBuffer[idx%frameBufferSize], cv::COLOR_BGR2GRAY);
}