MAMEWorld Central >> News
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Moose
Don't make me assume my ultimate form!
Reged: 05/03/04
Posts: 1385
Loc: Outback, Australia
Send PM
Re: Monkey Revival
07/27/17 04:43 AM Attachment: ROM Decap - Image Analyser - v0.002.zip 59 KB (3 downloads)


Attached is a ZIP containing my Java source code that analyses an image and automatically works out the 1/0 for each region. Also includes 2 images (screen shots from siprOn).

NOTES:
* The "average brightness of the top 50 pixels in a region" seemed to work
better than the "average brightness of all pixels in a region".
But I have left the code for both averages in so anyone can explore
further.
* This code works for included screen shots (see "Sample Output" below).
* For other screen shots to work, you will probably need to adjust the
size, offsets, etc below.
* The threshold value - oneZeroThresholdValue - will almost certainly
need adjusting for different images / scans.
* Lots of improvements could easily be added (let me know if I can help).
e.g. a nice GUI interface, drag and drop, image parameter sensing (where the
red lines are, etc), and so on.


Sample Output:

instructions_03.png
10011011
00011110
11101101
00001001
11110110
11001100
10111111
11110110

== 100% correct !


instructions_04_enlarge - one bit in the image is dirty.png
11100010
11101101
11110000
01111111
11111010
11100111
11100001
11010111

== 100% correct !

If you can make use of this Java code, great. Otherwise, no worries.

100% Freeware - any person, any company, etc can use/adapt freely. (If you want to give me credit, great, but not mandatory).


Update: new version attached - it processes both files - to need to comment/uncomment 2 lines and re-run, tidy up some code, output more information for each image.


Moose


Edited by Moose (07/27/17 11:15 AM)







Entire thread
Subject Posted by Posted on
* Monkey Revival drewcifer 07/24/17 04:47 PM
. * New die: sega_315-5677a_xpol IDrinkHF  08/05/17 02:43 AM
. * Re: New die: sega_315-5677a_xpol IDrinkHF  08/07/17 12:36 AM
. * Re: New die: sega_315-5677a_xpol MooglyGuy  08/07/17 04:55 PM
. * Re: New die: sega_315-5677a_xpol IDrinkHF  08/07/17 06:02 PM
. * Re: New die: sega_315-5677a_xpol IDrinkHF  08/07/17 11:56 PM
. * Two more die images up! drewcifer  07/27/17 12:47 PM
. * More. MooglyGuy  07/30/17 01:02 PM
. * Finished the tail end. MooglyGuy  07/29/17 07:42 PM
. * Re: Monkey Revival Moose  07/27/17 02:15 AM
. * Re: Monkey Revival Vas Crabb  07/27/17 07:54 AM
. * Re: Monkey Revival Moose  07/27/17 04:43 AM
. * Re: Monkey Revival drewcifer  07/27/17 10:37 AM
. * Re: Monkey Revival IDrinkHF  07/28/17 01:21 AM
. * Re: Monkey Revival drewcifer  07/28/17 10:41 AM
. * Re: Monkey Revival BPzeBanshee  07/28/17 04:56 PM
. * Re: Monkey Revival Moose  07/27/17 11:41 AM
. * Re: Monkey Revival drewcifer  07/27/17 12:43 PM
. * Re: Monkey Revival colour_thief  07/28/17 12:50 AM
. * Re: Monkey Revival Moose  07/27/17 04:17 PM
. * Re: Monkey Revival sparkyman215  07/27/17 10:53 PM
. * Re: Monkey Revival Moose  07/27/17 11:52 PM
. * Re: Monkey Revival Moose  07/29/17 03:09 AM
. * Re: Monkey Revival Janez  07/29/17 06:51 PM
. * Re: Monkey Revival Moose  07/30/17 04:10 AM
. * Re: Monkey Revival Haze  07/29/17 04:16 PM
. * Re: Monkey Revival Moose  07/30/17 04:27 AM
. * Re: Monkey Revival drewcifer  07/28/17 10:49 AM
. * A new die appears! drewcifer  07/26/17 12:59 PM
. * Re: A new die appears! drewcifer  07/27/17 10:49 AM
. * A successful typing drewcifer  07/25/17 10:44 AM
. * Re: A successful typing drewcifer  07/27/17 10:51 AM
. * As featured on Ars Technica! Phil Bennett  07/25/17 07:19 PM
. * Re: As featured on Ars Technica! drewcifer  07/26/17 10:28 AM
. * Re: Monkey Revival f205v  07/25/17 09:39 AM
. * Re: Monkey Revival ZX82  07/25/17 06:49 AM
. * Re: Monkey Revival StilettoAdministrator  07/25/17 09:52 PM
. * Re: Monkey Revival Haze  07/25/17 11:12 PM
. * Re: Monkey Revival ZX82  07/26/17 09:10 AM
. * Re: Monkey Revival Master O  07/25/17 11:31 PM
. * Re: Monkey Revival Haze  07/25/17 11:46 PM
. * Re: Monkey Revival drewcifer  07/24/17 05:18 PM

Extra information Permissions
Moderator:  John IV, Tafoid 
1 registered and 15 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2768