Friday, June 10, 2011

New WPF program

So started the new program; I'm trying to make this much more simplified.

There are 5 basic buttons - Open and Save, Gesture Commands, Run the program, and properties.

if no button is selected you will be able to split (by eraser with stylus) or join (by drawing with stylus).

I have the program looking a bit crisper, simplified look (done entirely in XAML via designer).

XAML works quite good for designing the GUI, very useful I found, made changing things very simple.


The properties menu is a new window, which will allow you to set everything from grayscale coefficients to desired threshold values, to blobs filtering widths/heights.



I changed the idea for selecting the threshold to make it even quicker. Not yet implemented, but to allow the user to tap on the screen to set a small box at the location (one in the biggest chunk of foreground, other in biggest chunk of background) then just using a set square size to measure the histograms.

Basic gesture ideas (Diagonal Slash - Delete, < symbol - Undo, Circle - (before program runs important object), X - Erode the object)

I'm not sure about how to erode a single blob though, I'm sure there is some way to do it.

2 comments:

  1. This sounds great, I really like the emphasis on gestures. Make sure the program can be used with a mouse too, but the experience can be optimized for a pen. It's useful for testing.

    To erode a single blog, you'll have to use the blob pixels as a mask to pull the original blob out of the original image (or one of the intermediary processed images like the bw one). Then you'll have a small image just with that one blob, you can run any filters/operations you want, and when done, you can paste it back into the overall "processed" image. Does that make sense?

    ReplyDelete
  2. Makes sense, yes. There must be some mask tool in AForge, I will look for it.

    ReplyDelete