Jump to content
You must now use your email address to sign in [click for more info] ×

Saturation Mask


Recommended Posts

I have several 6 TB disks a 4 TB and a 3 TB disk...  I remember when disk technology for a 8 foot high disk drive was 256 MB..... I also developed computers in the early days and have a number of patents on them  ITs come a long way.   

AS AP works in 32 bit floating point in develop it gives you a good start for any further work you do in the photo or HDR module.  I use the HDR module  a lot directly from the develop module.  You might try working in 32 bit mode in photo as most of the adjustments work in that mode.  Many folks think you dont need 32 bit and if your camera only records in 8 bit then that is true but my cameras have a very wide dynamic range  with 36 and 45 MPixels  as well as recording in 14 bit  flash  and I can recover  a lot .. You really need the dynamic range for that.  I have conversed with many photographers   on You tube working in Photoshop who insist that 16 bits is enough but watch some of the videos from James Ritson and you will see the benefits of 32 bits.  Its not for everyone,  most people will be very happy with 16 bit which is what Photo persona works in when you dont select 32 bit mode..... I have to tell you that 32 bit mode is especially useful when doing astrophotography.....

I never have to bracket a landscape photo when I work in 32 bit I have always been able to recover the darks when I expose for the lights.....  But then I have the right camera for this as well.

As far as your comment on the cost of the books.  Well, these are textbooks  and are expensive...

Link to comment
Share on other sites

BTW Neutral shooting only affects Jpgs not raw.....  I use the jpgs for immediate processing using snapseed but then when I get home I use Affinity Photo.    14 bit raw encoding is what is preferred for raw.;.;; if you want to talk about color then I recommend you look at these web sites . The author is a painter and photographer and he gives a very good overview of color theory.  Folks in your camera club might appreciate this.....https://www.youtube.com/user/EverydayHDR/search?query=color+theory be sure you watch both color theory 1 and 2 which are both shown on this page...  There are many others on color theory out there but I like this one as Blake is also a painter.....

Link to comment
Share on other sites

Many thanks, @hanshab. All pointers gratefully received! I also remember 100Mb floppies, magnetic core memory, and enormous 246Mb disk 'washing machines'. Well done on patents! I got a couple in gaming machine design (in which I worked for a few years).

Very interesting that you work at 32bit level. Does your camera output to this? What camera do you use? I'm pretty happy with my A7R2, 42Mpx and 40Mb RAW image files (compressed 14 bit RAW - any opinion on using 80Mb uncompressed?).

Yes, I like f64. Blake is clear and, as a former artist, has a good creative sense and a feeling for colour. I don't know wolfcrow and will also explore (thanks). All book recommendations gratefully received. One of my favourites is Zakia's Perception and Imaging. There are a number of good books on composition but I don't have a standout favourite. One of my personal 'research' questions is 'What makes a good photo good?' I like Christopher Alexander's work in architecture in this regard.

You probably already know it, but https://www.opticallimits.com/ is helpful in determining optimal aperture range for lenses, though if you have medium format this is not covered.

Dave Straker

Cameras: Sony A7R2, RX100V

Computers: Win10: Chillblast i9 Custom + Philips 40in 4K & Benq 23in; Surface Pro 4 i5; iPad Pro 11"

Favourite word: Aha. For me and for others.

Link to comment
Share on other sites

Hi

A very interesting exchange ...

'What makes a good photo good?" 

I am  sensitive to the influence of landscape picture painting and found this interesting link  https://www.davemorrowphotography.com/color-theory-photography 

Dave, I finally saw no difference with Tony Kuyper's approach explained in his second page about saturation, a regret Photo is not compatible with his  panels
 
 

Link to comment
Share on other sites

4 hours ago, Max P said:

Hi

A very interesting exchange ...

'What makes a good photo good?" 

I am  sensitive to the influence of landscape picture painting and found this interesting link  https://www.davemorrowphotography.com/color-theory-photography 

Dave, I finally saw no difference with Tony Kuyper's approach explained in his second page about saturation, a regret Photo is not compatible with his  panels
 

Thanks for the link, Max. I've been watching it.

Saturation is an interesting question. Morrow shows it as going from saturated colour down to white, yet in Affinity Photo it goes down from saturated colour to grey. In other words, RGB converge either at mid-values (128 on 8-bit schema) or top values (255 on 8-bit). This also brings up a third option of converging on black (0). In AP, saturation does go down to white when the HSV box is checked, which simply throws more confusion into the question. And if you bring up the Colour Chooser and the Saturation variant, the main square goes from white to black through the fully saturated hue, with a grey-to-saturated slider above, which effectively suggests a cube model (though with the HSL sliders, H moves x, L moves y and S changes the whole from grey to white-saturated hue-black).

Wikipedia says ' To desaturate a color of given intensity in a subtractive system (such as watercolor), one can add white, black, gray, or the hue's complement.' Indeed, black, grey and white are all desaturated when you view saturation in terms of maximum 'colour' (colour happens when R, G and B are not all equal). Wikipedia also gives an equation of saturation = chroma / luminance, which suggests that when saturation is zero, chroma = luminance, but then we have the rabbit warren of what chroma and luminance are.

My brain hurts.

 

Dave Straker

Cameras: Sony A7R2, RX100V

Computers: Win10: Chillblast i9 Custom + Philips 40in 4K & Benq 23in; Surface Pro 4 i5; iPad Pro 11"

Favourite word: Aha. For me and for others.

Link to comment
Share on other sites

I return to the original post of dmstraker. Though the recipe looks somewhat sorcery, it really builds a grey picture with R=G=B=Max-Min where Max and Min are the largest and the smallest of the original RGB components, i.e. the genuine absolute saturation in HSL models. I wrote a script which performs this computation and I obtain exactly the same results. This script can downloaded at http://www.oitregor.com/numeric/affinity_photo/divers/selection_saturations.afmacro 

Of course, this does not yield saturation in LAB sense, but in practice this should have little consequence.  I also wrote a script for chroma — SQR(a^2+b^2) — but I failed to convert it from Photoshop to AP.

 

 

Link to comment
Share on other sites

I cannot open your file.. But just going by your text whenever R=G=B, the color is a shade of grey.  But if you say Max=Min,  is this supposed to be irregardless of if its blue green or red?  Ie Max (R,G,B)  = Min(R,G,B)   it always will involve the lightness as that is always part of RGB so you are setting the lightness to some single value over all colours in RGB.   but I can't be sure as your file does not open... Thanks

Link to comment
Share on other sites

Is your file for PC or for Mac? When I click on your link, this is what I get: Don't know what to do with it, sorry

ÿKA
���rcaM#Infa������Í��������������������jïE\����������Prot���#Filxí]Ë{ÛDß
Ðð~–7J¨
‘ójy%²œPS¿*9œú)’šª±%!)mzË¡¸qä? ô$Ÿ8ò}ýƒèPfVV¬%¯¦Å_œ°{vFkY+ÿfggvfM\ÒGH¸)y’"¦Q¥P!¤W‰±’eürÒ`DÎY•Ž`˶¿QÂkFQÕ‘î¨f	N#ÒºëTHÁ´µ2mi¾NI7ŒL
›ØŒ$±g¹ËHÇ•´âY6kœ¤"ë7í‘u«]'gC7hb{BîÏ'罎ýë’®­Ö©¤ººBã©ÀYÂt§L›=¬­é
Jâé”?ÍógSþ,ÏŸKùs<_Nù2ÏŸ”ƒä{'e3û½…”_àùrÊ—yþùôþçùûR>¼îìý/¤ü<&åÏðü©ô{§øïNùÓ<&åÏðüÙ”?ËóçRþÇ—í6<¶Ü2*$oâ‡H7ì A$5
8ŠJdu9€ÞI«†»HÇ­Àg]Ŷ|ùmÑþºp»qÃ`/þ¶\ÛP‘{·Ð« q»T^®b%nû:«úaž@Å ­)ñŽªâ™"ÔeË«5éSxYѪ*^Ö®[
Òšé.â9ˆB
ù64…ÓH¡
h£êBëŸ×{å}lÅÊÖ>xе¼iø ý„ŒºjÐ|*gK©|%O…G©…ÌñÍ"¾úýËx±qp£	3´“ß×	=OQ'dkþ”é×á§Úš¯.&B*­FÖ"•V­E•ÞÂD‚ð	îZn"EHäoE·.be"ð“J>hö*M§Â~ô|¤¯°cÜ+&üÀ^EîDN‘œÖðø¯rº¼st=¬ª@Ë|ÓÄB‘¶Bäi+t3Â!u4¼éi­Ñ°í©XùňŒÒ)lÍJÀJ9üù!®9È–­ÖÂØšëõ‰vÛcÃ*^˵ðECùK[(äý°Aó
£`7d'B,cã2%t,—›ü5„r¸?D!KLe›Mþ˜ýL–(ôvƒ©m‚ŒA"œDZŒ6At¤ÈïÀ/¿Â«“l×+‘XIdF„L*ù>f³I%½R„—²ÑB·\…&Ú"Ñ£ª™�Gj/…ËD²;5…Œ›š[~ÀÊßÉéÁγäk
Ü«ºe’¯âJ>L!UuË€[à@¥›Èžª×‰P1=•*T‚bWó4ð3*fÛ)Õk¨C˜j)˜a©BƒH¯P2qÎoAÝŽr†u}#Œ:¶å|#0:vdáD´©¯BÕët×ÊYvhŽ9ž»ïô«�·hNí¥ŠöâcÏÒ²_¸ÖmàJ¢…	9:hªö %#GL™ª¥5´`(Z!rÍ„ùˆ\‹ÂX};BfP“�'_3
•Hë·B¤ŸlÐñ“Ý£ž˜Žñ½}eEmk`W%½ÍÃ4³ÊæsáÕ«uTkùÊ5•©¦‰ŽQ«>í• pîýØçü¶áf_‰ä´=ê.>ÇwŸ˜¢y)LIx½ñ@˜’‰É~LÉx8¿ˆ$š’‰éø’h:
³Þ„0…Yˆv¥0“áMx{žÙÔcxò=/óê=rÍ£7áIÀ1‡Çå°üô{}¯s0žûC{îÑ’1_CÍÁ“e¾Î÷ò
ÖK0O€ùwšïÚ›H
ó_¡æß±1ÿÐk›ÞF²oþ½ƒ¤0ÿà-`æŸ0ÿ„ù‚Ðóò	óïgþ½¿~F]¼‡äð˜ð4ÿ©	(Ì?x&·Xiy¬À-¦ÊÈäœ@ó/Ç÷òCÖËæ¬	’c·ú÷ßµ$jµÈ81â.ïÚí"ÆãIah4ö
mø£Ø& äNW "
DDÁAgx~‚$®±óΕc)]ã|×>e]éRÕ	!Õƒ
©>ËCO’¨N«§£*2–õ+£_xÿÃ}öRDÐg2­LWÍD^Á°ä°š~^ÁAøSŸ‡HªI|G—TC¥>ã5À9þ®È(cI(Ý¡‰ëø?çÁÿIVäIî/Y{»o¢d­gÎÆÛƬÞH¢åe›E1³èfI‰\•ÄEŒt†"îZ™HZh\$…öÒf“.ãAdªœ¸dÈAw`”ñ©ÉH"tdU-òwÙ{x„üÝA¶ÀCv
É.œc™1Íwm†u-uá SJ8F¹ìw±¸˜Ø.µ¸2·É(‚9$OˆTç»vuMHU,öš€
»×Ä—<ô¾Ú]ª0§_Ì—Ð8Ù{_ãã÷=\ßàS‚›·¿~‡	ŠÈ”pçr,áW,̉…¹ƒæ¾Ød°…¹—„÷TxO¹­„â£óžlK¢ü
ÿŽUé&
´B5›êdD7èAQNÖØñ‘™z B=tOœŸj`‚Je0…»oíbž ‰|&RèÏôæ;Ö›Ô"Á¤raç;0»ßáNjèážWbžÅM¬Rõ*õÀ´È÷<ø/IÔºŽ{8²ý„’]‚’Ýå$§³Q¡g›Ûq¦±AÞÊQﲃÛfdMòÁ/êP±™Zj"µûЩݸž,ºdá%¤ëº90e‚Áf {Y@–÷ÓÈdq‹àdaùCŒ²øÄ(ˉî#D{l”Å]½3ÅYÒÞ?hñ]åF—XL†mbÀ6gÁ¦Â{wÚ¶‰‹çB#Ú¬†„ü·Rdÿÿÿÿ#FT2��������jïE\����Í���������������������������1����������H�������Hf������������d¸ã‰���	�Macro.dat
Link to comment
Share on other sites

6 hours ago, ch22 said:

My file is a macro record ; you must import it in the AP macro ou library panel

No, not the Library panel: that’s for collections of macros (*.macros, with an ‘s’). For a single macro in a *.macro file, you need to use the Macro panel.

13 minutes ago, Ganna said:

Is your file for PC or for Mac? When I click on your link, this is what I get: Don't know what to do with it, sorry


{snip}

All Affinity files can be used on either PC or Mac.

You should be downloading it, not opening it in your browser. Try right-clicking on the link and choosing ‘Save link as...’ or ‘Save target as...’ (or similar, depending on the particular browser you’re using).

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen)

Link to comment
Share on other sites

Alfred : thanks

dmstraker : finally the sorcery can be easily explained, provided that HSV model is really the cylindrical HSL model used in Photoshop Adobe color requester. In this model, if the RGB components are sorted in decreasing order as (Max, Mid, Min) — think of these components as reduced quantities varying from 0 to 1— the HSL components can be then written as

H =(Max-Mid)/(Max-Min)    ;    S = Max -Min   ;    L = Max   

where H  actually is the decimal part of a reduced hue varying from 0 to 6, with an integer part depending on which colors correspond to Max and Min components. This formulas can be inverted as

Max = L   ;  Min = L-S   ;  Mid = L-TS

Now, following the dmstracker process :

(i) putting S to 0 in the first HSL adjustment makes the three components replaced by L (the largest component)

(ii) switching to the Difference blending mode replaces the (Max,Mid,Min) trio with (0,S,TS). Since T<1, the largest component is now S  (there is also a hue jump but it does not matter) 

(iii) opening the 2nd HSL adjustment and putting the Saturation slider to 0 makes the three components all equal to the largest component, i.e. S : we thus obtain the wanted mapping of the initial picture saturation.

Unfortunately, I am not sure this Photoshop model really is the HSV Affinity model, since when one moves the Luminosity slider the above RGB components do not change in agreement with the above formulas... But maybe that's another story! 

 

Link to comment
Share on other sites

Sorry,  my reference to the Photoshop model was somewhat irrelevant... and it does not matter. The key point is, whatever the actual model used in the AP colorimetric model,  that putting saturation to 0 in the HSL adjustment makes the (Max, Mid, Min) trio replaced with (Max, Max, Max). This can be checked in a practical way by monitoring what happens to RGB components of a color sample in the Infos panel. Then, switching to the difference blending mode makes the original trio replaced with (0, Max-Min, Max-Mid). Since the largest component is now Max-Min,  the second HSL adjustment puts the three components to Max-Min.

Link to comment
Share on other sites

  • 9 months later...

Another method for obtaining the saturation mask or the equivalent saturation selection, which requires no HSV capacity :

(1) open an HSL adjustment,  put saturation to -100 and put  the blending mode to "difference"

(2) open a level or curve adjustment so as to get a x2 gain (for instance, with levels, put the white glider at 50%). This amplifying step will allow to get a full saturation mask, i.e. with white or black corresponding to fully saturated colors  or gray tones. At this stage, the (max, med, min)  triplet for color components is replaced with (max-min, xxx, max-min) where xxx is lower than max-min

(3) in order to retain only the difference (max-min), open the channel panel and successively  (i) right-click the red line for " load in the pixel selection", (ii) and (iii) right-click the green and the blue lines for "add to the pixel selection"  —this is equivalent to choosing the highest of the three RGB components.

We then have the wanted saturation selection. 

 

Link to comment
Share on other sites

On 10/30/2018 at 4:28 PM, dmstraker said:

I've been tinkering with the idea of saturation masks for a while and I've just found a very simple way to create one. It is based on the principle that we want all tones to go black, including whites and greys, leaving fully saturated colours white and partially saturated colours in shades of grey.

The steps are as follows:

  1. Duplicate layer.
  2. HSL layer, check HSV, slide Saturation fully left, Blend Mode: Difference. (removes tones - blacks, whites and greys all go black).
  3. Another HSL layer, check HSV, slide Saturation fully left (turns saturated colours white).
  4. Layer/Merge Visible and Layer/Rasterise to Mask, then use mask as you like (or use the pixel layer otherwise).

Here's a video tutorial I've just uploaded to my InAffinity YouTube channel:

 

 

If you are using the @fotoloco version, the third step from the bottom should be HSL, not HSV, then the two HSLs above should be HSV

Link to comment
Share on other sites

On 11/11/2019 at 9:39 PM, amyhimesama1598 said:

If you are using the @fotoloco version, the third step from the bottom should be HSL, not HSV, then the two HSLs above should be HSV

Thanks, though a little academic at the moment as Affinity, in their wisdom, decided to remove the HSV checkbox from the HSL dialogue in 1.7. I've moaned and they said they'll restore it at some time...

Dave Straker

Cameras: Sony A7R2, RX100V

Computers: Win10: Chillblast i9 Custom + Philips 40in 4K & Benq 23in; Surface Pro 4 i5; iPad Pro 11"

Favourite word: Aha. For me and for others.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.