Extract(,"positions") will give you an array that contains the coordinates
of the pixels. If you want to do operations on those coordinates, like I
suggested then Mark(,"positions")->Compute, Include, etc.->Unmark.
The easiest/efficient think to try would be something like this
ReadImage
| |
stuff_you_do |
| Translate(,[0,0,-1]) move image as data one unit below the
x-y plane
| |
Collect
|
Image
Karim Nassar <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 08/25/2000
04:25:51 PM
Please respond to [email protected]
Sent by: [EMAIL PROTECTED]
To: OpenDX <[email protected]>
cc:
Subject:
Hi Lloyd
Thank you for your reply to my last email, I just had a couple of questions
more about your email. I actually used C code to extract the geometry from
the image, but I was wondering if I can extract the geometry that I need
directly using DX ( I am sure I can, I just don't know how..)
The other thing is, assuming that I use the translation method i.e perform
the visualization and then place it on top of the original but translated
image, would you be able to give me some more detail about how I can go
about doing that in DX.
Thank you very much in advance
Karim
[EMAIL PROTECTED] wrote:
You can import the image, but then treat the colors or coordinate as data
(e.g., Mark) and do various things as you suggest. You can then Collect the
various visualizations with the original image and then render the result
to have your derived information and the schematic. The downside is that
you will pay a cost for rerendering the image. To avoid the image from
obscuring the geometry you have created, you may wish to displace the image
vertically (e.g., Translate) and/or assigning an opacity less than one
(e.g., Color or Colormap->Color for variable opacity).
Depending on the geometry that you create, you might want to treat the
image as a texture. That would make sense if you generated some sort of
surface from the image. While this could be down as texturemap in hardware
rendering, it may be easier to simply use the colors from the pixels of the
image since you state your derived geometry is from the original image
(e.g., Replace).
Karim Nassar <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 08/22/2000
11:41:41 AM
Please respond to [email protected]
Sent by: [EMAIL PROTECTED]
To: OpenDX <[email protected]>
cc:
Subject: [opendx-users] Placing a plot on an image
Hello Everybody
I am trying to do the following in DX. I have a schematic of a circuit
and I would like to visualize the delays that exist on the wires
connecting
the different components in the circuit. The final product should be
the
schematic image with the wires raised and colored according to the
delay
that exists on them.
I was able to extract the coordinates of the black pixels (the wires of
the
schematic are in black) in the original schematic and I would like to
assign different scalar values (in this case the delays in nano
seconds) to
a certain range of pixel coordinates and then Glyph that scalar value
on
top of the original schematic image.
Now since the the coordinates are of the actual pixels in the picture,
their plot should be able to fit perfectly on top of the image and make
it
seem as a single 3D figure.
Thank you very much in advance for your help and I hope to hear from
you
soon
Karim
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup