double type in PLY

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

double type in PLY

Yves Daoust
I am reading PLY files. I noticed that the /double/ type is not recognized in
the property fields, while /float/ is. Is this type unsupported ? Is there a
workaround.

ply
format ascii 1.0
element vertex 7339
property double x
property double y
property double z
end_header
...




--
Sent from: http://www.pcl-users.org/
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: double type in PLY

Stephen McDowell
Try “float64”?

I’m looking here:


which is used here:


If “float64” works, this seems to be a bug.  The followup question: are you running on a 64-bit or 32-bit operating system?

If it isn’t working, I don’t know what to say :’(





_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: double type in PLY

Yves Daoust

float64 doesn’t work either. float and float32 do.

 

System bitness should’t be relevant, doubles have existed forever.

 

The problem seems to be on another level, as the error message “Failed to find match for field …“ cannot be found in these sources.

 

From: PCL-users [mailto:[hidden email]] On Behalf Of Stephen McDowell
Sent: Wednesday, February 7, 2018 12:04 PM
To: Point Cloud Library (PCL) users <[hidden email]>
Subject: Re: [PCL-users] double type in PLY

 

Try “float64”?

 

I’m looking here:

 

 

which is used here:

 

 

If “float64” works, this seems to be a bug.  The followup question: are you running on a 64-bit or 32-bit operating system?

 

If it isn’t working, I don’t know what to say :’(

 

 

 

 

 

Virus-free. www.avg.com

 


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: double type in PLY

Yves Daoust
In reply to this post by Stephen McDowell

But thanks anyway.

 

From: Yves Gmail [mailto:[hidden email]]
Sent: Wednesday, February 7, 2018 12:32 PM
To: 'Point Cloud Library (PCL) users' <[hidden email]>
Subject: RE: [PCL-users] double type in PLY

 

float64 doesn’t work either. float and float32 do.

 

System bitness should’t be relevant, doubles have existed forever.

 

The problem seems to be on another level, as the error message “Failed to find match for field …“ cannot be found in these sources.

 

From: PCL-users [[hidden email]] On Behalf Of Stephen McDowell
Sent: Wednesday, February 7, 2018 12:04 PM
To: Point Cloud Library (PCL) users <[hidden email]>
Subject: Re: [PCL-users] double type in PLY

 

Try “float64”?

 

I’m looking here:

 

 

which is used here:

 

 

If “float64” works, this seems to be a bug.  The followup question: are you running on a 64-bit or 32-bit operating system?

 

If it isn’t working, I don’t know what to say :’(

 

 

 

 

 

Virus-free. www.avg.com

 


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: double type in PLY

Stephen McDowell
In reply to this post by Yves Daoust
bummer.  hopefully somebody else knows more, posting the full error message would be helpful (if there is more than the previous post).

there’s a typedef of double to float64, which isn’t guaranteed. but it’s way too late / early, and i got that mixed up with the 32 vs 64 integer / long issues.  sorry x0
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: double type in PLY

Sérgio Agostinho
Have a look at

https://github.com/PointCloudLibrary/pcl/issues/1953

I'm not fully sure if the logic also applicable to the ply reader but
give it a try.

Cheers



_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: double type in PLY

Yves Daoust
Sérgio,

Yep, this is likely:

"The issue comes from the fact that you're trying to store double precision coordinate data in the normal point types defined by PCL which all have single precision float as coordinates. That's why it complains it can't find a match for the field and it won't store your coordinates properly."

A more explicit error message would habe been helpful.

I will stick to my workaround of editing the file, then.

Cheers.

-----Original Message-----
From: PCL-users [mailto:[hidden email]] On Behalf Of Sérgio Agostinho
Sent: Wednesday, February 7, 2018 1:00 PM
To: [hidden email]
Subject: Re: [PCL-users] double type in PLY

Have a look at

https://github.com/PointCloudLibrary/pcl/issues/1953

I'm not fully sure if the logic also applicable to the ply reader but give it a try.

Cheers



_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: double type in PLY

Sérgio Agostinho
> createNeighboursIndices

Undoubtedly. I'm always hoping that obstacles of this nature motivate
users to submit corrections to the repo, to prevent others from bumping
into the same problems.


Cheers




_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

signature.asc (836 bytes) Download Attachment