Page 1 of 2

Player One Uranus-C 3x3 and 4x4 binning issues

Posted: Tue Feb 14, 2023 7:10 pm
by PeterC65
I've been using binning recently with the Player One Uranus-C and noticed a few things that seem odd.

1x1 and 2x2 binning work fine, but when I select 3x3 or 4x4 binning SharpCap shows the ROI Selection control with the Pan and Tilt settings. The ROI is set to the full frame size and selecting Sum or Average binning and software or hardware binning makes no difference.

I can just ignore the ROI Selection control, but it feels like a bug, and there are some other strange things with 3x3 binning.

If I select Sum Binning Mode and disable Hardware Binning (so using software binning) then capture 15s exposure x400 gain frames with the camera cap fitted, with 1x1 binning I can see about 40 hot pixels on a 4K monitor (1:1 with the camera sensor), with 2x2 binning I can see about 90 hot pixels some of which are larger than with 1x1 binning. In both cases the hot pixels are almost completely removed when I select Subtract Dark Hot Pixel Removal Only with a setting of 2.

With 3x3 binning however, I'm seeing more like 3000 hot pixels (way too many to count), many bigger again. They are reduced in size and number when I select Subtract Dark Hot Pixel Removal Only with a setting of 10, but there are still hundreds.

I understand that hot pixels can become more prominent with binning, but the jump from 2x2 to 3x3 binning is huge, so much so that 3x3 binning is unusable in practice when observing the night sky.

With 4x4 binning I'm back to seeing about 150 hot pixels, so back to numbers that can be counted and much better than with 3x3 binning. I can use 4x4 binning in practice and when I select Subtract Dark Hot Pixel Removal Only with a setting of 10 they are mostly gone.

The jump in hot pixels at 3x3 binning seems very odd. I get the same thing with Hardware Binning enabled, few hot pixels at 1x1 and 2x2, some at 4x4 and masses at 3x3. The numbers are all less than with software binning.

Could this be a camera issue?

Peter

Re: Player One Uranus-C 3x3 and 4x4 binning issues

Posted: Wed Feb 15, 2023 2:23 pm
by admin
Hi Peter,

I don't think it is likely to be a camera issue - binning on CMOS cameras is all done in software (even for 'hardware binning' - that's just software running on the camera rather than the PC, which means the binning is done before the data needs to be sent down the USB cable, which allows higher frame rates).

You say that the sum/average binning control seems to make no difference, but do you know which it is using? If the image gets brighter when you turn on binning (ie go from 1x1 to 2x2), then sum binning is being used and that might help explain your hot pixel counts. For instance, at 3x3 binning, you are adding 9 pixel values together, so if there are a couple of 'warm' pixels in there as well as the rest at a background level, that can add up to quite a significant value. Of course, it's also possible that there could be a bug in whatever code does the binning calculation that could lead to this issue.

Finally, the ROI issue is almost certainly down to the sums not quite adding up right in the higher binning mode. SharpCap shows the ROI box and allows you to drag it around if the following conditions are met

* The width of the ROI area plus the range of the pan control adds up to the total (non ROI) width of the sensor
* Same for the height and the range of the tilt control

There is a small allowance for discrepency in the 'must add up to the total width' bit, but if the calculation is significantly different, SharpCap falls back to showing the separate pan/tilt controls instead, on the grounds that it's not possible to be sure that the ROI will work in the way that the draggable box indicates.

I've just tested with my P1 Mars-C, and the ROI box seems to work fine in all binning modes, but that camera doesn't have the hardware binning option, so maybe that is a significant difference, or just the way that the resolutions work out on your model is different.

I'm happy to dig into this, but would need you to produce a detailed log of the camera in 3x3 or 4x4 mode so that I could see what was going on. The best way to do this would be as follows

* Set up the camera with the correct binning, set an exposure of say 1s, since we don't want the log full of 'captured frame' messages
* Save the settings as a capture profile, and set it as 'default' for the camera using the manage profiles window. This means it will load each time you open the camera
* Close SharpCap, reopen and turn on the additional logging option for 'Camera hardware communication' in the logging page of the settings
* Open the camera, which should go straight into 3x3 mode.
* Let it capture 2 or 3 frames, then close it again

Even with the precaution of setting a low frame rate, the log may be larger than usual, but if you can do that and send the log to me, I will (hopefully) be able to work out what is going on.

cheers,

Robin

Re: Player One Uranus-C 3x3 and 4x4 binning issues

Posted: Wed Feb 15, 2023 3:35 pm
by PeterC65
Hi Robin,

Thanks for getting back to me.

I was using Sum binning for the tests. With Average binning the effect is much harder to see as the hot pixels are much less bright, but it is still there. Far more hot pixels with 3x3 binning than with 4x4 binning. It is this huge reduction in hot pixels when I go from 3x3 to 4x4 binning that concerns me.

I collected some sample images after posting yesterday and these really demonstrate the issue. They are bigger than the 1MB attachment limit. Is there some other way I can send them to you?

They show the hot pixel count increasing as binning increases (as expected), but with 3x3 being stand out higher. The background also gets brighter as binning increases (also as expected), but with 3x3 the background is noticeably brighter, much brighter than with 4x4.

I don't completely follow your comment about the ROI. I assumed that the ROI Selection control would only be enabled if the Capture Area selected was less than the maximum possible for the camera. With 3x3 binning the Pan and Tilt controls are fixed at zero (the Pan up arrow is enabled but does nothing). With 4x4 binning the Pan control does nothing but it is possible to change the Tilt control to one from zero.

I would like you to investigate this further.

I've attached log files obtained as you explained for the 1x1 and 3x3 binning cases.
[attachment=1]Log_2023-02-15T15_29_51-22976_1x1binning.log[/attachment]
[attachment=0]Log_2023-02-15T15_30_28-16800_3x3binning.log[/attachment]

Please let me know what you find.

Peter

Re: Player One Uranus-C 3x3 and 4x4 binning issues

Posted: Wed Feb 15, 2023 10:37 pm
by admin
Hi Peter,

rats.... it looks like the detailed logging for Player One cameras does not work properly as there was nothing of interest in those logs (well, there were details of things like scanning for ZWO cameras, but nothing useful to us). I can see what the problem is and will fix it for next week's SharpCap 4.1 beta update, so we can test again then. Sorry about that.

cheers,

Robin

Re: Player One Uranus-C 3x3 and 4x4 binning issues

Posted: Wed Feb 15, 2023 10:43 pm
by PeterC65
Hi Robin,

OK. Let me know when the 4.1 beta update is available and I'll download it and repeat the test.

Can I send you the captured frames? They may help.

Peter

Re: Player One Uranus-C 3x3 and 4x4 binning issues

Posted: Thu Feb 16, 2023 2:16 pm
by admin
Hi Peter,

the frames might help from the hot pixel point of view - if you have a set in all the different binning levels with the same settings otherwise it would be best. Usually I suggest that people upload larger files to dropbox/google drive/onedrive/etc and then include a sharing link here in the forums so I can download them.

cheers,

Robin

Re: Player One Uranus-C 3x3 and 4x4 binning issues

Posted: Thu Feb 16, 2023 4:04 pm
by PeterC65
Hi Robin,

Here is a link to the test frames in Google Drive: https://drive.google.com/drive/folders/ ... sp=sharing

There are four frames, each extracted to PNG files using PIPP from short SER capture files. All are 15s exposure x400 gain using sum binning, but with different binning settings. I've also included the camera settings files for each capture. If you open the four PNG files you will immediately see the the 3x3 image looks wrong.

Peter

Re: Player One Uranus-C 3x3 and 4x4 binning issues

Posted: Fri Feb 17, 2023 3:52 pm
by admin
Hi Peter,

oddly, when I look at them, for sum binning, the 3x3 one is the only one that is about right...

For true sum binning, the brightness should increase in proportion to the number of pixels being binned, so

1x1 : 1
2x2 : 4
3x3 : 9
4x4 : 16

The 3x3 image is about 10 times brighter than the 1x1, so not far off. The 2x2 is about the same brightness as the 1x1 and the 4x4 is about 4 times brighter (not 16). It's almost as though there is something going on beyond sum binning that isn't really what we expect.

It's probably worth bouncing this question over the PlayerOne, since I have no real control over how the binning is implemented beyond requesting the NxN value and sum/average.

cheers,

Robin

Re: Player One Uranus-C 3x3 and 4x4 binning issues

Posted: Fri Feb 17, 2023 5:36 pm
by PeterC65
Hi Robin,

Thanks for taking a look at the frames I sent.

I agree with your assessment with regards to the background brightness. I've repeated the test using software binning and the brightness increases each time (1x1 < 2x2 < 3x3 < 4x4) as you mention. The brightness of the 3x3 frame is the same with hardware or software binning and it is the 2x2 and 4x4 frames that are different (darker when hardware binning is selected).

The problem of excessive hot pixels when 3x3 binning is still present with software binning however. There are still many more hot pixels with 3x3 binning than with 4x4 binning and as I understand it, the number of hot pixels should also increase geometrically in line with the binning (1, 4, 9, 16).

I'm not planning to use hardware binning in practice so it is the excessive hot pixels that is the main problem.

I've put the test frames for software binning onto Google Drive too, here: https://drive.google.com/drive/folders/ ... sp=sharing

The hardware binning test frames are now here: https://drive.google.com/drive/folders/ ... sp=sharing

If you still think the excessive hot pixels issue is a camera issue then I'll contact Player One about it. I just wanted to rule out SharpCap as a possible cause first.

Thanks for your continued help with this.

Peter

Re: Player One Uranus-C 3x3 and 4x4 binning issues

Posted: Sat Feb 18, 2023 2:10 pm
by admin
Hi Peter,

I agree with you that the brightness levels on the software binning images looks consistent with expectations (at least in terms of the average background brightness). There is something odd about the 3x3 binning image though, as there are more hot pixels in that than in the 4x4 image.

I am 99% sure that this will be a software issue in the Player1 camera support code. Remember that in software binning mode, the readout from the camera to the computer is unbinned (and we know that works fine from the 1x1 image being OK).

You could raise the issue with Player One if you want to ask them to explain, or alternatively just avoid 3x3 binning anyway. With CMOS cameras, the only advantage to the software binning is creating smaller output files (the hardware binning at least gets you a higher frame rate too). In neither case will it improve the data as it can for a CCD camera (and if you want, you could reduce the size of the final, processed image by a factor of 2 or 3 or 4).

cheers,

Robin