Closed

Python Image Splicing Numpy Sub Image Extraction

Hi,

I have an image, say 1280 x 720.

I want to extract 64x64 sized samples. However, I want them extracted on an offset, so it is not a simple 1280 / 64

Basically I want to recreate the new image using the inner 50x50 pixels of the extracted 64x64 sized samples.

Here is what I have tried so far, but seem to be failing:

patch_size = 64

bordersize = 5

patch_stride = patch_size - (bordersize*2)

new_image_width = 1280

new_image_height = 720

test = [login to view URL]('C:/images/[login to view URL]')

test = [login to view URL]((new_image_width, new_image_height), [login to view URL])

test = [login to view URL](test)

test = [login to view URL](test, 0, 255)

subimages = []

#pieces = generate_tiles(test, patch_size, patch_stride)

for x in range(bordersize, new_image_width-bordersize-patch_stride):

for y in range(bordersize, new_image_height-bordersize-patch_stride):

if (x % (patch_stride+bordersize) == 0) or (x == bordersize):

if (y % (patch_stride+bordersize) == 0) or (y == bordersize):

subimage = test[x:x+patch_stride, y:y+patch_stride]

if (y<(10*patch_size)) and (x<(10*patch_size)):

[login to view URL](subimage)

subgroup = []

i=0

full_image = []

for y in range(0, int([login to view URL](len(subimages)))):

for x in range(0, int([login to view URL](len(subimages)))):

[login to view URL](subimages[i])

i+=1

combined = [login to view URL](subgroup)

[login to view URL](combined)

subgroup = []

full_image = [login to view URL](full_image)

test = [login to view URL]([login to view URL](full_image)).show()

Skills: C Programming, C++ Programming, Machine Learning, Python, Software Architecture

See more: numpy slicing, numpy slice 2d array, numpy reshape, numpy extract, python read image into numpy array, python slice 2d array, array slicing python, python image to numpy array, image extraction, remove sub category image sub category page cre, save image table sql server 2005 using parameter, image preview file upload aspnet using vbnet, photoshop image extraction, python csv extraction, python image recognize, python image crawler, extraction image 3gp, python image processing website snapshot, image sub image silverlight, website image extraction

About the Employer:
( 20 reviews ) Clawson, United States

Project ID: #17520334

21 freelancers are bidding on average $56 for this job

ITPyramid85

hello,how are you. i read your bid carefully. i am Python expert and have full experience for 7 years. Python is my top skill and i can complete your project by using python. I can provide most quality and high fast More

$25 USD in 1 day
(12 Reviews)
6.8
hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ More

$80 USD in 2 days
(141 Reviews)
7.0
ThanassisKalv

hello it seems like a quick Python problem however I can't try your code right away, but firstly I have a question about your 'recreate' purpose, are you trying to use the 50x50 and execute some up-sampling to get the More

$55 USD in 1 day
(125 Reviews)
6.1
schoudhary1553

Hello, I can help with you in your project Python Image Splicing Numpy Sub Image Extraction I have more than 5 years of experience in C Programming, C++ Programming, Machine Learning, Python, Software Architectur More

$120 USD in 2 days
(40 Reviews)
5.8
dinhfreedom

---Very Nice Job. Professional Image Processing & Python & Machine Learning expert. Best result in time----- [login to view URL] I read your description very carefully. I am very interesting for your project because I hav More

$30 USD in 1 day
(48 Reviews)
6.0
adampohp79

Hello, sir Your job is exciting me. Let me do this job for you now just to prove my expertise in this field. Hope I could awake you interest in me. I am always online, work hard and very sensitive to details. Thank More

$35 USD in 1 day
(37 Reviews)
5.7
davidngo817

Hello, dear! I am interested in your project. I have extensive experience in Python and Image processing. As a developer with rich experience, I am confident about your project. I can provide perfect results in a s More

$30 USD in 1 day
(15 Reviews)
5.3
mikeitexpert

I have extensive experience with Python, Python Image Processing (PIL), Pandas, and Open CV, Quality code with minimum price is guaranteed. Mike IT Geek

$20 USD in 1 day
(24 Reviews)
4.6
pathos821vw

Hello Having experience of python, I can do what you want. Python is my primary programming language. let us discuss details in chat.

$30 USD in 1 day
(31 Reviews)
4.6
lightingdavid

Hello. I have read your project description carefully. I have good skills in Python and i can do it. Contact me please. Thanks...

$100 USD in 1 day
(6 Reviews)
3.2
engineers88

I did master degree in Image Processing and Computer Vision. I can do this job with quite ease. Looking forward for a great relation. Thank you very much in advance.

$30 USD in 3 days
(5 Reviews)
2.5
Joe925

Hi. Nice to meet you. I've been developing and teaching algorithms with Python for several years.(See my profile) If you do contact me, it would be the good opportunity to get a better result than expected. I'm loo More

$122 USD in 3 days
(1 Review)
1.3
silicolabs

https://www.freelancer.com/projects/Python/Qualitative-Comparative-Study-Face-13933384/ https://www.freelancer.com/projects/php/License-Plate-Detection-With-Chinese/ done the similar jobs lets chat

$172 USD in 1 day
(3 Reviews)
0.6
wang109

Dear employer. I am honourable to bid your project of all. I read your project description and understand clearly. Do you want "PERFECT RESULT"? I always work fast and perfectly. For your project, I demonstrat More

$30 USD in 1 day
(1 Review)
0.4
$50 USD in 2 days
(0 Reviews)
0.0
$111 USD in 1 day
(0 Reviews)
0.0
$25 USD in 1 day
(0 Reviews)
0.0
louiseabelala

Hi, If you just needed all the image to be resized and then cropped to 64 x 64 then get the central 50 x 50 of the 64 x 64 image and add a border (or no border). I did that already for you in the link below you can More

$30 USD in 1 day
(0 Reviews)
0.0
$35 USD in 1 day
(0 Reviews)
0.0
$27 USD in 3 days
(0 Reviews)
0.0