www.nazgee.eu

  • projects
  • about me
  • igepv2
  • blog
Home

SPIN Edit (bitmap => radial coordinates converter)

Program evolved as integral part of SPIN project. It is used to convert input image (bmp format) to it's equivalent in radial form (either text or plain binary). Binary files are quite specific, and reusing theese may not be straightforward, but you can easily use text files in your persistence of vision projects.

Right at the beginnign, I'd like to confess, that source code supplied in this article is awful. There are two reasons:

  • this project is my first encounter with .NET and C# - I've used it to get in touch with platform, which means I deliberately wrote some parts of code dirty and not optimal
  • I am lazy

You'll need C# to compile source code and run SpinEdit.

Below you can see sample of the SpinEdit generated text file. You can use it to initialize array, that Is going to be displayed at your POV display. Use it freely as POV images editor.

0x00, 0x00, 0x01, 0xff, //|_______________________*********|
0x00, 0x00, 0x10, 0xff, //|___________________*____********|
0x00, 0x00, 0x38, 0xff, //|__________________***___********|
0x00, 0x00, 0x38, 0x7f, //|__________________***____*******|
0x00, 0x00, 0x3c, 0x3f, //|__________________****____******|
0x00, 0x00, 0x7e, 0x1f, //|_________________******____*****|
(...)

SpinEdit - screenshot
  • open source
  • C#
  • project
  • Add new comment
  • Polski Polski

spin software help please

Anonymous (not verified) — Mon, 08/16/2010 - 17:06

Hi,
was not able to find Your e-mail again, so i write here.

i was using your software SpinEdit and find an unwanted "effect".
if i open program in normal size, import 1bit 500x500 bmp ALLON, sensor offset = default, and center size is smaller than 14%(13,9?) - i get OFF pixels at address 0, FC, 1FC, 2FC (i get 7F instead of FF). If the hub size is smaller than 11% - at the same addresses even worse - 2 pixels off (3F). But the loaded image is all black

This 'effect' is not there if the program is maximized to full screen (in my case 1280x1024) - then no extra off pixels.

Please contact me, i would like to find a solution for this, i can provide screenshots, bin files or etc.

Best regards,
Kaspars

  • reply

it's gonna be a problem...

nazgee — Tue, 08/17/2010 - 09:52

Hi,

I havent't looked at the software for a while now. As I stressed out- it was more than a proof of concept, not a fully functional software. It worked for me (I've been using it on full screen) and I haven't seen the artifacts you are talking about.

I can only suspect, that it has something to do with tangens/cotangens discontinuity in 90' or 270'. This software is poorly written in terms of mathematics, as it maps pixels form the source image, to clicks on the application form - it is almost like abute force method. I had partially rewritten the software some time ago - I included zooming, and shapes drawing, but it is still not finished, so source code can not be included.

Unfortunately at the moment I do not have time to sleep properly - not to mention fixing this app, sorry :( I promis I'll have a look at it some time, but it is not gonna be anything in the nearest future...

  • reply

  • English English
  • Polski Polski

Book navigation

  • IGEPv2
  • linux development
  • SPIN tutorials

Recent blog posts

  • Chester - the pink octopus
  • My first Android app
  • Online dictionary from command-line
  • mouse + servo = mouservo
  • Ubuntu One - maybe some time later
  • Setting up latest version of Eclipse under Ubuntu
more

Search

User login

  • Request new password

  • projects
  • about me
  • igepv2
  • blog

Copyright (C) nazgee Wszelkie prawa zastrzeżone