12 Sep 2011 07:23 PM |
|
Hello, I need some help with displaying vector overlays on an image.
I have an ascii file with 1000 random x,y points which I have loaded via the overlay->vector function.
Example of the file is:-
X Y
6020 5402 1
6282 4255 2
6048 4732 3
5855 2704 4
5670 5169 5
with the last column being a point number.
The file appears to load OK. I can create the .dbf file which contains the full list, but I cannot see any of the vectors(points) showing in the image.
Would anyone know a solution to my problem?
Will this method show each co-ord as one pixel in the image?
I am very new to ENVI, so please excuse me if I am making a simple mistake.
I have tried this on versions 4.2 and 4.7
Thanks
Simon
|
|
|
|
MariM Veteran Member
Posts:2396  
13 Sep 2011 08:29 AM |
|
This behavior will happen if the image and the points are not in the same geographical space. It looks like your points are in x,y which is ok if they are points taken from the image. But are the x,y locations the same samples and lines from the image (i.e. is your image large enough to contain points in those locations)?
|
|
|
|
Deleted User New Member
Posts:  
13 Sep 2011 08:15 PM |
|
Hi Mari, Thanks for replying.
Yes, the points were taken from the image.
What I did was take a study area (subset from roi) from a larger image and then used the pixel locator/Point collector to confirm the bounding X,Y (samples/lines) points of the study area. then generated the random samples in the ascii file. So all points are within the study area (I have even tried using the full image, and still no display).
I am using this method as I could not find a function within ENVI that would generate (and display) a specified number of random pixels within an image. Would you happen to know if a function to do this is available, as it will bypass the need to load a separate file?
Thanks
Simon
|
|
|
|
MariM Veteran Member
Posts:2396  
14 Sep 2011 08:55 AM |
|
There is a generate random sample tool in the Post Classification tools in ENVI. I really don't know why your points would not show up given the information you have provided. I would suggest you contact ITT Technical Support directly about the issue.
|
|
|
|
Deleted User New Member
Posts:  
14 Sep 2011 06:46 PM |
|
Hi Mari,
I even tried loading the points as a shapefile and they wouldn't display!
(Different versions and different pc's).
Thanks for the help. I will contact tech support.
Simon
|
|
|
|