Jump to content

SkySurveyBanner.jpg.21855908fce40597655603b6c9af720d.jpg

PI Pixelmath tutorial?


Viktiste

Recommended Posts

Are there any good  PI Pixelmath tutorials out there?

I would like to understand the syntax, but cannot find any good tutorials. Most stuff I find out there are very specific to one task, and usually from an old pixelmath version.

Say for example I would like to check if I have black clipped pixels in Image 'L', I would think the following would set all pixels greater than K=500 to 65000, an leave the ones below 500 as is. 

But it does noting.

pixelmath.PNG.1824e130e9bbb1653bba40c2ec8f05b1.PNG

Link to comment
Share on other sites

Internally, PI uses a Normalised Scale where 0 represents Black and 1 represents White.

So, your value of 500 is represented by 0.008 on the Normalised Scale.

$T is used to represent the pixel value of the active image.

So, your formula should be written as iif($T<0.008,$T,1)

Try that. 

Cheers

Bill

  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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. By using this site, you agree to our Terms of Use.