ryouchinsa / Rectlabel-support

RectLabel is an offline image annotation tool for object detection and segmentation.
https://rectlabel.com
509 stars 73 forks source link

Overlay multiple images? #107

Closed bw4sz closed 5 years ago

bw4sz commented 5 years ago

It would be really nice to be able to toggle multiple layers of the same image. I have RGBD images. Assume same extent and resolution.

ryouchinsa commented 5 years ago

Thanks for writing the issue. This is the first time for us to load the RGB-depth image. We have to know the file format. Could you show us a simple example how to load the RGB-depth image programmatically?

bw4sz commented 5 years ago

I have them saved as separate files, each a normal .tif. RectLabel has no problem labeling them individually. This is a larger feature request, it would be nice to overlay images with an alpha channel for blending images to be seen together. Multi-sensor imagery is becoming more and more used and its something users would benefit from.

On Tue, Jun 4, 2019 at 1:57 PM Ryo Kawamura notifications@github.com wrote:

Thanks for writing the issue. This is the first time for us to load the RGB-depth image. We have to know the file format. Could you show us a simple example how to load the RGB-depth image programmatically?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ryouchinsa/Rectlabel-support/issues/107?email_source=notifications&email_token=AAJHBLG4DBCXII5J5RNWZ3LPY3JMBA5CNFSM4HSXJAWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW53KJI#issuecomment-498840869, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJHBLCEAUGA3VN5CTKHUV3PY3JMBANCNFSM4HSXJAWA .

-- Ben Weinstein, Ph.D. Postdoctoral Fellow University of Florida http://benweinstein.weebly.com/

ryouchinsa commented 5 years ago

Multi-sensor imagery is becoming more and more used and its something users would benefit from.

We agree with your thought. We do not have any RGB-depth images. Could you give us an example file?

I have them saved as separate files, each a normal .tif. RectLabel has no problem labeling them individually.

RGB-depth image has depth channel. Its values are 0-255. How did you make the separated image files from a RGB-depth image?

it would be nice to overlay images with an alpha channel for blending images to be seen together.

Could you explain exactly what you want us to implement on RectLabel? We want to see the mockup.

bw4sz commented 5 years ago

Sure. I worked in machine learning for airborne imagery. Here is an example with trees. RectLabel has been hugely helpful. We have RGB imagery and LIDAR depth information (height above ground). We usually treat them as two 3 channel arrays, but the LIDAR can also be 1 channel grayscale.

RGB

RGB

LIDAR (black -> white colormap)

Lidar

It would be great to overlay these two images, either by image blending (alpha transparency) or just to be able to toggle one over the other.

Blending example

Blended

ryouchinsa commented 5 years ago

Thanks for the details.

We understood what we should do.

For example, if you put the rgb image as file_name.jpg and depth image as file_name_depth.jpg in the same folder, we would skip reading the depth image when you open folder.

We would prepare "Show depth image" in View menu. If the depth image exists, when you push the hotkey, it shows the depth image toggling with alpha values 0.0, 0.5, and 1.0.

Does this work for you?

bw4sz commented 5 years ago

totally.

On Fri, Jun 7, 2019 at 2:31 PM Ryo Kawamura notifications@github.com wrote:

Thanks for the details.

We understood what we should do.

For example, if you put the rgb image as file_name.jpg and depth image as file_name_depth.jpg in the same folder, we would skip reading the depth image when you open folder.

We would prepare "Show depth image" in View menu. If the depth image exists, when you push the hotkey, it shows the depth image toggling with alpha values 0.0, 0.5, and 1.0.

Does this work for you?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ryouchinsa/Rectlabel-support/issues/107?email_source=notifications&email_token=AAJHBLDJUSGIH57LGGFXHPLPZLHR7A5CNFSM4HSXJAWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXHBODI#issuecomment-500045581, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJHBLCN6PLIEOPJV7GCOMTPZLHR7ANCNFSM4HSXJAWA .

-- Ben Weinstein, Ph.D. Postdoctoral Fellow University of Florida http://benweinstein.weebly.com/

ryouchinsa commented 5 years ago

Added "Show depth channel" in View menu.

When the rgb image name is image_name.jpg, put the depth image as image_name_depth.png in the same folder. Toggle depth image alpha among 0.0, 0.5, and 1.0. https://rectlabel.com/help#show_depth

The new update version 2.78 was released. To show the new update on Mac App Store, press command + R to reload.

depth