Checksum related code

View previous topic View next topic Go down

Checksum related code

Post  Billy on Fri Oct 23, 2009 1:58 pm

Ok I'll start

Im looking for a code akin to the regular pixelchecksum function

That function will create a checksum based on the coords and step parameter you define

I would love a function to create a checksum based on irregular pixels in the coords

eg: _IrrPixelChecksum(200,200,210,210,6,9,13,22,40,55,78,90)

Whereby the red params are the pixels relative to coords first pixel in the 100 pixel rectangle area defined.

I would really appreciate seeing something like this, but alas the pixelchecksum function is inbuilt to autoit and I cant even study it to see if it could be modded (not that I could anyway) or would be allowed to

If this is not the kind of thing allowed here, please feel free to delete it

Billy

Posts: 6
Join date: 2009-10-22

View user profile

Back to top Go down

Re: Checksum related code

Post  P5ych0Gigabyte on Fri Oct 23, 2009 7:40 pm

Can you explain a little differently? I take it you want to check only certain pixels. For example generate a check sum checking every other pixel.

P5ych0Gigabyte
Admin

Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

View user profile http://www.c4free.info

Back to top Go down

Re: Checksum related code

Post  P5ych0Gigabyte on Fri Oct 23, 2009 7:41 pm

P5ych0Gigabyte wrote:Can you explain a little differently? I take it you want to check only certain pixels. For example generate a check sum checking every other pixel.

OK i get it now. I'm gonna see if I can write a little function for you.

P5ych0Gigabyte
Admin

Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

View user profile http://www.c4free.info

Back to top Go down

Re: Checksum related code

Post  Billy on Fri Oct 23, 2009 7:45 pm

Normal pixelchecksum will create a checksum with a step value of a defined amount of pixels skipped

The optional step value like PixelChecksum(200,200,210,210,2) will only check every other pixel from left to right, top to bottom, if you use 3 it will check every third pixel

Im after a function where I can define the exact pixels it will use

Cheers for your reply

Billy

Posts: 6
Join date: 2009-10-22

View user profile

Back to top Go down

Re: Checksum related code

Post  P5ych0Gigabyte on Fri Oct 23, 2009 9:02 pm

Give this a try. I wrote a function to do the task that you asked for. It however takes an array as the coords. It also requires the md5.au3 to generate checksum. Download

P5ych0Gigabyte
Admin

Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

View user profile http://www.c4free.info

Back to top Go down

Re: Checksum related code

Post  Billy on Sat Oct 24, 2009 5:46 am

Very much appreciated my friend

Will have a look now

Billy

Posts: 6
Join date: 2009-10-22

View user profile

Back to top Go down

Re: Checksum related code

Post  Billy on Sat Oct 24, 2009 7:29 am

Working fine mate, thanks very much.

I'm supposing I could expand or deflate the array size, is this correct ?

Do you think their would be limitations to its elements ?

Billy

Posts: 6
Join date: 2009-10-22

View user profile

Back to top Go down

Re: Checksum related code

Post  P5ych0Gigabyte on Sat Oct 24, 2009 5:41 pm

Billy wrote:Working fine mate, thanks very much.

I'm supposing I could expand or deflate the array size, is this correct ?

Do you think their would be limitations to its elements ?


Yes you can change the size of the array just make sure it is has the same format as the one i used. For example , you could do dim $Array[10][2] and then you would have ten pixels to check.

P5ych0Gigabyte
Admin

Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

View user profile http://www.c4free.info

Back to top Go down

Re: Checksum related code

Post  P5ych0Gigabyte on Sat Oct 24, 2009 9:25 pm

I have improved the code to use the Crypt.au3 from the latest beta. Download

P5ych0Gigabyte
Admin

Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

View user profile http://www.c4free.info

Back to top Go down

Re: Checksum related code

Post  Billy on Sun Oct 25, 2009 5:05 am

Wow, thanks matey.

Love the logic you done in this.

Excellent.

Billy

Posts: 6
Join date: 2009-10-22

View user profile

Back to top Go down

Re: Checksum related code

Post  P5ych0Gigabyte on Sun Oct 25, 2009 5:08 am

No problem. Glad to see the site getting some use. =)

P5ych0Gigabyte
Admin

Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

View user profile http://www.c4free.info

Back to top Go down

Re: Checksum related code

Post  Billy on Sun Oct 25, 2009 5:14 am

P5ych0Gigabyte wrote:
Billy wrote:Working fine mate, thanks very much.

I'm supposing I could expand or deflate the array size, is this correct ?

Do you think their would be limitations to its elements ?


Yes you can change the size of the array just make sure it is has the same format as the one i used. For example , you could do dim $Array[10][2] and then you would have ten pixels to check.


Ahh, just noticed after this post

I thought I was checking 8 pixels, no wonder I wasent getting the results I expected

Are the groups of 2

$Array[0][0]=6
$Array[0][1]=9

$Array[1][0]=13
$Array[1][1]=22

$Array[2][0]=40
$Array[2][1]=55

$Array[3][0]=78
$Array[3][1]=90

Reletive coordinates in the rectangle ?

eg

$Array[0][0]=o
$Array[0][1]=0

Would be the first pixel (top left) in the rectangle ?

Billy

Posts: 6
Join date: 2009-10-22

View user profile

Back to top Go down

Re: Checksum related code

Post  P5ych0Gigabyte on Sun Oct 25, 2009 2:54 pm

yes they are relative coordinates.

P5ych0Gigabyte
Admin

Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

View user profile http://www.c4free.info

Back to top Go down

View previous topic View next topic Back to top


Permissions of this forum:
You cannot reply to topics in this forum