2020-02-18 08:39:41 -0600 | marked best answer | Add padding to object in 4-channel image Hi all, I have a 4-channel image (.png, .tif) like this one: And I would like to add padding of type I can add certain padding if I split the image in bgr + alpha and apply Is there any way to perform a selective |
2020-02-03 10:23:14 -0600 | received badge | ● Famous Question (source) |
2019-04-21 07:32:09 -0600 | received badge | ● Popular Question (source) |
2017-12-15 12:03:31 -0600 | commented answer | Convert Cubemap pixel coordinates to equivalents in Equirectangular So the steps are first normalizing to unit vectors, then converting to polar coordinates and finally converting back to |
2017-12-15 12:01:51 -0600 | commented answer | Convert Cubemap pixel coordinates to equivalents in Equirectangular So the steps are first normalizing to unit vectors, then converting to polar coordinates and finally converting back to |
2017-12-15 11:54:02 -0600 | marked best answer | Convert Cubemap pixel coordinates to equivalents in Equirectangular I have a set of coordinates of a 6-image Cubemap (Front, Back, Left, Right, Top, Bottom) as follows: Each image is 500x500p, being [0, 0] the top-left corner. I want to convert these coordinates to their equivalents in equirectangular, for a 2500x1250p image. I don't need to convert the whole image, just the set of coordinates. Is there any straight-forward conversion for a specific pixel? EDIT: First of all, I want to insist on the fact that I don't have any image available, neither the 6 input images from the cubemap, nor the output equirectangular pano. What I have available is a set of pixel coordinates from 6 images that shape a skybox cubemap. I add a graphic example using 250x250p images: Front image: Right image: And so on for the other 4 images (Back, Left, Top, Bottom). I have set in red some points, these points will be my input. Those points would have their equivalents in an equirectangular panorama: I have used a 1000x500p pano in this case. So the input is the pixel coordinates [x,y] of the red points in the cubemap, together with the image they belong to. The [0,0] pixel is the top-left corner of each image: And the output I want to obtain is the pixel coordinates of the red points in the equirectangular panorama: I would like to know how to map from one set of coordinates to the other: |
2017-12-15 05:56:09 -0600 | edited question | Convert Cubemap pixel coordinates to equivalents in Equirectangular Convert Cubemap pixel coordinates to equivalents in Equirectangular I have a set of coordinates of a 6-image Cubemap (Fr |
2017-12-15 05:35:03 -0600 | edited question | Convert Cubemap pixel coordinates to equivalents in Equirectangular Convert Cubemap coordinates to equivalents in Equirectangular I have a set of coordinates of a 6-image Cubemap (Front, B |
2017-12-15 04:09:37 -0600 | edited question | Convert Cubemap pixel coordinates to equivalents in Equirectangular Convert Cubemap coordinates to equivalents in Equirectangular I have a set of coordinates of a 6-image Cubemap (Front, B |
2017-12-15 04:08:23 -0600 | edited question | Convert Cubemap pixel coordinates to equivalents in Equirectangular Convert Cubemap coordinates to equivalents in Equirectangular I have a set of coordinates of a 6-image Cubemap (Front, B |
2017-12-15 04:06:48 -0600 | edited question | Convert Cubemap pixel coordinates to equivalents in Equirectangular Convert Cubemap coordinates to equivalents in Equirectangular I have a set of coordinates of a 6-image Cubemap (Front, B |
2017-12-15 04:05:19 -0600 | commented question | Convert Cubemap pixel coordinates to equivalents in Equirectangular @berak I've just edited the question. Hope it is clear now for you. |
2017-12-15 04:04:15 -0600 | edited question | Convert Cubemap pixel coordinates to equivalents in Equirectangular Convert Cubemap coordinates to equivalents in Equirectangular I have a set of coordinates of a 6-image Cubemap (Front, B |
2017-12-15 02:12:25 -0600 | commented question | Convert Cubemap pixel coordinates to equivalents in Equirectangular @berak I don't get any coordinates, I obtain them from the output of another algorithm. Ok, I thought I was being pretty |
2017-12-15 02:04:06 -0600 | commented question | Convert Cubemap pixel coordinates to equivalents in Equirectangular @berak I don't get any coordinates, I'm being provided by them. Ok, I thought I was being pretty clear, but I'll edit th |
2017-12-14 13:10:21 -0600 | commented question | Convert Cubemap pixel coordinates to equivalents in Equirectangular @berak That's a script I am getting as input. It does make sense, e.g.: "[160, 314], Front" means the pixel x=160, y=314 |
2017-12-14 12:53:25 -0600 | edited question | Convert Cubemap pixel coordinates to equivalents in Equirectangular Convert Cubemap coordinates to equivalents in Equirectangular I have a set of coordinates of a 6-image Cubemap (Front, B |
2017-12-14 12:41:06 -0600 | commented question | Convert Cubemap pixel coordinates to equivalents in Equirectangular @berak That's the point, I don't have the images. I explained it up above, I have a set of [x,y] pixel coordinates, comi |
2017-12-14 12:40:29 -0600 | commented question | Convert Cubemap pixel coordinates to equivalents in Equirectangular That's the point, I don't have the images. I explained it up above, I have a set of [x,y] pixel coordinates, coming from |
2017-12-14 12:17:40 -0600 | asked a question | Convert Cubemap pixel coordinates to equivalents in Equirectangular Convert Cubemap coordinates to equivalents in Equirectangular I have a set of coordinates of a 6-image Cubemap (Front, B |
2017-07-26 05:05:57 -0600 | received badge | ● Notable Question (source) |
2017-02-15 05:36:32 -0600 | received badge | ● Popular Question (source) |
2016-10-28 07:34:41 -0600 | commented question | Generate circle from array of pixels Thanks, I've fixed it tuning a bit the solution of that post. |
2016-10-28 06:02:38 -0600 | asked a question | Generate circle from array of pixels Hi, I have an array of pixels (100x1 Mat) and I would like to rotate it to generate a circle of radius = lenght of image, extending the values into any other direction (0-360ยบ). i.e. I want to go from this: to this: . Any idea about how to address this issue? |
2016-09-16 03:09:05 -0600 | commented answer | features2d - xfeatures2d - nonfree differences in OpenCV 3.1.0 Sure, the macro should be added to more nonfree algorithms. I'll try to contribute when I have a free spot. Thanks for your answer, now the setup is clear for me. |
2016-09-16 02:01:54 -0600 | asked a question | features2d - xfeatures2d - nonfree differences in OpenCV 3.1.0 Hi, I would like to know why keypoint detectors/feature descriptors are organized in this way. My first thought is that features2d.hpp are basic classes, xfeatures2d.hpp are extra classes and nonfree.hpp are classes that are not free for commercial use (SIFT,SURF). But if this is the case, shouldn't DAISY (e.g.) be in nonfree.hpp since it's patented too? Is any special license issue the reason to move some classes to opencv_contrib (xfeatures2D), or just a matter of having them as an extra module? If so, why concretely those features and why xfeatures is including nonfree algorithms? |
2016-09-08 03:13:22 -0600 | commented answer | Blending artifacts in OpenCV image stitching |
2016-07-15 11:28:36 -0600 | marked best answer | Blending artifacts in OpenCV image stitching Hi there, I am using OpenCV to blend a set of pre-warped images. As input I have some 4-channel images (*.png or *.tif) from where I can extract a bgr image and an alpha mask with the region related to the image (white) and the background (black). Both image and mask are the inputs of the Blender module When I use feather (alpha) blending the result is ok, however, I would like to avoid ghosting effects. When I use multi-band, some artifacts are appearing on the edges of the images: The problem is similar to the one raised here, and solved here. The thing is, if the solution is creating a binary mask (that I already extract from the alpha channel), it does not work for me. If I add padding to the ovelap between both images, it takes pixels from the background and messes up the result even more. I guess that probably it has to do with the functions When I use another implementation of multiresolution blending, it works perfectly, however, I am very interested in integrating the multi-band implementation of OpenCV. Any idea of how to fix this issue? |
2016-06-30 08:28:16 -0600 | marked best answer | Lens distortion parameters a,b,c to k1,k2,p1,p2... Hi there, I've used ImageMagick to calibrate my camera and obtain the a,b,c lens distortion parameters. How do I convert these a,b,c parameters to OpenCV style (k1,k2,p1,p2...)? |
2016-06-30 08:28:16 -0600 | received badge | ● Self-Learner (source) |
2016-06-30 07:03:30 -0600 | commented question | Feature descriptor resistant to barrel distortion? Yeah the main problem is that sets of extracted keypoints are way different between images due to radial distortion. Different keypoints may have similar local descriptors, and that's why the number of bad matches is high in my case. I've tried several keypoint detector/feature descriptor combinations with different parameter setups and got no success. I'll have a look to that paper, though. Thanks. |