Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ds format in GREIT algorithm #6

Open
JeanRintoul opened this issue Apr 12, 2018 · 4 comments
Open

ds format in GREIT algorithm #6

JeanRintoul opened this issue Apr 12, 2018 · 4 comments
Labels

Comments

@JeanRintoul
Copy link
Contributor

JeanRintoul commented Apr 12, 2018

I've noticed that running JAC and Back Projection algorithm result in ds format which can be overlayed on the mesh as shown below:
desired_figure

Is there anyway to obtain ds in GREIT algorithm in the same format to make plotting it consistent across algorithms? Currently it outputs an n by n array.

@JeanRintoul
Copy link
Contributor Author

Also, please let me know if this is your preferred mode of communication, or whether there is a forum or other for comments like this.

@liubenyuan
Copy link
Collaborator

For greit you can use pcolorfast from matplotlib,

# suppose xg, yg are the grids along x- and y- axis, eit_im is the greit image
xv = xg[0]
yv = yg[:, 0]
eit_im = eit_im.reshape(xg.shape)
ax.pcolorfast(xv, yv, eit_im, cmap=your_cmap)

Sure, it's ok to communicate via the issues, currently, we do not have a forum yet.

@JeanRintoul
Copy link
Contributor Author

JeanRintoul commented Apr 12, 2018

Great - that works and should do the trick, although the different format still means different plotting methods need to be used to create a similar plot across algorithms. figure_1 Perhaps this is unavoidable.

@liubenyuan
Copy link
Collaborator

yes. In our group, GREIT has been used for pixel-based image analysis of EIT applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants