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

visualize.FeatureSpace doesn't work well with MNF-transformed data #2

Open
arthur-e opened this issue Mar 20, 2017 · 5 comments
Open

Comments

@arthur-e
Copy link
Owner

Though visualize.FeatureSpace can accept MNF-transformed data (by setting transform=False to indicate the data is already transformed), the resulting plots of the mixing space don't look right... I think that something is going wrong with the indexing (e.g., indexing on m,n axes instead of the p-axis).

@vijai9111995
Copy link

how to get the end members form the mnf transformed data?
the manual: -- https://github.com/arthur-e/unmixing/blob/master/docs/Example_Spatially_Adaptive_Spectral_Mixture_Analysis_SASMA.ipynb gives the data which had already got the endmembers. It will be so much useful if you tell how did you got the end members from the image file in python (spyder environment)

@arthur-e
Copy link
Owner Author

arthur-e commented Oct 7, 2020

Hi @vijai9111995, choosing endmembers is a user-driven, subjective process. There is no single, correct answer, but there are two broad approaches:

  1. Use expert knowledge or independent data to identify the endmembers. This might take the form of a spectral library, perhaps based on samples from a field spectroradiometer (though these are not as reliable as so-called "image endmembers," the spectra taken from the imagery directly). Or, information on large, spectrally "pure" endmember locations might be known in advance.
  2. Use the mixing space, with or without other spectral information, to infer the "image endmembers." These are usually pixels with "extreme" spectral characteristics, e.g., the corners of a simplex fit to the mixing space.

The unmixing library offers tools to help with both approaches. For incorporating expert knowledge, there are tools to convert geographic coordinates to image (row-column) coordinates and visualize the spectra. But the approach best supported here is to infer the endmembers from the mixing space itself.

You should be looking at this demo, on ordinary LSMA, for hints about that. In the section "Visualization of the Mixing Space" you can see plots of the mixing space and a demonstration of the use of Graham's scan algorithm to identify the corners of a convex hull, which are likely to be the corners of the best-fit simplex.

@vijai9111995
Copy link

vijai9111995 commented Oct 8, 2020 via email

@arthur-e
Copy link
Owner Author

arthur-e commented Oct 8, 2020

Hi @vijai9111995, please file a new Issue and include code snippets that show the specific steps you are taking. This Issue (#2), about a specific improvement for the code base.

@vijai9111995
Copy link

vijai9111995 commented Oct 13, 2020 via email

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

No branches or pull requests

2 participants