Custom filters for subs?

Somewhere to ask questions about the best way to use SharpCap
Forum rules


If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
Post Reply
andriy_melnykov
Posts: 9
Joined: Fri Feb 10, 2023 10:31 pm

Custom filters for subs?

#1

Post by andriy_melnykov »

Hi!
Is there a way to implement custom user filters for each sub in the SharpCap during live stacking?
With some sort of API etc.?

I can maybe do it in a tricky way:
1. saving subs from a camera in some SW
2. read and filter subs in my SW, then putting them in a folder, monitored in SharpCap
3. let SharpCap do livestacking from the monitored folder

But it is of course not very convenient.

Thanks!
User avatar
admin
Site Admin
Posts: 13420
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Custom filters for subs?

#2

Post by admin »

Hi,

you could probably arrange for the filter changes to happen using either SharpCap's python scripting or the sequencing tool, but the live stacking code has no way of directing a particular frame to only go to one colour channel, so I don't think it really gets you very far.

Perhaps you could use the sequencer to schedule a longer session with each filter (20 frames with red, 20 frames with blue, etc), saving each individual live stack before moving to the next filter, then combine those files in some other software to make a colour image?

cheers,

Robin
andriy_melnykov
Posts: 9
Joined: Fri Feb 10, 2023 10:31 pm

Re: Custom filters for subs?

#3

Post by andriy_melnykov »

Sorry, my formulation of the question was unprecise.
Under custom filter I mean SW filter to process each sub before livestacking, for example noise reduction.
Background is again my study of scintific articles regarding sCMOS sensors.
There are some interesting approaches based on noise statistics of sensor pixels.
I would really like to implement some processing before livestacking.
Thanks.
User avatar
admin
Site Admin
Posts: 13420
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Custom filters for subs?

#4

Post by admin »

Ah, OK, I understand now.

You have one option to intercept the frame and perform processing on the data before stacking. That is to use the FrameCaptured event on the camera object via the Python scripting. There is some discussion of this technique here : viewtopic.php?t=1141

Note that this event delivers the raw frame data straight off of the camera - you can modify the data if you like, but the normal SharpCap processing (dark/flat correction, background removal, etc) will happen after the event returns.

cheers,

Robin
Post Reply