-
Notifications
You must be signed in to change notification settings - Fork 69
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
support caQtDM caCamera widget with a .ui screen #294
Comments
Here is an example of such a screen using the sim detector from AD 2.5 and caQtDM 4.1.6 (from the master branch): monochromatic, 8 bits/pixel, 2000x1500 image binned by 50 in both x&y (which is why the image looks chunky) The pop-up shows the connected PVs. Important configuration parameters are shown here: |
This is helpful since it relieves the need to install a separate image visualization tool such as ImageJ if one just wants to watch the images. |
That's nice. Does it support color? |
see: https://github.com/caqtdm/caqtdm/blob/Development/caQtDM_QtControls/src/cacamera.cpp#L1179 I believe that is what the channelCode is used for but @timmmooney tells me that this must be a PV that provides the value of "1". If we use the For now, it works with Selecting
It may be possible update this with the caCalc widget making the conversion from what the ColorMode PV provides and what the channelCode property expects. That would enable RGB support. |
Here is where the channelCode property ( Is there a different areaDetector PV that can be used to show color? (attn: @HelgeBrands, @AntonMezger) |
The code assumes that m_code is 1 for mono, and 3 for rgb. In mono mode m_bpp (bytes per pixel) is 1 for 8bit, 2 for 16-bit, 3 for 12-bit in 16-bit data. If m_code is 3 then it only supports m_bpp=3, i.e. 8-bit data. Your screen maps both m_code and m_bpp to DataType_RBV. This does not seem correct. The DataType_RBV comes from this enumeration:
The ColorMode_RBV PV uses this enumeration:
I don't see how this is working at all assuming m_code comes from channelCode and m_bpp comes from channelBPP in your camera property screen. This is because 8-bit data would have m_code=m_bpp=DataType_RBV=0 which is not handled in either of the switch statements. I'm confused. |
Sorry, I missed your previous comment explaining that it worked with UInt8 and not Int8. That makes sense. It doesn't seem like this widget was really designed for areaDetector, but with some fiddling it could work. |
I agree. For now, it works with Mono, Uint8. That covers a lot of use at our beam lines. |
The plan for the camera widget is to support some color modes, but yet only the RGB Mode ((m_code == 3) && (m_bpp == 3)) is implemented but not fully tested (too less color cams).
Best regards
Helge
Von: Pete R Jemian [mailto:[email protected]]
Gesendet: Freitag, 10. November 2017 01:49
An: areaDetector/ADCore
Cc: Brands Helge (PSI); Mention
Betreff: Re: [areaDetector/ADCore] support caQtDM caCamera widget with a .ui screen (#294)
I agree. For now, it works with Mono, Uint8. That covers a lot of use at our beam lines.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#294 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMXb5-WzmJO_QypJoIa0K8KpqxF1mSgXks5s051hgaJpZM4QYx26>.
|
It should be straight forward to implement new routines into the cacamera widget to support the other cameras. We did not do this, while we do not have the hardware to test them. However feel free to submit us with these routines and we would implement them in new releases. |
You can test all data types and color modes with the ADSimDetector, you don't need any hardware. |
Dear Mark,
I have installed a softioc with the ADSim module in order to look into this beginning of next year.
Best regards, merry Christmas and a happy new year
Anton
From: Mark Rivers [mailto:[email protected]]
Sent: Mittwoch, 20. Dezember 2017 13:11
To: areaDetector/ADCore
Cc: Mezger Anton Christian (PSI); Mention
Subject: Re: [areaDetector/ADCore] support caQtDM caCamera widget with a .ui screen (#294)
You can test all data types and color modes with the ADSimDetector, you don't need any hardware.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#294 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMZUKN0IQt26CV2sX0qUU6lh8k2oiTEeks5tCPldgaJpZM4QYx26>.
|
Hi Anton,
Great, thanks very much.
Merry Christmas to you as well.
Mark
…________________________________
From: Anton Mezger <[email protected]>
Sent: Friday, December 22, 2017 3:53 AM
To: areaDetector/ADCore
Cc: Mark Rivers; State change
Subject: Re: [areaDetector/ADCore] support caQtDM caCamera widget with a .ui screen (#294)
Dear Mark,
I have installed a softioc with the ADSim module in order to look into this beginning of next year.
Best regards, merry Christmas and a happy new year
Anton
From: Mark Rivers [mailto:[email protected]]
Sent: Mittwoch, 20. Dezember 2017 13:11
To: areaDetector/ADCore
Cc: Mezger Anton Christian (PSI); Mention
Subject: Re: [areaDetector/ADCore] support caQtDM caCamera widget with a .ui screen (#294)
You can test all data types and color modes with the ADSimDetector, you don't need any hardware.
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#294 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMZUKN0IQt26CV2sX0qUU6lh8k2oiTEeks5tCPldgaJpZM4QYx26>.
-
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<#294 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AF1QzjYeOmoxFTy_rzXL8vhXf_PBmW1Aks5tC3wVgaJpZM4QYx26>.
|
@AntonMezger, has there been any progress on supporting more image modes in the caCamera widget? |
Hi,
All modes of areadetector and even more are now implemented. Take a look tests.ui
Best regards
Anton
Envoyé de mon iPhone
… Le 29 oct. 2018 à 15:56, Kevin Peterson ***@***.***> a écrit :
@AntonMezger, has there been any progress on supporting more image modes in the caCamera widget?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
caQtDM has a widget that will visualize the image from AreaDetector. It is useful to provide a .ui screen for caQtDM that has good default values specified for the necessary PVs.
The text was updated successfully, but these errors were encountered: