Author Topic: Computer program to convert picture to calc grayscale?  (Read 14251 times)

0 Members and 2 Guests are viewing this topic.

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Computer program to convert picture to calc grayscale?
« on: February 20, 2012, 11:09:37 am »
Hi,
I was wondering if there was a computer program to convert a 4-lvl grayscale picture to 3 monochrome pictures (like a png or bmp) using a grayscale routine like this:

light gray

100
010
001

Dark gray is the opposite.

EDIT:
For example, a program that would convert the first image I post to the other three:
Thanks,
nxtboy III
« Last Edit: February 20, 2012, 11:24:49 am by nxtboy III »

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: Computer program to convert picture to calc grayscale?
« Reply #1 on: February 20, 2012, 11:29:24 am »
I might be able to throw one together in .NET, but the colors (i.e. their RGB values) would have to be exact. If they were even off by one byte it wouldn't separate them correctly. Picture format wouldn't really be a problem because .NET has support for BMP (which is its native), PNG, TIFF, JPG, GIF, and ICO.

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: Computer program to convert picture to calc grayscale?
« Reply #2 on: February 20, 2012, 11:31:14 am »
Oh... Or you could use that... lol

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Computer program to convert picture to calc grayscale?
« Reply #3 on: February 20, 2012, 11:35:49 am »
???
Use what? You said "Oh... Or you could use that... lol"

EDIT: So do you think you could make it?
« Last Edit: February 20, 2012, 12:13:01 pm by nxtboy III »

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: Computer program to convert picture to calc grayscale?
« Reply #4 on: February 20, 2012, 12:47:47 pm »
I thought SourceCoder would do that? And if I did it might not be till later tonight, I have a lot going on today.

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Computer program to convert picture to calc grayscale?
« Reply #5 on: February 20, 2012, 01:06:49 pm »
What is sourcecoder?

Offline BlakPilar

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 734
  • Rating: +44/-1
    • View Profile
Re: Computer program to convert picture to calc grayscale?
« Reply #6 on: February 20, 2012, 01:23:27 pm »
Oh, Deep Thought deleted his post. I guess it didn't do what he thought you wanted. Anyway, yeah I can try it but like I said, it'd be later tonight.

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Computer program to convert picture to calc grayscale?
« Reply #7 on: February 20, 2012, 01:25:01 pm »
Ok. Thanks. :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Computer program to convert picture to calc grayscale?
« Reply #8 on: February 20, 2012, 03:00:29 pm »
I don't know any computer program that dithers grayscale like your 3 last pictures, but I know there is one for the 83+ that does, assuming you got WabbitEmu and a 83+/84+ ROM handy.

http://www.omnimaga.org/index.php?action=downloads;sa=view;down=130

On your computer you take your grayscale pic then separate each "color" into 3 monochrome images, convert them to 8xi with TI-Connect or Image Studio. Then using that 83+ program you can interlace the grayscale between each pic. I think you end up with 3 or 4 pictures.

However I'm unsure if current versions of WabbitEmu still supports exporting files with F7.

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Computer program to convert picture to calc grayscale?
« Reply #9 on: February 20, 2012, 03:13:54 pm »
So there is no computer program to do it?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Computer program to convert picture to calc grayscale?
« Reply #10 on: February 20, 2012, 03:15:38 pm »
Nope, sorry :(. At least not to convert in that grayscale format. It's because most ASM/Axe routines do the interlacing for you, so such program would be pretty much useless for calcs. The one for the calcs is for TI-BASIC/xLIB users, but very few people makes grayscale games using TI-BASIC and libraries since it takes a considerably higher amount of memory for the data. (3-4 pictures instead of 2)
« Last Edit: February 20, 2012, 03:17:35 pm by DJ_O »

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Computer program to convert picture to calc grayscale?
« Reply #11 on: February 20, 2012, 03:18:30 pm »
Well I needed this for my NXT so it would be easier to convert them.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Computer program to convert picture to calc grayscale?
« Reply #12 on: February 20, 2012, 03:31:21 pm »
Actually lol I misread your original post. I thought you wanted a program to produce the scanlines shown in the 3 pics at the top for other sprite sheets or pics, not the opposite lol. My bad.

If you absolutely just want to separate the grays and blacks then you just need Photofiltre or another image software that supports "Replace color", then make 3 copies of the image, where:

-on one of them you get rid of black and dark gray (change them to white) then replace the light gray with black
-on the 2nd one you get rid of black and light gray then replace the dark gray with black
-on the 3rd one you get rid of both dark and light gray

Then you got each shades of gray separated.

Sorry for the misunderstanding lol X.x
« Last Edit: February 20, 2012, 03:31:49 pm by DJ_O »

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: Computer program to convert picture to calc grayscale?
« Reply #13 on: February 20, 2012, 03:34:24 pm »
:(
Actually, you were right the first time and you did not misunderstand me.
So I guess there is no current way to do it...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Computer program to convert picture to calc grayscale?
« Reply #14 on: February 20, 2012, 03:40:31 pm »
Oh ok lol. ANd yeah to get images to look like in your first post the only way is using that calc program. :(

Of course someone could make a computer one, but it wouldn't be very useful for many people because nobody seems to use grayscale in BASIC anymore.
« Last Edit: February 20, 2012, 03:41:06 pm by DJ_O »