Thanks again
I have been playing with similar things now since I got the message from
Oleg this morning.
By the way this bmp image I got by using dcmtk toolkit and dcm2pmn to
extract the image from a DICOM file
I used dcm2xml to extract the header info for the same DICOM file
I got a xml file from an instrument used to do measurements and is shown
inside the phantom displayed on the DICOM images
I am going to collect info from all three files to compare times and do some
calculations based on the values gathered.
I am very happy to have all these tools available and it is sure easy to do
this inteactively with J.
I have learned more about all of this in a matter of days - with massive
assistance from the forum also - than I am sure it would have taken doing it
with some other set of tools.
PS: the example you sent is great in addition to the rest
There was a similar problem here as I was seeing earlier with the xml test
scripts
load 'media\image3\view_m'
|file name error: script
| 0!:0 y[4!:55<'y'
You may have done some changes in profile or something but I need to add
addons and .ijs
load '~addons\media\image3\view_m.ijs'
2007/2/22, Cliff Reiter <[EMAIL PROTECTED]>:
Björn,
You shared with me the image privately and I can offer my
first reactions, but this might be a spoiler, so don't
read below if you don't want my knee jerk reaction to the image
you sent.
Best,
Cliff
Björn Helgason wrote:
> I downloaded this just now and paged through the labs.
>
> It looks very nice and very impressive.
>
> I do not much about working with images.
>
> I do have an assignment to work with .bmp images and locate an
> instrument in
> a phantom.
> That is a a transparent phantom with four holes around the edges and one
in
> the center.
> It is round like a clock.
> On the .bmp image I can clearly see the black spot where the instrument
is
> with the phantom white or rather gray around it.
> Around the phantom there is black also.
>
> I have opened it with transform image and viewimage as well as with
> viewbmp
> and it looks ok visually but how to operate on it with programs to find
the
> spots I do not know how to do.
>
> I need to find with J where the phantom is located in the image and then
> find the black spot inside the phantom.
> getting the x,y coordinates of the leftmost, right, top and bottom of
the
> phantom would be ideal and similarly getting the x,y coordinate of the
> black
> spot inside the phantom circle.
>
> Can someone point me in a direction how to perform reading like that
from a
> .bmp image - preferably with with J tools?
>
...
load 'media\image3\view_m'
viewimage_win_mbldown=: 3 : 'smoutput |.2{.". sysdata'
view_image b=:read_image 'temp\testdcm.bmp'
512 512
The image appears to be grayscale, mostly very neutral.
]n=:/:~~.,BW256 i. b
120 123 124 125 126 127 128 129
Yes, just 8 grayscales, very close together
view_image (n i. b){<:32*1+i.8
512 512
Show the distinct grayscales with lots of contrast. (Could also
use colors for even more contrast). Click to get pixel
location of features that interest you.
--
Clifford A. Reiter
Mathematics Department, Lafayette College
Easton, PA 18042 USA, 610-330-5277
http://www.lafayette.edu/~reiterc
----------------------------------------------------------------------
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