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