Jump to content

Recommended Posts

Posted

I'm troubleshooting my script and I understand the directions of PixelSearch.  The problem I'm having, Pixelsearch picks up the adjacent pixel which is not the one I want because it scans horizontally.  Does not matter from where I start, it scans the horizontally and gets the wrong pixel I want.  Below is an example.  I want to find the most far point red pixel on the right.  First I need to scan from the right because I want the one furthest on the right.  If I scan from left/top or right/top I get #1.  If I scan from right/top or right/bottom I get #3.  You see, I simply can't find #2 being the rightmost red pixel.  For this to occur I would need to scan the pixels vertically from the right.  It would have to scan the pixels from top to bottom as it moves to the left and then it would find #2.  Any suggestions how to accomplish this?  

 

image.png.1d69688c06eb5a0744b33c89918afeab.png

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...