Questions tagged [remap]

257 questions
1
vote
2 answers

How to Remap a YUY2 image?

I have a distorted image in YUY2 data form, YUY2 comes under the family of YUV 4:2:2 (not 4:2:0). And I have mapx and mapy (height-720, width-1280), which I obtained from cv::fisheye::initUndistortRectifyMap(K, D, cv::Mat::eye(3, 3, CV_64F), new_K,…
Jai
  • 377
  • 2
  • 14
1
vote
1 answer

Remap F1 to ESC (or meta) on 10.15.7 and emacs 27.1

MacBook Pro running 10.15.7. My beloved old external keyboard which emulates an IBM thinkpad (yes, with the pressure stick between g and h!) is starting to go. I have a backup keyboard but alas: ESC is half the size and I keep hitting F1. I wish…
Buzz Moschetti
  • 7,057
  • 3
  • 23
  • 33
1
vote
2 answers

OpenCV: Remap in reverse order

I want to project an image from spherical to cubemap. From what I understood studying maths, I need to create a theta, phi distribution for each pixel and then convert it into cartesian system to get a normalized pixel map. I used the following code…
Cybersupernova
  • 1,833
  • 1
  • 20
  • 37
1
vote
0 answers

Remap one of the two Tilde/swiggly keys to become Right-Shift key

I have purchased a used laptop, Shinelon TN15S (China-based company). The keyboard layout in one glance looks normal, however once I've started using it, there is one major annoyance. This keyboard has two tilde/swiggly keys. The upper-left key is…
1
vote
1 answer

How can I remap broken arrow key via hidutil?

I have the arrow keys of the keyboard broken so I though to use the combination Ctrl + "asdw" instead. As an example, if we want to change the down arrow key, my question is: how can I remap it to Ctrl + s. Through KeyCode I got that Ctrl + s…
1
vote
0 answers

Regridding operations on smaller subsets

I have a NetCDF file, let's say only a portion of South America as shown below. I want to use a cdo operation remapnn to remap the NetCDF file from 0.25x0.25 to 0.05x0.05 resolution. For that I use the code mentioned below, but the results are not…
Ep1c1aN
  • 683
  • 9
  • 25
1
vote
3 answers

Remap rotation matrix to different axis system

I am using an adapted version of android's getRotationMatrix in a c++ program that reads the phone's sensor data over the network and calculates the device's matrix. The function works fine and calculates the device's orientation. Unfortunately,…
Jubei
  • 1,686
  • 1
  • 17
  • 28
1
vote
3 answers

Remap JSON parameter in c#

i have a json string that i want to remap the parameter AOID to BOID { 'ID': '56', 'AOID': 'o747'} ive tried the following but i just got the same output public class CustomContractResolver : DefaultContractResolver { private…
StuartAM
  • 15
  • 3
1
vote
0 answers

Can get specify points' coordinate from output image using OpenCV remap?

I used OpenCV remap function to unwarp an image and I want to crop some specifies field on unwarp image. How can I convert exactly coordinate on origin image to unwarp image? output = cv2.remap(img,xmap,ymap,cv2.INTER_LINEAR)
1
vote
2 answers

Java8 - How to convert a nested maps to list of nested maps gathered by value of inner map's key

I have a nested maps object like below {12345={{"status":"200","outcome":"Success","message":"Account created"}} {23121={{"status":"400","outcome":"Exception","message":"Invalid State…
adbdkb
  • 1,897
  • 6
  • 37
  • 66
1
vote
1 answer

When I load PIV in VIM it ruins my NERDTree and it ruins my leader key

I'm working my way into VIM. I've got Pathogen, NERDTree and snipmate running, now I want to get PIV going. When i throw it into my bundle dir it loads and when i open php files they are folded by default. Great! But Nerdtree loses all it's colors,…
user578994
1
vote
0 answers

Is there a built-in way to remap illegal characters in Samba when sharing with Windows?

I have a samba share set up in ubuntu. Many of the folders and filenames contain : which is an illegal character in Windows. Samba's default action when dealing with illegal characters is to mangle the file/folder name to the old DOS/Win3.1 8.3…
banderon
  • 11
  • 1
1
vote
1 answer

OpenCV: error in resizing video's frame for depthmap

I am performing a depth map with opencv3.4. As I obtained the calibration file, I would like to have the disparity map true 2 stereo cameras. In order to do this i call the calibration file but when i try to resize and remap the video windows, i…
gaetano ma
  • 139
  • 12
1
vote
1 answer

How to use double typed maps for remapping in OpenCV

Problem with cv::remap(): I am using double values for my image coordinates and want to cv::remap() those to create an distorted image. However, OpenCV only allows me to use CV_32FC1 (float) as map type, and not CV_64FC1 (double). Except for…
Dorian
  • 1,439
  • 1
  • 11
  • 26
1
vote
1 answer

how can I have a remap canceled when I switch between file types?

I have edited my .vim/after/ftplugin/html.vim to include inoremap . > inoremap > . The problem is that now when I switch between to my css file the remap still holds. I could (probably) cancel all remaps automatically when I load the css file,…
Yotam
  • 10,295
  • 30
  • 88
  • 128