comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Hi
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Hi [message #19306] Thu, 09 March 2000 00:00
Hamid Kohen is currently offline  Hamid Kohen
Messages: 5
Registered: March 2000
Junior Member
Does anyone know why the lookup command code that I have written here
does not work?

pro kohen_algorithm

envi_select, title='Choose a Bio-Image-Cube',fid=fid,dims=dims,pos=pos
; Output directly path is currently at J:\..\..\cancer\
envi_file_query, fid, data_type=data_type, ns=ns, nb=nb, nl=nl,
fname=fname



;Set up the variables needed as input to the classification
envi_stats_doit, comp_flag=0, fid=fid, dims=dims, $
pos=pos, stdv=stdv, mean=mean


kmeans_out_name="j:\users\kohen\cancer\simulation\kmeans_out " + ".dat"
num_classes=5

class_names=strarr(num_classes+1)
for i=1,num_classes do class_names[i]="class"+strtrim(i,2)
class_names = ["Unclassified", "Glass", "Cell Walls", "Nuclei",
"Cytoplasm", "Stroma Blood V"]
lookup = [[0,0,0],
[255,255,255],[0,0,255],[255,0,0],[0,255,0],[0,125,125]]

;run the classification
envi_check_save, /classification
class_doit, fid=fid, pos=pos, dims=dims, out_name=kmeans_out_name, $
method=7, r_fid=c_fid, mean=mean, $
out_bname="Kohonen Classifier", iterations=1, change_thresh=0.1, $
num_classes=num_classes, lookup=lookup,stdv=stdv, in_memory=0, $
class_names=class_names, Thresh = ((total(mean)) / nbands) * 1.958
;;; this value should be set by u
;; ENVI_EXIT
print, " This is has completed is task "
end
[Message index]
 
Read Message
Previous Topic: Unsupervised Classification routines?
Next Topic: Converting 8-bit image + pallete to 24 bit image with alpha channel

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:15:38 PDT 2025

Total time taken to generate the page: 0.48007 seconds