There is no problem of telling what I am doing.
It is not much new.
I am basically repeating the advice I got from Oleg and Cliff and what I
have read in the labs.
Only real difference is I am beginning to understand what is all about.
The image world is very interesting.
I am working with x-ray, mri, ct and such images.
They are in dicom files.
I work on the Dicom files with utilities to get the header information in
XML files.
Then I am also getting exposure information from instruments also in XML
files.
I am then looking at the BMP files I extract from the Dicom files and
looking for the position of the instrument in the image.
It is important to know the position of the instrument and do calculations
from the different sources together.
I get one exposure XML file with several exposures.

I can give and example on a test run.
Like I get one file with 30 exposures of 2 phantoms in a CT.
Each exposure with 4 slices - one slice in each file.
In my program I have to find out how many slices there are and also to match
the time the slices are taken according to the time info in the XML files
from the Dicom with the time from the instrument.
In the directory I got a Dicom picture with the 30 exposures I should have
had 120 files but I got 144 files.
The times difference between the clocks in the instrument and the dicoms was
close to 19 minutes so it was not really easy to match.
It is also interesting that the 4 slices taken the same instant are a little
bit different so even if my program finds the probe in the right place on
three images it may miss it on the fourth.
That is why I am testing different methods of filtering, different sizes of
kern but basically using the methods described here earlier by Cliff and
Oleg and I am now going to try out the method of excluding outliers to see
if I can get the correct position always.

I am happy to provide info about this as long as someone is interested.

The tools in J have come in very handy and are very interesting.


2007/3/16, Devon McCormick <[EMAIL PROTECTED]>:

Gosi -

I'm very interested in what you're doing here - I've just been looking at
my own photos and trying to find duplicates and repetitions.  Is there any
chance you can post what you've done to the J Wiki?

Thanks,

Devon

On 3/16/07, Björn Helgason <[EMAIL PROTECTED]> wrote:
>
> I was going to look at dendrite and your examples but ran into the same
> problems of being without JAL so I finally gave in and tried to install
> JAL
>
> Got the libraries and got the run/ pacage manager option straight away.
>
> Found wget quickly and installed it.
> Had some problem finding a site to download and install unzip
> Once both wget and unzip where installed and working I was still getting
> the
> report on HTTP Cmd and Unzip
> By the way wget was working but the report said always both wget and
unzip
> not working
>
> Anyway after wget and unzip were there and working - I was still getting
> report from J configure it was not -
> I needed to point configure at the web browser - mozilla in my case -
and
> then it started working - looks like it anyway.
>
> Now JAL seems to be up and running at this place.
> I can not test it further until next week and in the meantime I will
also
> try to install JAL and possibly some of the addons in other places I
have
> computers I work on.
>
> 2007/3/16, Björn Helgason <[EMAIL PROTECTED]>:
> >
> > That looks really interesting.
> > I am pretty sure this can be useful.
> > " Outliers are atypical (by definition), infrequent observations"
> > I have to admit that I do not understand the technique yet but I will
> > certainly give it a try.
> >
> > Also I have found after going through some hundreds of images that
some
> > methods are more reliable than others and using only those who are
more
> > reliable and combine it with this I will be getting pretty close to
> > certainty I guess.
> >
> > I have tried different sizes of the kern 8 8;16 16;20 20; 24 24 - the
> > total image being 512 512.
> > It looks like 24 24 is giving me best results. Is there any rule to
how
> > big the kern size should be?
> >
> > 2007/3/15, Oleg Kobchenko <[EMAIL PROTECTED]>:
> > >
> > > I tried to run this set of data through Dendrite
> > > cluster analysis to filter the error results and
> > > got a new average of 327.75 363.5.
> > >
> > > See details in the "Error Filter" topic at
> > >      http://www.jsoftware.com/jwiki/Essays/Dendrite/Applications
> > >
> > >
> > > --- Bj�rn Helgason <[EMAIL PROTECTED]> wrote:
> > >
> > > > I accidentally divided by 5 instead of 6 but that does not change
> the
> > > > question
> > > >
> > > >
> > > >
> > > >    a=.328 364;127 478;159 1;328 363;327 365;328 362
> > > >    6%~+/>a
> > > > 266.167 322.167   NB. correct answer should be 328 363
> > > >
> > > >
> > > >    a=.247 235;0 0;244 433;129 304;246 236;291 48
> > > >    6%~+/>a
> > > > 192.833 209.333     NB. correct answer should be 247 235
> > > >
> > > >
> > > > 2007/3/15, Björn Helgason <[EMAIL PROTECTED]>:
> > > > >
> > > > > Lets say I use different methods to find the point and the
correct
> > > answer
> > > > > should be    328 363
> > > > >
> > > > > Even if the majority are correct or close to it the mean may not
> be
> > > a good
> > > > > answer
> > > > >
> > > > >
> > > > >    a=.328 364;127 478;159 1;328 363;327 365;328 362
> > > > >    5%~+/>a
> > > > > 319.4 386.6
> > > > >
> > > > > Any suggestions to get a better approximation?
> > > > >
> > > > > 2007/3/15, Björn Helgason < [EMAIL PROTECTED] >:
> > > > > >
> > > > > > I am trying different sizes of the kern and different filters.
> > > > > >
> > > > > > I created a form to show the images and different filtering
and
> > > various
> > > > > > results of finding the object.
> > > > > > I try it out with finding patterns equal to different numbers
> and
> > > > > > combinations of numbers as well as the actual kern without
> filter.
> > > > > >
> > > > > > It takes time to do the manual checking to see what settings
> give
> > > best
> > > > > > results and are accurate.
> > > > > >
> > > > > >
> > > > > > 2007/3/14, Oleg Kobchenko < [EMAIL PROTECTED] >:
> > > > > > >
> > > > > > > The listed image formats should not produce any
> > > > > > > difference since they all are lossless compressions.
> > > > > > > You can verify creating images in different formats,
> > > > > > > loading in J and then subtracting the values.
> > > > > > >
> > > > > > > Regarding image recognition, although the simple difference
> > > minimum
> > > > > > > method may work, it is not very stable and depends on
> > > > > > > accuracy of defining the kernel and the chosen threshold,
> > > > > > > which is different for every instance.
> > > > > > >
> > > > > > > It would be nice to see how other methods fair,
> > > > > > > such as cross-correlation, as listed by Devon McCormick
> > > > > > >
> > > > > > >
> > > http://www.jsoftware.com/pipermail/general/2007-March/029123.html
> > > > > > >
> > > > > > > You can go iteratively, tweaking a working algorithm
> > > > > > > with different ideas to see what's improving.
> > > > > > > For example, I like the idea of normalization (first link)
> > > > > > >
> > >
>
http://www.owlnet.rice.edu/~elec431/projects96/pictomaniacs/previous.html<
>
http://www.owlnet.rice.edu/%7Eelec431/projects96/pictomaniacs/previous.html
> >
> > > > > > > <
>
http://www.owlnet.rice.edu/%7Eelec431/projects96/pictomaniacs/previous.html
> > > >
> > > > > > >
> > > > > > > You can apply it to the method you use now to see if it will
> > > > > > > eliminate the mismatch.
> > > > > > >
> > > > > > >
> > > > > > > --- Bj�rn Helgason < [EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > > When extracting an image to work with from a Dicom file I
> have
> > > three
> > > > > > > options
> > > > > > > >
> > > > > > > > dcm2pnm  -  Convert  DICOM images to PPM/PGM, PNG, TIFF or
> BMP
> > > > > > > >
> > > > > > > >          +obt  --write-24-bit-bmp
> > > > > > > >                  write 24-bit truecolor BMP
> > > > > > > >
> > > > > > > >          +ot   --write-tiff
> > > > > > > >                  write 8-bit (monochrome) or 24-bit
(color)
> > > TIFF
> > > > > > > >
> > > > > > > >          +on   --write-png
> > > > > > > >                  write 8-bit (monochrome) or 24-bit
(color)
> > > PNG
> > > > > > > >
> > > > > > > >
> > > > > > > > I have up to now used bmp and am reasonably happy with the
> > > results.
> > > > > > > >
> > > > > > > > I am wondering if the other forms TIFF or PNG would give
me
> > > better
> > > > > > > results.
> > > > > > > > Would I need different technique to find the object I am
> > > looking for
> > > > > > > in the
> > > > > > > > image?
> > > > > > > >
> > > > > > > > The method Oleg sent in earlier finds the object most of
the
> > > time in
> > > > > > > the BMP
> > > > > > > > images.
> > > > > > > > Actually only found one image so far where it missed the
> > > object and
> > > > > > > gave
> > > > > > > > another fairly similar looking location.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > >
>
____________________________________________________________________________________
> > > > > > >
> > > > > > > We won't tell. Get more on shows you hate to love
> > > > > > > (and love to hate): Yahoo! TV's Guilty Pleasures list.
> > > > > > > http://tv.yahoo.com/collections/265
> > > > > > >
> > >
----------------------------------------------------------------------
> > > > > > >
> > > > > > > For information about J forums see
> > > http://www.jsoftware.com/forums.htm
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Björn Helgason, Verkfræðingur
> > > > > > Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
> > > > > > 801 Grímsnes ,t-póst: [EMAIL PROTECTED]
> > > > > > Skype: gosiminn, gsm: +3546985532
> > > > > > Landslags og skrúðgarðagerð, gröfuþjónusta
> > > > > > http://groups.google.com/group/J-Programming
> > > > > >
> > > > > >
> > > > > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
> > > > > > einfaldleikans
> > > > > >
> > > > > > góður kennari getur stigið á tær án þess að glansinn fari af
> > > skónum
> > > > > >           /|_      .-----------------------------------.
> > > > > >          ,'  .\  /  | Með léttri lund verður        |
> > > > > >      ,--'    _,'   | Dagurinn í dag                     |
> > > > > >     /       /       | Enn betri en gærdagurinn  |
> > > > > >    (   -.  |        `-----------------------------------'
> > > > > >    |     ) |        (\_ _/)
> > > > > >   (`-.  '--.)       (='.'=)
> > > > > >    `. )----'        (")_(")
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Björn Helgason, Verkfræðingur
> > > > > Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
> > > > > 801 Grímsnes ,t-póst: [EMAIL PROTECTED]
> > > > > Skype: gosiminn, gsm: +3546985532
> > > > > Landslags og skrúðgarðagerð, gröfuþjónusta
> > > > > http://groups.google.com/group/J-Programming
> > > > >
> > > > >
> > > > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
> > > einfaldleikans
> > > > >
> > > > > góður kennari getur stigið á tær án þess að glansinn fari af
> skónum
> > > > >           /|_      .-----------------------------------.
> > > > >          ,'  .\  /  | Með léttri lund verður        |
> > > > >      ,--'    _,'   | Dagurinn í dag                     |
> > > > >     /       /       | Enn betri en gærdagurinn  |
> > > > >    (   -.  |        `-----------------------------------'
> > > > >    |     ) |        (\_ _/)
> > > > >   (`-.  '--.)       (='.'=)
> > > > >    `. )----'        (")_(")
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Björn Helgason, Verkfræðingur
> > > > Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
> > > > 801 Grímsnes ,t-póst: [EMAIL PROTECTED]
> > > > Skype: gosiminn, gsm: +3546985532
> > > > Landslags og skrúðgarðagerð, gröfuþjónusta
> > > > http://groups.google.com/group/J-Programming
> > > >
> > > >
> > > > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
> > > einfaldleikans
> > > >
> > > > góður kennari getur stigið á tær án þess að glansinn fari af
skónum
> > > >           /|_      .-----------------------------------.
> > > >          ,'  .\  /  | Með léttri lund verður        |
> > > >      ,--'    _,'   | Dagurinn í dag                     |
> > > >     /       /       | Enn betri en gærdagurinn  |
> > > >    (   -.  |        `-----------------------------------'
> > > >    |     ) |        (\_ _/)
> > > >   (`-.  '--.)       (='.'=)
> > > >    `. )----'        (")_(")
> > > > >
> > >
----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > >
> > >
> > >
> > >
> > >
> > >
>
____________________________________________________________________________________
> > > Be a PS3 game guru.
> > > Get your game face on with the latest PS3 news and previews at
Yahoo!
> > > Games.
> > > http://videogames.yahoo.com/platform?platform=120121
> > >
----------------------------------------------------------------------
> > > For information about J forums see
http://www.jsoftware.com/forums.htm
> > >
> >
> >
> >
> > --
> > Björn Helgason, Verkfræðingur
> > Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
> > 801 Grímsnes ,t-póst: [EMAIL PROTECTED]
> > Skype: gosiminn, gsm: +3546985532
> > Landslags og skrúðgarðagerð, gröfuþjónusta
> > http://groups.google.com/group/J-Programming
> >
> >
> > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
> einfaldleikans
> >
> > góður kennari getur stigið á tær án þess að glansinn fari af skónum
> >           /|_      .-----------------------------------.
> >          ,'  .\  /  | Með léttri lund verður        |
> >      ,--'    _,'   | Dagurinn í dag                     |
> >     /       /       | Enn betri en gærdagurinn  |
> >    (   -.  |        `-----------------------------------'
> >    |     ) |        (\_ _/)
> >   (`-.  '--.)       (='.'=)
> >    `. )----'        (")_(")
> >
>
>
>
> --
> Björn Helgason, Verkfræðingur
> Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
> 801 Grímsnes ,t-póst: [EMAIL PROTECTED]
> Skype: gosiminn, gsm: +3546985532
> Landslags og skrúðgarðagerð, gröfuþjónusta
> http://groups.google.com/group/J-Programming
>
>
> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari
einfaldleikans
>
> góður kennari getur stigið á tær án þess að glansinn fari af skónum
>           /|_      .-----------------------------------.
>          ,'  .\  /  | Með léttri lund verður        |
>      ,--'    _,'   | Dagurinn í dag                     |
>     /       /       | Enn betri en gærdagurinn  |
>    (   -.  |        `-----------------------------------'
>    |     ) |        (\_ _/)
>   (`-.  '--.)       (='.'=)
>    `. )----'        (")_(")
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm




--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127
801 Grímsnes ,t-póst: [EMAIL PROTECTED]
Skype: gosiminn, gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
         /|_      .-----------------------------------.
        ,'  .\  /  | Með léttri lund verður        |
    ,--'    _,'   | Dagurinn í dag                     |
   /       /       | Enn betri en gærdagurinn  |
  (   -.  |        `-----------------------------------'
  |     ) |        (\_ _/)
 (`-.  '--.)       (='.'=)
  `. )----'        (")_(")
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to