Coder Social home page Coder Social logo

Comments (9)

jefferis avatar jefferis commented on July 27, 2024

@Robbie1977 commented:

I'm not sure why we went for the inflation rather than resolving the size (may have been a wlz issue in earlier versions) as TAG is handled ok on http://vfbsandbox.inf.ed.ac.uk/site/stacks/tg.htm see https://github.com/VirtualFlyBrain/VFB/blob/Sandbox-Server/data/flybrain/tg/tiledImageModelData.jso as apposed to https://github.com/VirtualFlyBrain/VFB/blob/Dev-Server/data/flybrain/main/tiledImageModelData.jso for the main brain.

The only issue with deflating will be this having to be done to all wlz data files - which can be done but is not a quick job.

from vfb.

jefferis avatar jefferis commented on July 27, 2024

Thanks @Robbie1977!

Looking at:

https://github.com/VirtualFlyBrain/VFB/blob/Sandbox-Server/data/flybrain/tg/tiledImageModelData.jso#L36

I don't fully understand the pixel size, which appears to be

{"x":"0.4612588", "y":"0.4612588", "z":"0.46", "units":["\u03BC\u006D", "\u03BC\u006D", "\u03BC\u006D"]}

My understanding (confirmed once by Arnim Jenett) was that the JFRC template brain (which has always been released uncalibrated, more recently with correction factor of 1.47 for the refractive index mismatch due to the 20x air objective used for imaging) originally had exactly the same spatial calibration as all the other FlyLight images, which have voxel size (0.622088, 0.622088, 1) and was then made isotropic by interpolating in Z to give (0.622088, 0.622088, 0.622088). So I am not sure where the 0.46 comes from. Any ideas @dosumis?

from vfb.

Robbie1977 avatar Robbie1977 commented on July 27, 2024

Those sizes are for the TAG template that is 0.46~ isotopic.

Regards,

Rob Court

On 8 Mar 2014, at 23:55, jefferis [email protected] wrote:

Thanks @Robbie1977 https://github.com/Robbie1977!

Looking at:

https://github.com/VirtualFlyBrain/VFB/blob/Sandbox-Server/data/flybrain/tg/tiledImageModelData.jso#L36

I don't fully understand the pixel size, which appears to be

{"x":"0.4612588", "y":"0.4612588", "z":"0.46",
"units":["\u03BC\u006D", "\u03BC\u006D", "\u03BC\u006D"]}

My understanding (confirmed once by Arnim Jenett) was that the JFRC
template brain (which has always been released uncalibrated, more recently
with correction factor of 1.47 for the refractive index mismatch due to the
20x air objective used for imaging) originally had exactly the same spatial
calibration as all the other FlyLight images, which have voxel size
(0.622088, 0.622088, 1) and were then made isotropic by interpolating in Z
to give (0.622088, 0.622088, 0.622088). So I am not sure where the 0.46
comes from. Any ideas @dosumis https://github.com/dosumis?

Reply to this email directly or view it on
GitHubhttps://github.com//issues/61#issuecomment-37113885
.

from vfb.

dosumis avatar dosumis commented on July 27, 2024

No idea I'm afraid. Would have been handled by NM. You could try asking him.

from vfb.

jefferis avatar jefferis commented on July 27, 2024

Apologies both – that was stupid. Lucky I was just commenting not coding at midnight.

Anyway the problem remains that the template brain is incorrectly physically calibrated (i.e. 1µm not 0.622µm voxels) and has an inappropriately inflated number of Z slices – I presume as a sort of poor man's fix for the refractive index mismatch correction . My feeling is that the longer we delay any fix the more painful it will be and the extra Z slices make navigation more painful, but of course 1) there is no real use made of the spatial calibration in the viewer at the moment and 2) I won't be the one making that particular fix.

from vfb.

Robbie1977 avatar Robbie1977 commented on July 27, 2024

I’ve got a question outstanding with Bill Hill asking if the system had/has an issue with uneven voxel size, so when we know for definite we could look at a plan to resize however as you say it’s not an urgent matter and I’d also like to standardise our 3rd party image storage to make it straightforward and see if we can save some space. Worth mentioning reducing the Z count may also save us considerable space over the whole set.

Regards,

Rob

On 9 Mar 2014, at 21:58, jefferis [email protected] wrote:

Apologies both – that was stupid. Lucky I was just commenting not coding at midnight.

Anyway the problem remains that the template brain is incorrectly physically calibrated (i.e. 1µm not 0.622µm voxels) and has an inappropriately inflated number of Z slices – I presume as a sort of poor man's fix for the refractive index mismatch correction . My feeling is that the longer we delay any fix the more painful it will be and the extra Z slices make navigation more painful, but of course 1) there is no real use made of the spatial calibration in the viewer at the moment and 2) I won't be the one making that particular fix.


Reply to this email directly or view it on GitHub.

from vfb.

Robbie1977 avatar Robbie1977 commented on July 27, 2024

FYI this is the response from Bill Hill:
Yes, objects with non-cubic voxel size set should work.

The voxel size encoding in a Woolz object is relative and
doesn't have any units, ie they could be \mu or km. We frequently
use non-cubic voxels, often 4,4,7, as in EMA27:

http://www.emouseatlas.org/eAtlasViewer_ema/application/ema/anatomy/EMA27.php

prompt% WlzFacts EMA27_3D_orig.wlz

Object type: WLZ_3D_DOMAINOBJ.
Linkcount: 0.
Domain type: WLZ_PLANEDOMAIN_DOMAIN.
Linkcount: 1.
Domain plane bounds: 0 305
Domain line bounds: 51 223
Domain column bounds: 60 380
VoxelSize: 4 4 7
Values type: WLZ_VOXELVALUETABLE_GREY.
Linkcount: 1.
Background type: WLZ_GREY_UBYTE.
Background value: 255.
Values plane bounds: 0 305
Property list NULL.

When you cut a section through an object with non-cubic voxels
using wlziip you get back an image cut using normalized voxel
scaling, eg for 4,4,7 it's 1,1,1.75 (with 1.75 = 7 / 4). I
think the javascript client also queries wlziip for the voxel
size and knowing that we use \mu for the units, this lets us
report true measurement distances by simply multiplying the
distance by 4 and scale factor in the javascript client.

The distance slider will probably report the normalized voxel
distance as in the EMA27 case where z runs from -268 - 266,
int((268 + 266 + 1) / 1.75) = 306 (== Domain plane bounds: 0
305). Maybe it's the interpretation of these distances which is
giving the impression that the stack is being rescaled? You
should be able to check this easily using WlzFacts.

from vfb.

Robbie1977 avatar Robbie1977 commented on July 27, 2024

Will have to change on mass - propose to delay this until the main system is pushed and stable

from vfb.

Robbie1977 avatar Robbie1977 commented on July 27, 2024

All updated a while ago during data restore.

from vfb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.