Giter Club home page Giter Club logo

Comments (4)

by256 avatar by256 commented on June 4, 2024

Hi Alissa,

Sorry for the delayed response. The size of the example image in the imagedataextractor repository is 887x909. From the ImageJ example you posted, your image seems to be around half this size (492x480). This may explain the discrepancy you're seeing.

from imagedataextractor.

alissa777 avatar alissa777 commented on June 4, 2024

Hi
Thank you so much for replying me.
I found that issue as well and the actual pixel is 127. However I tried to type nm/pixel for example 200/127. And I still got different results.

Last time you said that change these two line:
Conversion= nm / pixel
and
size = size *conversion

I wonder is that correct?
Thank you and take care!

Alissa

33A82C94-7AF1-40A4-8576-9E77A2118BFB
E836F6B7-6559-4733-BA3B-8774DC79E007

from imagedataextractor.

by256 avatar by256 commented on June 4, 2024

Sorry for the confusion that the API is causing. When conversions are calculated automatically by imagedataextractor, they are returned in units of pixels / meters. This is why we divide by the conversion in the example notebook to obtain the results in meters or nanometers.

If you calculated the conversion manually in units of nanometers / pixel for example, then you would need to multiply by this value to obtain the result in nanometers.

Both ways are correct. I understand that this can cause confusion, so I may work on making this more clear in the API.

from imagedataextractor.

wzy283 avatar wzy283 commented on June 4, 2024

Hi Batuhan,

I am confused by the same question as Alissa.

As you can see below, in the example image of size 887*909, 200nm can be converted to 127 pixels by Image J. Then I calculated the conversion manually in units of nanometers / pixels and multiplied by this value to get the result in nanometers, it output the average particle area is 1600.103 nm^2 which is much larger than the result of 647.872 shown in the example.

However, when I changed the conversion to pixels / nanometers, the output was pretty much as expected. I think it is a little bit tricky.

I am wondering if my code was wrong or I misunderstood your advice.

Looking forward to your reply. Have a lovely weekend.

Zeyu

截屏2021-07-10 01 07 26
截屏2021-07-10 01 17 54
截屏2021-07-10 01 20 10

from imagedataextractor.

Related Issues (13)

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.