Author Topic: Add "Auto Apply" (Auto Stretch) to ScreenTransferFunction  (Read 7940 times)

Offline Yuriy Toropin

  • PixInsight Addict
  • ***
  • Posts: 209
Hi Juan,
Is it possible to add new button "Auto Apply Auto Stretch" (or something like this) to the ScreenTransferFunction, just next to "Track View"  button?

If this "Auto Apply" button will be turned ON together with "Track View" also turned ON
then Auto Stretch will be applied by default to any view on switch of context and - what's more important - to any new open file.

Otherwise It's needed to press "Auto Stretch" button after opening of any next file that is a little bit annoying.
Those for whom this will be inconvinient will be able to turn this button OFF and enjoy recent behivior.

Thanks a lot,
    Yuriy

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Add "Auto Apply" (Auto Stretch) to ScreenTransferFunction
« Reply #1 on: 2010 April 10 06:44:01 »
Hi Yuriy,

Yes - actually this request makes a lot of sense.

And it would be nice to have the ability to 'AutoStretch' with a slightly less aggressive algorithm - perhaps this could be incorporated as well? (something like "clip to top, clip to bottom, MTF to 10%)

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Add "Auto Apply" (Auto Stretch) to ScreenTransferFunction
« Reply #2 on: 2010 April 10 08:18:06 »
I find that A often takes a surprising amount of time (several seconds for a 3000x2000 RGB image, i7-920) so I'd never enable this option.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline RBA

  • PixInsight Guru
  • ****
  • Posts: 511
    • DeepSkyColors
Re: Add "Auto Apply" (Auto Stretch) to ScreenTransferFunction
« Reply #3 on: 2010 April 10 11:16:04 »
And it would be nice to have the ability to 'AutoStretch' with a slightly less aggressive algorithm - perhaps this could be incorporated as well? (something like "clip to top, clip to bottom, MTF to 10%)

You can Ctrl-click the "A" icon to edit the default AutoStretch parameters. It's in the "unofficial guide"  :angel:


Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Re: Add "Auto Apply" (Auto Stretch) to ScreenTransferFunction
« Reply #4 on: 2010 April 11 03:33:08 »
I found the autostretch quite useful and faster that when I try to do it by hand (on my bad images).

An Auto-apply could be disturbing, because I have some image that require stretching and others that dont. May be the auto-apply autostretch should be a feature of an image that is inherited by images build from it EXCEPT the preview and result of the histogram and curve operations?.  For example when doing a DBE I have to stretch the resulting image as a first operation, this could be a default. However this may make PI behavior (more) surprising.

Currently the STF is applied to the preview of processes like histogram and curve, which I found quite annoying as this force me to . In this case the STF should be disabled by default.

As we are on STF, I find that it takes too much space on the screen. For this specific control, could we not get rid of the title bad and bottom bar, moving the few buttons for example to a new column to the right? I would also like to have it on multiple workspaces.

And finally I would love to have a very clear information that the STF (with non neutral values) is being applied on the image, for example by a special icons appearing at top left, a change of color of the title or something similar. I know that I can look at the top toolbar, but it is often far from my focus of attention.

Just wishes, in case Juan is bored. Ok,  :sealed:.  And thanks for PI 1.6, works very fine on my new Windows 7 64 bit machine bought for it.

-- bitli

Offline mmirot

  • PixInsight Padawan
  • ****
  • Posts: 881
Re: Add "Auto Apply" (Auto Stretch) to ScreenTransferFunction
« Reply #5 on: 2010 April 11 13:34:07 »
Right now if you go  Image > STF there are number of options such as apply a STF to all.

There is no option to apply auto to all.

This would be helpful at times.

Max

Offline RobF2

  • PixInsight Addict
  • ***
  • Posts: 189
  • Rob
    • Rob's Astropics
Re: Add "Auto Apply" (Auto Stretch) to ScreenTransferFunction
« Reply #6 on: 2010 May 26 02:29:32 »
Warning - Newbie here....
Would it be true that 99% of the time people select the STF with the expectation of getting an Auto stretch to get a closer look at what they have to work with in the image?

Is so, surely an option to select if Auto stretch applies with STF selected an reduced real estate on screen would be lovely....
FSQ106/8" Newt on NEQ6/HEQ5Pro via EQMOD | QHY9 | Guiding:  ZS80II/QHY5IIL | Canon 450D | DBK21 and other "stuff"
Rob's Astropics

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Add "Auto Apply" (Auto Stretch) to ScreenTransferFunction
« Reply #7 on: 2010 May 26 07:16:04 »
I use the auto STF to see what my image is like while it's still linear, as I'm sure most people do.

I'm not sure what you mean with your last sentence (I read it twice I swear :), sorry. I think it works fine the way it does. Bring up STF, click A and dismiss STF if needed.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline RobF2

  • PixInsight Addict
  • ***
  • Posts: 189
  • Rob
    • Rob's Astropics
Re: Add "Auto Apply" (Auto Stretch) to ScreenTransferFunction
« Reply #8 on: 2010 May 27 04:54:47 »
Heck Sander, you're right - that was gobbledigook.  
Its meant to say something like:

"An option to preconfigure STF so that when you select it you automatically get an autostretch on the current image - with consideration also given to leaving out the sliders and just have the left part of the STF visible to save screen real estate"


I agree its hardly a killer to have to find "A" and click on it then close STF currently     :footinmouth:
FSQ106/8" Newt on NEQ6/HEQ5Pro via EQMOD | QHY9 | Guiding:  ZS80II/QHY5IIL | Canon 450D | DBK21 and other "stuff"
Rob's Astropics

Offline Niall Saunders

  • PTeam Member
  • PixInsight Jedi Knight
  • *****
  • Posts: 1456
  • We have cookies? Where ?
Re: Add "Auto Apply" (Auto Stretch) to ScreenTransferFunction
« Reply #9 on: 2010 May 27 05:21:32 »
Hi Rob,

In fact I think I can now visualise how 'I' would want things.

Leave the existing STF box 'as is' - it is flexible enough now do do what most of us want (or, what 'I' want anyway).

But create a 'new' mainline process called "AutoSTF" which has virtually no user-controlled parameters, and which therefore occupies very little screen real-estate. This is actually even MORE important for me now that I am using a triple-monitor setup. Which sounds totally MAD, until you realise how 'far' I have to run the mouse to get from, perhaps, the top-left of my main screen all the way down to the tiny little 'A' icon on the STF window that lives at the bottom of my RHS auxilliary monitor.

So, I need a little 'target window' (or icon) that triggers AutoSTF and which I can leave behind the 'divider bar' of the primary window, "out of the way". Maybe a keyboard shortcut would help here as well, although I find now that, with PI, I tend NOT to use that much keyboard input (apart from the numeric keypad to set slider values, etc.). That said, if there was a keyboard shortcut to AutoSTF, then that might be just as acceptable as a separate icon/window.

But, the more I think about it the more sensible it seems just to move 'AutoSTF' out of 'STF', and set it up as a Process in its own right - therefore capable of being 'called' by STF (and any other Process/PCL Module/PJSR script).

That just leaves the requirment for being able to define 'how' the AutoSTF will be applied to an image - in other words, how will the Shadows, MidTones and Highlights sliders actually end up being set.

This isn't actually quite as straightforward as I first thought, because I realise that I actually use the existing AutoSTF in one of two ways:
a.) just 'as is' - you pick an image, and click the little <A> button on STF, and your image gets hit with the AutoSTF transfer
b.) because I might be working with multiple, but similar, images, I select one of the images, apply an AutoSTF, and then copy THAT STF to all the other images (to apply 'equal' stretching, for comparison porpoises)

So any 'quickie' AutoSTF would need to give me that option, I believe. In other words "Apply new AutoSTF to 'this' image" or "Apply 'current' AutoSTF to 'this' image".

And that latter option, when used in combination with an ImageContainer, can also quickly bring all images to the same level, again handy for comparisons.

Of course, we probably all use the PI environment in slightly different ways, so it would be a shame to 'bog down' the natural dynamics of the development process of PI by trying to put a committee onto every new idea :D.

So, a few quick ideas, and we let Juan add 'his touch' to the matter, and then we all try out the new offering and see how we get on (knowing that changes can always be applied later on!!)

Cheers,
Cheers,
Niall Saunders
Clinterty Observatories
Aberdeen, UK

Altair Astro GSO 10" f/8 Ritchey Chrétien CF OTA on EQ8 mount with homebrew 3D Balance and Pier
Moonfish ED80 APO & Celestron Omni XLT 120
QHY10 CCD & QHY5L-II Colour
9mm TS-OAG and Meade DSI-IIC

Offline Yuriy Toropin

  • PixInsight Addict
  • ***
  • Posts: 209
Re: Add "Auto Apply" (Auto Stretch) to ScreenTransferFunction
« Reply #10 on: 2010 May 27 08:35:58 »
Couple of fresh ideas:

Could we add some new "Icon"  (button) <ASTF> or [A]

a) to toolbars or
b) to statusbar or
c) to image's frame next to "scale" set of buttons at the right

that, been turned ON, will force Auto STF to be applied to any new image/any open image?