Histogram Features

Got an idea for something that SharpCap should do? Share it here.
Forum rules
'+1' posts are welcome in this area of the forums to indicate your support for a particular feature suggestion. Suggestions that get the most +1's will be seriously considered for inclusion in future versions of SharpCap.
CityObserver
Posts: 13
Joined: Sat Jun 03, 2017 11:33 am

Histogram Features

#1

Post by CityObserver »

Hi Robin,

First -- thanks for the fantastic updates on 3.1. There's loads of new features I'd never even thought of that are amazingly useful.

I also really like the new histogram setup in the latest 3.1 beta. It gives you a lot more general control.

However...

There are a few things that would be really great... I don't know how easy or difficult these would be.

--I'd love to be able to zoom into the histogram, to provide more fine controls over the level lines.

When I was working with it last night, I ended up needing to tweak the Black level and the Mid level lines so close to each other that the slightest movement made a huge difference and it was very difficult to control.

If there was a zoom in/out button that would be super useful, I would imagine if you zoomed in then a standard window slider bar would need to appear so you could scroll along the histogram.

In addition to the zoom in/out there could also be a click to section button -- where the histogram display zooms into the area between the Black and the White level lines. So that the level lines are at the at the edges of the histogram display.

Alternately, perhaps a just fine tune slider as you have had in previous versions, so a long drag of the mouse only moves the level line a little bit.

Would this be an easy tweak?


-- I'd love to have curves control on the Live Stacking image.


I've just started with an OSC camera when previously I'd been mono. Something I would love is to have curve control over all the levels as in photoshop (for instance: http://www.cambridgeincolour.com/tutori ... curves.htm).

Previously I'd in a feature suggestion post I suggested a multi-special UI layout with mockup. You could use almost exactly the same layout for this.

At the moment, I'm taking a screenshot on my iPad and doing a quick colour grade in Lightroom to seek out some more details, then switching back to SharpCap. Lightroom on iOS has curve control so you can tweak things to see things otherwise hidden -- even just from the screenshot you can make detail easier to see, so I would imagine with proper access to the data you could actually discover more detail hidden in there.


-- Something very minor, and probably only effects me... slightly larger target zones on some lines, for people who use touch

I know this is probably a niche request... but it would help all those who use SharpCap on a touch PC, Surface Pro or on iPad.

I use RDP to access a compute stick from an iPad, essentially turning my iPad into a Surface Pro. This means that a lot of the time I'm using my fingers to move sliders and windows. I use the Pencil, and the precision makes things much like mouse control, however, frequently it's packed and using fingers can become frustrating. In particular...

Resizing the right hand panel where the camera controls and other panels are docked is very tricky. Using using your finger sometimes takes six or seven attempts before you grab the edge to resize. It can occasionally even be fiddly with the Pencil.

If there was a few more pixels of width to activate the edge bar so you can grab, drag, and change the width of the panel things would be massively easier to control.

This became clear to me when I was using the new histogram, because I discovered after a while that the lines are not click-and-dragable on touch -- but the text is. It is a little fiddly with fingers, but it does work -- and it's is fine with the pencil.


Thanks again for the great features update on 3.1. In particular, the plate solving is amazingly useful, and has relegated my xbox gamepad mount control to very occasional use (and the sensor analysis stuff is great too).
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Histogram Features

#2

Post by admin »

So, quick question first so that I can get my bearings... Are you talking about the new black/mid/white level lines in the live stacking or the display control sliders for the levels in the right hand panel?

If it's the latter then they have been replaced already with a mini-histogram with lines on it like the live stack histogram and that will be in the next build. I have also updated the live stack histogram to look more like the normal histogram (and to have separate LRGB lines if you are imaging in colour).

Further improvements I'm planning (which should be in for 3.1) include

* Colour adjustment in Live stack, although probably just simple sliders for the R and B multipliers I'm afraid, nothing near as good looking as your mockup :(

I also have considered that there might be a need for finer adjustments but haven't had time to implement anything yet. Zoom is not impossible, but awkward to keep all the different parts in sync, so more likely will be some 'fine adjust' buttons that appear when you hover over the lines I will also see what can be done about the width of the drag handles, although making them too wide makes it harder to adjust when the levels are close to each other.

cheers,

Robin
CityObserver
Posts: 13
Joined: Sat Jun 03, 2017 11:33 am

Re: Histogram Features

#3

Post by CityObserver »

I’m mainly talking about the black/mid/white level lines on the new histogram. Though I do like the sound of the new addition!

Fine tuning the lines in the Live Stack main histogram I found quite tricky — not really related to using touch though I’m sure it made it marginally harder. I was imaging Orion and to get the most detail and a fractional move on the black line had a huge impact on the image because the black and mid lines were so close. Additional “fine tune” sliders like there was before for black would indeed probably solve this.

If colour adjustment curves are not easy, is a master RGB curve possible? When I’m trying to reveal structure with the curve I’m trying to hold the highlights from blowing out, while revealing more in the blacks, then cutting thought glow or putting more black in the darker shadows, stretching the histogram is sometimes not enough. Or is this something I can already do in the software using another method than I’m not aware of?

In terms of the drag handles, the new histogram is actually okay to drag because the text is a good target, though a little more is always welcome. The frustrating one on touch is the right hand panel resizing, not the controls themselves.

Just to note that in the right hand panel, when using touch the drag sliders don’t work. For whatever reason you can’t grab the slider, you have to click on the bar itself and move in increments. This may be to do with the size of the activation area on the button.

This isn’t something I’d mention as a particular issue this since it doesn’t effect functionality or practical use, but that’s how it seems to run. The main Live Stack histogram lines slide quite nicely if you grab he black/mid/white text labels.

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

Re: Histogram Features

#4

Post by admin »

Try the very latest build when you have a chance (new one last night). I have added

* R/G/B sliders to the right of the histogram to adjust the relative colour balance of the three channels in the display and when saved 'as seen'
* Finer adjustment of the level positions if you hold down shift while dragging them

Hope this moves in the right direction.

cheers,

Robin
CityObserver
Posts: 13
Joined: Sat Jun 03, 2017 11:33 am

Re: Histogram Features

#5

Post by CityObserver »

That's fantastic. I will check that out this evening. Alas, I think the clouds will prevent me from using it on the sky though.

Thanks again -- I really appreciate the work that goes into the software -- the good user experience in SharpCap -- especially with live stacking has totally changed the astronomy experience for me, allowing me to explore stuff I never thought I'd be able to see.
CityObserver
Posts: 13
Joined: Sat Jun 03, 2017 11:33 am

Re: Histogram Features

#6

Post by CityObserver »

I think the new colour sliders are very good addition.

The additional colour information in the histogram panel looks good too and I like the auto adjustment for a quick solution to get started. For what I was trying to do, this does 85% — it’s definitely in the right direction.

A few thoughts:

— Touch

I realised when I loaded it up that using touch, I couldn’t hold down shift since I only have a virtual keyboard. Maybe I can find a workaround to this. I will test again tonight.


— Colour bar adjustments

I did find that most of the colour adjustments that you make are going to be on all a the lower area of the bar. I would expect that it will be very rare when you slide one colour multiplier all the way to the top while keeping the others lower down.

So, in terms of UI, there is a large section of the bars (toward the top) that is not likely to be used, and most of the adjustments are in the lower end of the scale, tweaking small amounts.

I’m not sure what the best solution is. Possibly a scale the same as the exposure slider in the panel that has two levels of view? Maybe a logarithmic scale? Perhaps the holding shift to change sensitivity will help when I figure out how to do that.


— Specificity and repeatability of colour balance

It would also be very good to be able to put a number to the colour balance. That way it is repeatable to go and set a specific r,g,b balance.

Another thought is that it would be good to be able to reset the display balance without resetting the histogram too.


— Performance

I got home from work late last night, so I only had a chance to test the build using the simulation, rater than a real camera. However, my core M3 powered Compute Stick was struggling a little. Dragging the histogram level lines now only refreshes once every 0.5 of a second or so which is notably slower than in the previous build where it was smooth. This adds to the difficult of precise control. What is causing this I don’t know.

While I like the visual information from interest, I don’t think the colour histogram would be key to the workflow of eeking out detail since I’m usually just watching the image.

If rendering the extra information in the histogram is expensive, it would be good to have the option to turn it off. I suspect people with an Atom based PCs such as the Compute Stick are going to struggle.

However -- as I said, this was only using the simulator, so it may be different when a real camera is plugged in.
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Histogram Features

#7

Post by admin »

Thanks for the feedback - I had thought I had added the code to show the slider values while they were being moved which would make repeatable adjustment easier, but looks like I forgot :(

There is a difference in behaviour in how the screen updates when using shorter exposures

- firstly the bigger fraction of the time that is spent actually stacking the images, the less the fraction available to update the display when dragging the sliders

- secondly, if the exposure time is less than one second then I think it always waits for the next frame to arrive before updating

- thirdly, there was an issue in a previous build with the update messages caused by slider dragging stacking up in a queue which would cause all sorts of problems with complete lockups or out-of-memory issues, so now the update rate is limited. I will have to check whether I have gone too far in that area though!

I do see the issue with not being able to drag and press shift at the same time - can you simulate the right button with your touch screen? Maybe I could make right button dragging slow?

cheers,

Robin
CityObserver
Posts: 13
Joined: Sat Jun 03, 2017 11:33 am

Re: Histogram Features

#8

Post by CityObserver »

Apologies for the slow reply but I’ve not had any time to try anything out until Monday night.

First — thank you for the larger clickable areas across the board. That makes a world of difference and all control is much easier.

On the histogram specifically, I did find that occasionally when you tried to move the bars, you seem to select the whole histogram drawing instead. This then moves with no apparent effect. In these cases, I just had to let go and then wait a moment and I could then try selecting the level bars again. If I select the bar correctly, it was fine. It was just strange moving the diagram, when you would expect not to have any effect if you tried clicking the background.

Alternately, if you were clicking the background, I sort of expect it to move the slider slightly - as happens with other sliders.

For your right click suggestion -- I couldn't get it to work. It didn't seem to make things slower. On touch you press and hold, the system registers a right click, it shows you an animate box, then nothing different seemed to happen when I dragged.

That said, the UI solution to sensitivity with the touchscreen I’ve seen before (and this works well for mouse too) is to make sensitivity of movement is relative to the distance from where you have clicked.

For example, if you click on a histogram level slider bar and drag:
sensitivity.jpg
sensitivity.jpg (641.56 KiB) Viewed 3576 times
As you can see -- as you click and drag, the relative horizontal speed of the slider in the histogram will change depending on the _vertical_ area of the screen you are on.

If you click on the bar “Mid Level” sliding bar and move the mouse (or finger) vertically to the top of the screen, it makes the mouse move left or right less sensitive by a factor of 2, then 4 then 8. In this example it would be 1/8th the speed at the top of the screen, so for every 8 pixels you move the mouse it only moves the Mid Level bar 1 pixel.

This gives you finer control over how fast the bar slides. If you are dragging on top of the bar in the histogram, then it moves exactly with the mouse, if you are off the histogram area it drags slower, if you are at the top of the screen it drags slower still.

In terms of actual drag speed, it may not be 1:1, 1:2, 1:4, 1:8 that makes sense, but a different set of ratios e.g. 1:1, 1:4, 1:8, 1:16 may work better because actually you need finer than 1:8 speed. That would just be down to some testing of how it feels when you fine tune the histogram at different speeds.

Thanks for fixing the colour slider bars on the right. They are also much easier to control now.

I have a question about the Mini Display Histogram in the Camera Control Panel and the colour shift numbers. I assume none of these effect the RAW image data (if you are using fits individual frames) but do effect the saves if you are using jpeg or PNG, but not the fits files. Is that correct?

The reason I ask is that the mini histogram and the main histogram can be moved independently and effect each other (so you could put a strong gamma curve on the mini, but the main stacking histogram would be untouched).

Similarly, dialing in the colour numbers, how does that effect the colour shift sliders in the stacking histogram.

I find my camera tends to be green and would like to be able to white balance consistently by typing in a number. For instance, testing in full daylight, white balancing to our midday sun temperature, then using that as a basis to match against the colour of objects in the night sky.

This is not an issue or problem, I’m just curious to know how they interact for getting consistency in any outputs.

Overall -- thanks again for the work on 3.1 -- just playing on Monday night and everything is really looking good with lots of great new features. Even if you have feature lock now 3.1 feels like a big jump in terms of what the software can do. All very much appreciated at the scope/computer.
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Histogram Features

#9

Post by admin »

Thanks for the suggestions - I will have to come back to this area after 3.1 is out and work out a final UI design that includes fine control and is also touch friendly and intuitive. The real challenge is doing all of that in limited space, oh and doing it in a way that is relatively easy to implement!

There is a bug where you can seem to use the right click to drag part of the histogram around - I will have to disable that!

The stretch and colour adjust in the live stack histogram affect

* The display on screen
* Saved files using the 'Save as Viewed' dropdown option

but nothing else.

cheers,

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

Re: Histogram Features

#10

Post by admin »

Well, I sort of did a cut down version of your suggestion as I had a little spare time. If you move the mouse above or below the histogram while dragging sideways the distance the bar moves will be scaled down. The further up/down you move the mouse the bigger the scale down factor. This should work for the live stack histogram and the mini level-stretch histogram on the right.

In the latest 3.1.4490 build.

cheers,

Robin
Post Reply