Simd Library is an image processing cross platform open source software library written in C++.
Questions tagged [simd-library]
20 questions
5
votes
3 answers
Optimization of image resizing (method Nearest) with using SIMD
I know that 'Nearest' method of image resizing is the fastest method.
Nevertheless I search way to speed up it.
Evident step is a precalculate indices:
void CalcIndex(int sizeS, int sizeD, int colors, int* idx)
{
float scale = (float)sizeS /…

Fred
- 53
- 4
3
votes
1 answer
Alignment of simd_packed vector in Swift (vs Metal Shader language)
I have trouble understanding something about simd_packed vectors in the simd module in Swift. I use the example of float4, I hope someone can help.
My understanding is that simd_float4 is a typealias of SIMD4< Float>, and MemoryLayout

Céline
- 185
- 7
3
votes
0 answers
SIMD: Compare two strings char by char and find the total number of matches
I'm developing a bioinformatic tool. I'm interested in applying SIMD to boost its speed. Given two strings of equal length, I would like to rapidly count the total number of indices where the two strings have identical characters.
For example, say…

JWO
- 75
- 4
3
votes
1 answer
Can't link a simple "hellow world" with Simd Library
I'm trying to compile a simple code wich calls one function of Simd Library:
// simd.c
#include
#include "Simd/SimdLib.h"
int main(void) {
uint8_t buf1[720*576];
uint8_t buf2[900*720];
SimdResizeBilinear(buf1, 720, 576,…

MikeZ
- 33
- 6
2
votes
2 answers
AVX-512BW emulation of _mm512_dpbusd_epi32 AVX-512VNNI instruction
There are AVX-512 VNNI instructions starting since Cascade Lake Intel CPU which can accelerate inference of quantized neural networks on CPU.
In particular there is a instuction _mm512_dpbusd_epi32 (vpdpbusd) which allows to perform multiplication…

Tristan
- 105
- 1
- 5
2
votes
1 answer
NEON emulation of VNNI instructions
There is new AVX-512 VNNI instructions in Cascade Lake Intel CPU which can accelerate inference of neural networks on CPU.
I integrated them into Simd Library to accelerate Synet (my small framework for inference of neural networks) and obtained…

ErmIg
- 3,980
- 1
- 27
- 40
2
votes
1 answer
How to convert Simd::View to cv::Mat?
I want to use OpenCV 3.2 and Simd in one c++ project.
Is there easy way to convert cv::Mat (image type in OpenCV) to Simd::View (image type used in Simd Library)?
Help me please.

John
- 65
- 5
1
vote
1 answer
Detection of small fast objects with using of Simd::Motion::Detector
I try to use motion detector to detect shooting star in the video with the example of code UseMotionDetector.cpp.
If I use the motion detector with default options than nothing works.
I think that may be connected with small object size, its fast…

Michael
- 101
- 6
1
vote
1 answer
Overall brief information about simd image processing solutions
I whould like to be clear with three (or more) image processing libraries and approaches:
C++ Simd library
Python Pillow-Simd library
nginx image filter solution uses libgd library
Does Pillow-Simd uses Simd or uses a different C++ implementation…

fl-web
- 462
- 5
- 16
1
vote
1 answer
Fast image RGB to BGR conversion
I need to perform conversion of images from BGR to RGB image format and also backward conversion. I found Simd Library which contains function SimdBgrToRgb which performs fast conversion from BGR to RGB.
But I didn't find any function for backward…

William
- 71
- 6
1
vote
1 answer
Image moments using SIMD library
I'm trying to figure out how to calculate central image moments for some rectangular ROI
using SIMD library. I often use IPP library for such tasks, but I want to try SIMD as it's
much "lighter" library. According to SIMD documentation, function…

S. Petrić
- 80
- 10
1
vote
1 answer
Cross product fuction in swift ios
In which swift library i will get cross product funtion
like cross(normalize(vector1),normalize(vector2))
i want angle direction between three scnnode joint with line
let node0 :SCNNode = self.nodes[1]
let node1 :SCNNode = self.nodes[2]
let node2…

Yogesh Dalavi
- 73
- 4
- 15
1
vote
2 answers
Copying a part of Simd::View
I use Simd::View class from Simd Library. It is a container which holds an image. I need to copy a part (the right bottom corner) of image into another image.
As I know there is a function Simd::Copy which allows to copy one image to other. But it…

David
- 53
- 5
1
vote
2 answers
Simd library compilation fails
I'm trying to build the Simd library on Visual Studio 2017.
https://github.com/ermig1979/Simd
I opened the project from /prj/vs2017w.
I just modified the configuration type from dynamic to static lib.
And I uncommented the #define SIMD_STATIC from…

X6Entrepreneur
- 971
- 2
- 10
- 30
1
vote
1 answer
Strange behavior of function Simd::Fill()
I use function Simd::Fill from Simd Library. And it works fine in the most cases. But there is a strange behavior sometimes. For example, in this case:
#include "Simd/SimdLib.hpp"
typedef Simd::View View;
View Create(size_t w,…

Alex
- 65
- 5