Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FRE / excelitas pco gmbh / 26.06.2024 / added 48bit RGB #472

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

franz-xaver
Copy link
Contributor

Changed MicroManager.cpp in pco_generic device adapter.

FRE

@marktsuchida
Copy link
Member

@franz-xaver Thanks for the update.

I don't think we have standardized or documented how 16-bit-per-component RGB is supposed to work, and there are existing camera adapters that use an 8-byte (rather than 6-byte) format. Please give me a bit of time to review the situation to make sure that merging this will not produce compatibility problems in the future.

(I do hope that we can safely allow 48-bit RGB, just want to be sure.)

By the way, did you test this using MMStudio or some other way that goes through MMCore? If so, let me know how so that I can make sure to take that usage into consideration.

Also, does the buffer that you pass to InsertImage() contain the pixel components in R-G-B order (as opposed to B-G-R order)?

@franz-xaver
Copy link
Contributor Author

franz-xaver commented Jun 28, 2024

@marktsuchida ...sorry for the last commit.

The title of the commit is not well verbalized. It is more a preparation for future things to come.

A customer asked me to add this image type into MM, but I did without success.

The code is just added but not active, as I could not add a 16bit RGB image:

  {
    pixTypes.push_back(g_PixelType_RGB32bit);
    //pixTypes.push_back(g_PixelType_RGB48bit); // Not possible up to now 07/22
    // Also GetImage does not convert to 48bit rgb, just 32bit rgb
  }

Actually this is untested and RGB is not the order, just a naming. RGB vs. BGR should be added.

@marktsuchida
Copy link
Member

marktsuchida commented Jun 28, 2024

Ah, okay, now I think I see it. So from Micro-Manager's point of view, the camera continues to produce _BGR images (with the components converted to 8 bits each) as the only color image type, correct?

In that case there's no problem, of course, so I'll go ahead and merge.

@marktsuchida marktsuchida merged commit 1ee1bf7 into micro-manager:main Jun 28, 2024
1 check passed
@franz-xaver
Copy link
Contributor Author

Yes, correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants