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

BVV annotation views support in timelapse data #1201

Open
ekatrukha opened this issue Dec 13, 2024 · 6 comments
Open

BVV annotation views support in timelapse data #1201

ekatrukha opened this issue Dec 13, 2024 · 6 comments
Assignees

Comments

@ekatrukha
Copy link
Collaborator

Hello @tischi,

I am now trying to adapt BVV to display timeseries,
using this intro and example data there.
I think the data loading is ok.
Now I am trying to fix annotations.
So now the main problem is that for the estimation of LUT size
I use int nAnnotationsNumber, estimated here.
But I think it gives me the total annotation number per all timepoints, while (I think) I need one per current timepoint.
What would be a proper/workable way to get it?

@ekatrukha
Copy link
Collaborator Author

I've added a "hacked" solution, but it works

static int numberOfAnnotationsPerTimepoint(final AnnotationAdapter< Annotation > annotationAdapter, final int timePoint, String imageName)
{
	int n = 1;
	while(annotationAdapter.getAnnotation( imageName, timePoint, n ) != null)
	{
		n++;
	}
	return n-1;
}

Maybe next week you will have time to take a look and make it better,
because now it (logically) throws out an error about the annotation label number being absent.

BTW, there is a nice trick to see labels/annotations/volumes the same way as in BDV:
in the BVV settings, put Clip distance near parameter to 0.
Then in BVV when you press D for view sync, the first "cut" plane should look the same in both viewers.

Enjoy your weekend!

@ekatrukha
Copy link
Collaborator Author

That arabidopsis timelapse dataset is very pretty browsing in 3D and time!
I cannot wait to add an animation panel,
so one can generate nice movies.

@tischi
Copy link
Contributor

tischi commented Dec 16, 2024

Hi @ekatrukha,

For releasing BVV with MoBIE; should we first fix this or could we release "as is".

@tischi
Copy link
Contributor

tischi commented Dec 16, 2024

...and could you let me know how to open the "arabidopsis timelapse"?

@ekatrukha
Copy link
Collaborator Author

@tischi
Copy link
Contributor

tischi commented Dec 16, 2024

Hi,

I had a brief look and I cannot come up with something better right now.

We had very few time-lapse use-cases so far, thus the current support might be buggy and the APIs not very convenient.

Let's leave this open and I can maybe work on it more later...

@tischi tischi self-assigned this Dec 16, 2024
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