CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 03:46:55 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=38423dc4075ed16ce7b79c20e744be41c9e8e88ac544c3d2098706f4e56b37b0a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22dXhLO_zlNvxFJY3FnFdsHOK8AoFbybv1%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d39ce9fcd520c5-BLR
roi - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function out = roi(filename,args)
- out = "";
- if typeinfo(args) == "string"
- in = imread(filename);
- mask = imread(args);
- result = in .* mask;
- imwrite(result,"result.png");
- out = "result.png";
- return
- else
- if length(args) != 2 || length(args(:,:)) != 2
- return
- endif
- in = imread(filename);
- pointA = args(1,:);
- pointB = args(2,:);
- if (pointA(1) < 0 || pointB(1) < 0 || pointA(2) < 0 || pointB(2) < 0
- || pointA(1) >= columns(in) || pointA(2) >= rows(in)
- || pointB(1) >= columns(in) || pointB(2) >= rows(in))
- return
- endif
- pointA = pointA + 1;
- pointB = pointB + 1;
- mask_temp = ones(pointB(2)-pointA(2)+1,pointB(1)-pointA(1)+1);
- mask = zeros(rows(in),columns(in));
- mask(pointA(2):pointB(2),pointA(1):pointB(1)) = mask_temp;
- result = in .* mask;
- imwrite(result,"result.png");
- out = "result.png";
- endif
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐Make $15OO in 2O minutesV E⭐⭐
Java | 37 sec ago | 0.10 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 50 sec ago | 0.10 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 1 min ago | 0.10 KB
-
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 2 min ago | 0.10 KB
-
⭐⭐⭐Instant Profit Method⭐⭐
Java | 2 min ago | 0.10 KB
-
⭐⭐⭐Make $15OO in 2O minutesV G⭐⭐
Java | 2 min ago | 0.10 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ G
JavaScript | 2 min ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand