polar coordinate in imageannotation
This discussion was imported from CodePlex
BlindMonk wrote at 2013-08-27 15:15:
Hi
I want to display a polar image something like:
Can someone give me some pointers where I can start?
thanks a lot.
I want to display a polar image something like:
Can someone give me some pointers where I can start?
thanks a lot.
objo wrote at 2013-08-27 15:26:
The image drawing is restricted to rectangular shapes.
A custom series is required to render this. You should create an image that covers the sector (the pixels outside the sector should be transparent). For each pixel, calculate the polar coordinates, interpolate the value and set the pixel color by the color axis. This sounds like a fun example - should be added to the example library!
A custom series is required to render this. You should create an image that covers the sector (the pixels outside the sector should be transparent). For each pixel, calculate the polar coordinates, interpolate the value and set the pixel color by the color axis. This sounds like a fun example - should be added to the example library!
BlindMonk wrote at 2013-08-27 16:50:
I am not 100% sure how to do what you said.
I am working on it. Hopefully I will spend enough time to make it work.
Thanks a lot objo for this library. By the way, I hope you checked the bug I posted in imageannotation.
I am working on it. Hopefully I will spend enough time to make it work.
Thanks a lot objo for this library. By the way, I hope you checked the bug I posted in imageannotation.
objo wrote at 2013-08-28 01:53:
See the new 'PolarHeatMapSeries' example (under 'Custom series' in the
example browser). It is not optimized for performance, but hopefully you can use some of it for your own custom implementation.
BlindMonk wrote at 2013-08-29 11:04:
thanks for the example objo.
Interestingly I need x-y coordinates not polar, on the axes. And still no zoom on polar coordinates. I have to zoom since I have too many points and single points are of significant importance for visualization.
I was thinking may be I can make an oxyimage which looks like polar (example) and render it on XY grid.
Interestingly I need x-y coordinates not polar, on the axes. And still no zoom on polar coordinates. I have to zoom since I have too many points and single points are of significant importance for visualization.
I was thinking may be I can make an oxyimage which looks like polar (example) and render it on XY grid.
objo wrote at 2013-08-29 11:40:
It should be possible to do this with one or two extra lines of code - where you transform from the X/Y coordinates to polar coordinates, which are mapped into the data array (I assume your data is in polar form)
objo wrote at 2013-08-29 11:55:
Added a new example. Not optimized for performance.
BlindMonk wrote at 2013-08-29 14:22:
thanks again objo. deeply appreciate.
but it is rather slow. I have to find a way to use an image instead of a series. I will use your tips and try to get it to work. I will keep posted if I need some guidelines.
but it is rather slow. I have to find a way to use an image instead of a series. I will use your tips and try to get it to work. I will keep posted if I need some guidelines.
BlindMonk wrote at 2013-09-06 12:17:
Using writableBitmapex, i can make a polar image, for about 50k polygons it is pretty fast. Each pixel is brawn as a polygon. Working on how to render it with oxyplot.
EDIT:
Cant make polygons with float coordinates. writablebitmapex cant be used. Square one.
EDIT:
Cant make polygons with float coordinates. writablebitmapex cant be used. Square one.
objo wrote at 2013-09-06 21:23:
This was a fun little example to show the functionality of OxyImage and custom series :) I added an ImageSize property to the example series. Set it to >0 and the heat map will be generated at a fixed size, not adjusted to the size of the plot area.
I added some examples with different image sizes under "Custom series" in the example browser.
I added some examples with different image sizes under "Custom series" in the example browser.
BlindMonk wrote at 2013-09-09 15:04:
thanks a lot objo.
BlindMonk wrote at 2013-10-03 14:13:
how do i get image coordinates (in XY) by mouse click??
Customer support service by UserEcho
BlindMonk Could you please post your implementation of PolarHeatMap series? I am also trying to display polar image similar to you.
objo, your implementation shows the grid in polar coordinate. Can we display exactly like what BlindMonk showed in above figure?