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
Image is wrongly formed #25
Comments
Yes, I saw the problem. I'll PR the fix soon. Meantime, you can patch your code. Add the missing image.step on line 155, like:
This should fix the problem, but tell me if not. |
Awesome thanks :D |
By the way, is the rgb_data image topic rectified? And if not, what do I need to do to rectify it? |
Nope, afaik. But another softkinetic user send me this version of the code including calibration.
You need to change 'file:///home/haduong/calib/senz3d.yaml' (line 659). Please report any feedback about using it, so we can incorporate your experiences on the "official code" |
Sweet thanks - that's so helpful! Would they mind if I pushed their code to my fork? Or do they already have one? (So other people collaborating with me can easily access it) |
I assume it's not a problem. That's mostly an experiment to use the senz3d 2014-08-25 8:51 GMT+02:00 Jamie Diprose notifications@github.com:
|
Cool thanks :) Is your calibration file for a Creative Senze3D, or another Softkinetic product? And where is it? |
Actually dw, I found it in the workspace |
Thanks, I was wondering how the actual rectification was done :) If I want to project an image point (u,v) into the world that doesn't have a corresponding point in the point cloud, assuming I know the points depth, do I need to work from the rectified image or is rgb_data fine? I notice that corot doesn't seem to rectify the image when mapping the image to points in the point cloud (correct me if I'm wrong), (from line 206 here: https://github.com/corot/softkinetic/blob/indigo-devel/softkinetic_camera/src/softkinetic_start.cpp). So I assume that I can just use rgb_data... I was thinking of using the equation: |
@jdddog: this is starting to turn into a forum thread. I think it'd be better if you created a question on ROS answers. |
Haha ok, I've created a question :) |
Also solved on indigo |
Is this still a problem on ROS Kinetic with the cv_bridge::CvImage function toImageMsg()? I had this show up today when I'm trying to convert a .jpg file into the ROS pipeline through an intermediate cv::imread. If it's useful, I could paste snippets of my code here. |
This seems to cause the following issue For context I am trying to convert a depth image of encoding |
When I subscribe to the softkinetic camera's image topic I try to copy the image message with OpenCV and get an error (see below). This same code works for normal webcams.
cv_bridge::CvImagePtr cv_ptr = cv_bridge::toCvCopy(image_msg, sensor_msgs::image_encodings::BGR8);
I get this error:
terminate called after throwing an instance of 'cv_bridge::Exception'
what(): Image is wrongly formed: step < width * byte_depth * num_channels or 0 != 1280 * 1 * 3
Any ideas?
The text was updated successfully, but these errors were encountered: