Questions tagged [remap]

257 questions
2
votes
1 answer

Matlab Interp2 function behaviour differently compared with OpenCV Remap

I am trying to look for an equivalent OpenCV function for interp2 and I refer to this poster to use remap function in OpenCV. cv::remap (in opencv) and interp2 (matlab) However, I realized that there is a significant difference of the output…
SimaGuanxing
  • 673
  • 2
  • 10
  • 29
2
votes
1 answer

Farneback optical flow - dealing with pixels out of view, pixels with wrong flow result, different size image

I am writing my thesis and one part of the task is to interpolate between images to create intermediate images. The work has to be done in c++ using openCV 2.4.13. The best solution I've found so far is computing optical flow and remapping. But this…
Zane Zake
  • 21
  • 5
2
votes
1 answer

remap scrambled PDF characters to readable text

I do have a problem due to cups-PDF creating PDF documents where characters are mapped to strange symbols [on Ubuntu Linux 14.04 and 16.04}. I think its some kind of unicode even if Python is telling me its string type. type(object) python returns…
Mister Wong
  • 53
  • 2
  • 4
2
votes
1 answer

How do I design my software for remappable short-cut keys?

I've just started on a GUI application which will feature several distinct modes and a large number of keyboard shortcuts. Ideally I'd like to support letting the user remap these, like in eclipse. What is - if any - the standard solution to this…
Per Fagrell
  • 835
  • 7
  • 15
2
votes
3 answers

Can I get the point position using remap in OpenCV

I have taken a photo A using an RGB camera. And I know the position of a point g in photo A. The camera needs to do a camera calibration. Now I want to know the position of point g after calibration. I am using the code as following, but I want to…
kookoo121
  • 1,116
  • 2
  • 12
  • 21
2
votes
1 answer

Remap one of the keyboards

I have a notebook which sometimes I use with an external keyboard. Its built-in keyboard has some keys which I'd like to remap, however, I don't want to make any changes to the external keyboard. I am aware of this question from 2012, but I'd like…
bmv
  • 184
  • 2
  • 10
2
votes
1 answer

Color Remapping - Matching target palette using a 3D grid?

Let's say I have color 'FOO', and it is stored in RGB format. I need to recolor 'FOO' so it matches the closest color in a list of colors. Doing this on the fly, couldn't I view the RGB values from each color as points on a 3D grid (r=x, g=y, b=z)…
Jeffrey Kern
  • 2,024
  • 20
  • 40
2
votes
1 answer

Controlling joystick axes using AutoHotkey

I will be getting a flight stick for Kerbal Space Program soon and was hoping to AHK-ify it, like every other peripheral I use on my computer. I know how to remap the joystick buttons, and how to get readings for the axes of the flight stick and…
Hactar
  • 153
  • 1
  • 10
2
votes
9 answers

When using Emacs do you rebind caps-lock to CTRL?

This question is, as indicated, for those who use Emacs. When you do, do you rebind the caps-lock key to CTRL, or do you use the "normal" ctrl key? I've recently learned some Emacs commands and was using the Visual Studio 2008 emacs commands for a…
Wayne Werner
  • 49,299
  • 29
  • 200
  • 290
2
votes
2 answers

autohotkey caps lock to ctrl not releasing

I'm using AutoHotkey to map the Caps Lock to Ctrl, and trying to use the Ctrl + K as Tab in Total Commander. SetCapsLockState AlwaysOff Capslock::Ctrl #ifWinActive ahk_class TTOTAL_CMD ^k::Send, {Tab} #ifWinActive When i using the Ctrl + K remap…
bimlas
  • 2,359
  • 1
  • 21
  • 29
2
votes
2 answers

Remapping a key to Doesn't Work in Command Mode

I'm having some trouble successfully remapping a key to . I have tried this with multiple characters, so let's say I want to remap 1 to . In my .vimrc file, I added the following line: noremap! 1 This works fine for exiting insert…
Phro
  • 375
  • 2
  • 11
2
votes
2 answers

Basic remapping in vim

I still cannot for the life of me understand remapping keys in Vim. I have the following in my vimrc " This works nnoremap h nnoremap j nnoremap k nnoremap l " But this doesn't? nnoremap > "…
Hugo
  • 2,186
  • 8
  • 28
  • 44
2
votes
1 answer

opencv::remap() How to remap an Image to another Image with different size

Now I have Image A and I want to remap it to Image B which has a different size than Image A. For each pixel coordinate (x, y), it has the coordinate (r, theta) on image B. Can any one tell me how to realize it, preferably with sample code? Because…
user3384116
  • 61
  • 3
  • 9
2
votes
1 answer

remap irregular to regular grid

I'm using the remap function to map a irregular grid( 650 xyz-coordinates ) to a regular one ( 160x160 points from -5....5 step 1/160) but I can't seem to get it working. By the way the interpolation that I use is bicubic. Can someone please tell me…
xyfix
  • 61
  • 1
  • 7
2
votes
3 answers

Prevent user pressing f5 button in pop up window

I want to prevent users from pressing the F5 button because of running exam test in my project. If I use a normal browser window, my code works fine, but now I want to use it in a popup windows - in the popup windows my code is not working. My code…