Questions tagged [remap]
257 questions
3
votes
3 answers
Jumping from one firmware to another in MCU internal FLASH
I am currently working on a bootloader firmware application targeted to STM32F030C8. I specified in my scatter file that the bootloader app will occupy main memory location 0x08000000 to 0x08002FFF (sector 0 to sector 2). I also wrote a main…

user3065932
- 93
- 1
- 2
- 9
3
votes
1 answer
Two separate keyboards, two separate spacebars
Basically I've used 2 keyboards for a very long time for the sake of personal convenience, but now there's something that's really bugging me. I'd like to remap the spacebar on my second keyboard to w/e so that I can play a particular game with two…

user2444090
- 31
- 5
3
votes
3 answers
How to remap a c header file
I am troubling myself with the following.
I have a file foo.c
that includes foo.h and does some stuff.
The tricky thing is this one. I would like to remap foo.h to my_foo.h. So when the compiler sees foo.h it should go to my_foo.h.
One thing that…

Bob
- 31
- 1
2
votes
2 answers
Remapping Emacs Commands
I want to remap forward-sexp to matlab-forward-sexp in matlab-mode.
Currently I do this:
(define-key matlab-mode-map [remap forward-sexp] 'matlab-forward-sexp-safe)
but when I type M-x forward-sexp in matlab-mode I still get the old behaviour. Why?…

Nordlöw
- 11,838
- 10
- 52
- 99
2
votes
2 answers
Autohotkey: Send mouse-click (or key-press) without triggering handler
I have an AutoHotkey script in which the left-mouse-button is mapped to a function. Part of the function includes simulating a left-button click offset from the actual cursor position. Not surprisingly, this ends up becoming a bit of an infinite…

Synetech
- 9,643
- 9
- 64
- 96
2
votes
1 answer
Why cv::cuda::remap wrong while cv::remap right?
I use cv::cuda::remap instead of cv::remap to take advantage of CUDA acceleration to speed up video undistortion. Both versions of the program can run normally, but, while the camera matrix, distortion coefficients, map1 and map2 which come from…

Sang
- 141
- 11
2
votes
1 answer
Is there a way to copy a selected area up or down in vim?
In VSCode you can copy and paste selected lines of text up or down using Alt+Shift + Up or Down.
I switched to vim a few months ago, and I really miss this feature.
I found out you can move selected lines in visual mode up or down using these visual…

Fahim Emroz
- 21
- 3
2
votes
2 answers
AHK Remapping Middle Mouse button to something else
After a month of trial and error, I've finally found a solution!
How to remap Middle mouse button something else?
If you don't have a three-button mouse, this is a must-have for blender (esp. Laptop)
I'm aware of "emulate 3 button mouse" in…

LumetriFlow
- 130
- 1
- 11
2
votes
1 answer
Replace all values in dataframe using another dataframe as key in R
I have two dataframes and I want to replace all values ( in all the columns) of df1 using the equivalent value in df2 (df2$value).
df1
structure(list(Cell_ID = c(7L, 2L, 3L, 10L), n_1 = c(0L, 0L,
0L, 0L), n_2 = c(9L, 1L, 4L, 1L), n_3 = c(10L, 4L,…

Amaranta_Remedios
- 763
- 4
- 15
2
votes
1 answer
What determines position-independence following a memory remap operation?
I've started reading Miro Samek's "Building Bare-Metal ARM Systems with GNU" and have found myself stuck on a certain point. What's caused my confusion is found in one of the notes found on page 10 of the PDF:
NOTE: The function low_level_init()…

chevestong
- 183
- 1
- 8
2
votes
1 answer
Unknown interpolation method in function 'remap' error
Trying to update old python code from cv.Remap(src,dst,map1,map2,interpolation)
to
remapped_image = cv2.remap(src,map1,map2,interpolation).
The issue is the interpolation option.
The original interpolation was…

bbbeenn32
- 89
- 6
2
votes
1 answer
Using open CV's remap function with a source image of a type CV_8SC1
Using the open CV's remap function with different types of source images has given me some interesting results.
The following types work as expected: CV_8UC1, CV_16UC1, CV_16SC1, CV_32FC1, CV_64FC1.
The two types that are giving me an error are:…

A. Cimet
- 87
- 7
2
votes
1 answer
Converting opencv remap code from c++ to python
I am trying to convert c++ opencv cv2.remap code to python. I am not getting any error but result is not as expected.I am getting zoomed image
c++ code
int main()
{
Mat img = imread("captcha1.jpg");
float phase = -0.8 * CV_PI;
float…

Jeya Kumar
- 1,002
- 1
- 13
- 36
2
votes
2 answers
Reduce image colors based on colorlookup table excluding transparent
I'm trying to reduce the number of colors in the image below using -remap in imagemagick.
olympic-logo.png
colortable.png which consists of this two color A12E64, FF0000
Using the following code:
convert olympic-logo.png +dither -remap…

Defyleiti
- 535
- 1
- 7
- 23
2
votes
1 answer
AutiHotKey Some key combinations are not intercepted (ex 3,4,5)
I want to remap the keyboard in the following mode:
2::ctrl
3::shift
4::alt
5::tab
My problem is that pressing at the same time 3,4,5 (equivalent to pressing alt shift tab) does not work.
After investigating a little I have found that ahk can not…

Ciprian Dragoe
- 340
- 2
- 14