Platforms to show: All Mac Windows Linux Cross-Platform

LCMS2GamutBoundaryDescriptionMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class LCMS2 MBS Images Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
This class allows you to create gamut boundary, add points, compute and check points.
Example
dim n1,n2 as Integer
dim h as new LCMS2GamutBoundaryDescriptionMBS

// Fill all Lab gamut as valid

for L as Integer = 0 to 100 step 10
for a as Integer = -128 to 128 step 5
for b as Integer = -128 to 128 step 5

dim lab as new LCMS2CIELabMBS(l, a, b)

if h.AddPoint(lab) then
n1 = n1 + 1
else
break
MsgBox "Point not in boundary!"
end if
next
next
next

// Complete boundaries
call h.Compute

// All points should be inside gamut

for L as Integer = 10 to 90 step 25
for a as Integer = -120 to 120 step 25
for b as Integer = -120 to 120 step 25

dim lab as new LCMS2CIELabMBS(l, a, b)

if h.CheckPoint(lab) then
n2 = n2 + 1
else
break
MsgBox "Point not in boundary!"
end if
next
next
next

MsgBox str(n1)+" points added and "+str(n2)+" other points found."

Please check LittleCMS API and tutorial documentation for more details.

This class has no sub classes.

Blog Entries


The items on this page are in the following plugins: MBS Images Plugin.


LCMS2DictionaryMBS   -   LCMS2ICCDataMBS


The biggest plugin in space...