bbox error when running with custom image

It works fine for the images already bundled with the code (in "forpublish" directory).
However it fails when I try to run it with my own image.
To test it with my own image (15.jpg), I put the image in the forpublish directory and I edit line 13 to "for i = 15" in runme.m .
I'm getting this error:
deal with image = 15
??? Reference to non-existent field 'bbox'.
Error in ==> rectify_image_2_tracing at 69
[r.trajsUpper, r.trajsLower, r.trajsAll, r.trajsSigma, ...
Error in ==> runme at 36
rs_new2{i} = rectify_image_2_tracing(img, rs_new2{i});
Error in ==> run at 57
evalin('caller', [s ';']);
What changes do I have to do to run it on my own images?
runme.m has this comment but I'm confused on what to do:
% rs_new2{i}.bbox and rs_new2{i}.pts are manually labeled.
% (rs_new2{i}.seeds can be traced from rs_new2{i}.pts using the )
I guess the relevant part is:
rs.bbox = [20, 15, 628, 480];
%rs{i}.bbox = bboxes(i, ;
% rs{i}.p1 = p1(i, :);
% rs{i}.p2 = p2(i, :);
% rs{i}.bUseP = true;
rs.bUseP = false;
To run it, edit download.sh and correct the typo from "intermediate" to "intemediate" in lines 3 and 4. Then execute runme.m .

Risposte (1)

Image Analyst
Image Analyst il 14 Gen 2017
bbox is the Bounding Box. Beyond that I have no idea. There are like a hundred files as part of that code suite and I'm not about to download them all to run this. I suggest you contact the author or the owner of the web site.

Richiesto:

g39
il 13 Gen 2017

Risposto:

il 14 Gen 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by